Skip to content

Commit

Permalink
https://github.com/LLNL/sundials/blob/736369d543cb80956b1ba87377ffc0c…
Browse files Browse the repository at this point in the history
…8cf6b342b/src/sunmatrix/sparse/sunmatrix_sparse.c#L625C1-L694C2
  • Loading branch information
dweindl committed Oct 3, 2024
1 parent 13d061a commit 878f01c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ThirdParty/sundials/src/sunmatrix/sparse/sunmatrix_sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ SUNErrCode SUNMatCopy_Sparse(SUNMatrix A, SUNMatrix B)
return SUN_SUCCESS;
}

// https://github.com/LLNL/sundials/blob/8fdca585eed902d99df3b913f926602009c5d28c/src/sunmatrix/sparse/sunmatrix_sparse.c
// https://github.com/LLNL/sundials/issues/581
// https://github.com/LLNL/sundials/blob/736369d543cb80956b1ba87377ffc0c8cf6b342b/src/sunmatrix/sparse/sunmatrix_sparse.c#L625C1-L694C2
SUNErrCode SUNMatScaleAddI_Sparse(sunrealtype c, SUNMatrix A)
{
SUNFunctionBegin(A->sunctx);
Expand Down Expand Up @@ -668,7 +669,7 @@ SUNErrCode SUNMatScaleAddI_Sparse(sunrealtype c, SUNMatrix A)
Ax = SM_DATA_S(A);
}

for (sunindextype j = N - 1; j >= 0 && newvals > 0; j--)
for (sunindextype j = N - 1; newvals > 0; j--)
{
sunbooleantype found = SUNFALSE;
for (sunindextype i = Ap[j + 1] - 1; i >= Ap[j]; i--)
Expand Down

0 comments on commit 878f01c

Please sign in to comment.