Skip to content

Commit 5a09ffa

Browse files
author
Vitalij Ruge
committed
- fixed lagrange term
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18542 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent e0c6481 commit 5a09ffa

File tree

1 file changed

+1
-0
lines changed
  • SimulationRuntime/c/optimization/goal

1 file changed

+1
-0
lines changed

SimulationRuntime/c/optimization/goal/evalF.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Bool evalfF(Index n, double * v, Bool new_x, Number *objValue, void * useData)
8282

8383
for(; i<iData->nsi; ++i)
8484
{
85+
erg = 0.0;
8586
for(j=0; j<iData->deg; ++j, x+=iData->nv, ++k)
8687
{
8788
goal_func_lagrange(x, &tmp, iData->time[k], iData);

0 commit comments

Comments
 (0)