Skip to content

Commit

Permalink
- get rid of tabs once again.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13979 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 20, 2012
1 parent 8b72b30 commit 8929a65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/Template/CodegenAdevs.tpl
Expand Up @@ -369,7 +369,7 @@ template makeExtraResiduals(list<SimEqSystem> allEquations, String name)
N_Vector y = N_VNew_Serial(NEQ);
N_Vector scale = N_VNew_Serial(NEQ);
void* kmem = KINCreate();
active_model = this;
active_model = this;
assert(kmem != NULL);
flag = KINInit(kmem, residualFunc<%index%>, y);
assert(flag == KIN_SUCCESS);
Expand All @@ -382,8 +382,8 @@ template makeExtraResiduals(list<SimEqSystem> allEquations, String name)
>>
;separator="\n"%>
flag = KINSol(kmem,y,KIN_LINESEARCH,scale,scale);
// Save the outcome and calculate any dependent variables
residualFunc<%index%>(y,scale,NULL);
// Save the outcome and calculate any dependent variables
residualFunc<%index%>(y,scale,NULL);
N_VDestroy_Serial(y);
N_VDestroy_Serial(scale);
KINFree(&kmem);
Expand Down

0 comments on commit 8929a65

Please sign in to comment.