Skip to content

Commit

Permalink
Fix segmentationFault for constant Jacobian equations
Browse files Browse the repository at this point in the history
Added constantEqns function pointer to deep copy for parallel Jacobian
data.
  • Loading branch information
AnHeuermann authored and adeas31 committed Nov 8, 2019
1 parent 5aea5c3 commit e658cdc
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -132,6 +132,7 @@ int initializeLinearSystems(DATA *data, threadData_t *threadData)
linsys[i].parDynamicData[j].jacobian->seedVars = (modelica_real*) calloc(jacobian->sizeCols, sizeof(modelica_real));
linsys[i].parDynamicData[j].jacobian->resultVars = (modelica_real*) calloc(jacobian->sizeRows, sizeof(modelica_real));
linsys[i].parDynamicData[j].jacobian->tmpVars = (modelica_real*) calloc(jacobian->sizeTmpVars, sizeof(modelica_real));
linsys[i].parDynamicData[j].jacobian->constantEqns = jacobian->constantEqns;
linsys[i].parDynamicData[j].jacobian->sparsePattern = jacobian->sparsePattern;
}
#else
Expand Down

0 comments on commit e658cdc

Please sign in to comment.