Skip to content

Commit

Permalink
fixes from static analysis
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21576 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Jul 19, 2014
1 parent ddebf3f commit ca8d66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/solver/dassl.c
Expand Up @@ -413,7 +413,7 @@ int dassl_step(DATA* data, SOLVER_INFO* solverInfo)
}

sData = (SIMULATION_DATA*) data->localData[0];
sDataOld = (SIMULATION_DATA*) data->localData[1];
/*sDataOld = (SIMULATION_DATA*) data->localData[1];*/

infoStreamPrint(LOG_DASSL, 0, "Calling DASSL from %.15g to %.15g", solverInfo->currentTime, tout);
do
Expand All @@ -424,7 +424,7 @@ int dassl_step(DATA* data, SOLVER_INFO* solverInfo)
/* rotate RingBuffer before step is calculated */
rotateRingBuffer(data->simulationData, 1, (void**) data->localData);
sData = (SIMULATION_DATA*) data->localData[0];
sDataOld = (SIMULATION_DATA*) data->localData[1];
/*sDataOld = (SIMULATION_DATA*) data->localData[1];*/
/* after rotation dassl expects the same states as before */
//memcpy(sData->realVars, sDataOld->realVars, sizeof(double)*data->modelData.nStates);
}
Expand Down

0 comments on commit ca8d66a

Please sign in to comment.