Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 7e9c752

Browse files
Willi BraunOpenModelica-Hudson
authored andcommitted
fix printSparseStructure
1 parent a528228 commit 7e9c752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/simulation/solver/model_help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ void printSparseStructure(SPARSE_PATTERN *sparsePattern, int sizeRows, int sizeC
375375
for(row=0; row < sizeRows; row++)
376376
{
377377
j=0;
378-
for(col=0; i < sparsePattern->leadindex[row]+1; col++)
378+
for(col=0; i < sparsePattern->leadindex[row+1]; col++)
379379
{
380380
if(sparsePattern->index[i] == col)
381381
{

0 commit comments

Comments
 (0)