Changeset 8929a65 in OpenModelica
- Timestamp:
- 2012-11-20T06:35:36+01:00 (11 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 09fafda9
- Parents:
- 8b72b30
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/Template/CodegenAdevs.tpl
rc5aec81 r8929a65 370 370 N_Vector scale = N_VNew_Serial(NEQ); 371 371 void* kmem = KINCreate(); 372 372 active_model = this; 373 373 assert(kmem != NULL); 374 374 flag = KINInit(kmem, residualFunc<%index%>, y); … … 383 383 ;separator="\n"%> 384 384 flag = KINSol(kmem,y,KIN_LINESEARCH,scale,scale); 385 386 385 // Save the outcome and calculate any dependent variables 386 residualFunc<%index%>(y,scale,NULL); 387 387 N_VDestroy_Serial(y); 388 388 N_VDestroy_Serial(scale);
Note: See TracChangeset
for help on using the changeset viewer.