Skip to content

Commit

Permalink
fix row jac norm sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Jan 19, 2017
1 parent 8788348 commit b0da1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/kinsolSolver.c
Expand Up @@ -472,7 +472,7 @@ void nlsKinsolJacSumSparse(SlsMat mat)
for(i=0; i<mat->N; ++i){
sum = 0;
for(j=mat->colptrs[i]; j<mat->colptrs[i+1];++j){
sum += fabs(mat->data[mat->rowvals[j]]);
sum += fabs(mat->data[j]);
}
infoStreamPrint(LOG_NLS_JAC, 0, "row %d jac sum = %g", i, sum);
}
Expand Down

0 comments on commit b0da1de

Please sign in to comment.