Skip to content

Commit

Permalink
fix a narrowing in the linpack pivoting (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 28, 2024
1 parent 0e28d42 commit 6b5785d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/linpack.H
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void dgefa (RArray2D& a, IArray1D& pivot, int& info)
}
}

pivot(k) = l;
pivot(k) = static_cast<short>(l);

// zero pivot implies this column already triangularized
if (a(l,k) != 0.0e0_rt) {
Expand Down Expand Up @@ -116,7 +116,7 @@ void dgefa (RArray2D& a, IArray1D& pivot, int& info)

}

pivot(num_eqs) = num_eqs;
pivot(num_eqs) = static_cast<short>(num_eqs);

if (a(num_eqs,num_eqs) == 0.0e0_rt) {
info = num_eqs;
Expand Down

0 comments on commit 6b5785d

Please sign in to comment.