Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21843 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Aug 11, 2014
1 parent 7a00d6a commit 5595109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -211,7 +211,7 @@ static inline void local_jac_struct(DATA * data, OptDataDim * dim, OptDataStruct
memcpy(&s->lindex[index][1], lindex, sizeCols*sizeof(unsigned int));
lindex = s->lindex[index];
s->seedVec[index] = (modelica_real **)malloc((maxColors)*sizeof(modelica_real*));
free(data->simulationInfo.analyticJacobians[h_index].sparsePattern.leadindex);
free(data->simulationInfo.analyticJacobians[h_index].sparsePattern.leadindex);
/**********************/
if(sizeCols > 0){
for(ii = 1; ii < maxColors; ++ii){
Expand Down Expand Up @@ -239,7 +239,7 @@ static inline void local_jac_struct(DATA * data, OptDataDim * dim, OptDataStruct
}
}
/**********************/
free(data->simulationInfo.analyticJacobians[h_index].seedVars);
free(data->simulationInfo.analyticJacobians[h_index].seedVars);
}
}

Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/c/optimization/DataManagement/MoveData.c
Expand Up @@ -609,9 +609,9 @@ void diffSynColoredOptimizerSystem(OptData *optData, modelica_real **J, const in

const int * index_J = (index == 3)? optData->s.indexJ3 : optData->s.indexJ2;
const int nJ1 = optData->dim.nJ + 1;

modelica_real **sV = optData->s.seedVec[index];

for(i = 1; i < Cmax; ++i){
data->simulationInfo.analyticJacobians[h_index].seedVars = sV[i];

Expand Down

0 comments on commit 5595109

Please sign in to comment.