Skip to content

Commit

Permalink
fix linpack pivot templating for true SDC (#2912)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jul 22, 2024
1 parent ab2b6d8 commit 56f51f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/sdc/sdc_newton_solve.H
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ sdc_newton_solve(const Real dt_m,
info = RHS::dgefa(Jac);
#else
IArray1D ipvt;
dgefa<NumSpec+1>(Jac, ipvt, info);
constexpr bool allow_pivot{true};
dgefa<NumSpec+1, allow_pivot>(Jac, ipvt, info);
#endif
if (info != 0) {
ierr = newton::SINGULAR_MATRIX;
Expand All @@ -172,7 +173,7 @@ sdc_newton_solve(const Real dt_m,
#ifdef NEW_NETWORK_IMPLEMENTATION
RHS::dgesl(Jac, f);
#else
dgesl<NumSpec+1>(Jac, ipvt, f);
dgesl<NumSpec+1, allow_pivot>(Jac, ipvt, f);
#endif

// on output, f is the solution (dU)
Expand Down

0 comments on commit 56f51f6

Please sign in to comment.