Skip to content

Commit

Permalink
Check for a singular matrix when using a templated network (#2903)
Browse files Browse the repository at this point in the history
This checks the result of RHS::dgefa() for templated networks.
  • Loading branch information
yut23 authored Jul 8, 2024
1 parent 0538b05 commit 79841a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/sdc/sdc_newton_solve.H
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ sdc_newton_solve(const Real dt_m,

// solve the linear system: Jac dU = -f
#ifdef NEW_NETWORK_IMPLEMENTATION
RHS::dgefa(Jac);
info = 0;
info = RHS::dgefa(Jac);
#else
IArray1D ipvt;
dgefa<NumSpec+1>(Jac, ipvt, info);
Expand Down

0 comments on commit 79841a7

Please sign in to comment.