Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linpack pivot templating for true SDC #2912

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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