Skip to content

Commit

Permalink
update to latest scilib
Browse files Browse the repository at this point in the history
  • Loading branch information
Stig Rune Sellevag committed Aug 8, 2023
1 parent e9ded16 commit 525620d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/diim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ void Iim::Diim::check_stability()

Sci::Linalg::eig(astar_tmp, evec, eval);

double eval_largest = std::abs(eval(0)); // magnitude is used for comparison
for (auto& ei : eval) {
if (std::abs(ei) > eval_largest) {
eval_largest = std::abs(ei);
double eval_largest = std::abs(eval[0]); // magnitude is used for comparison
for (Sci::index i = 0; i < eval.extent(0); ++i) {
if (std::abs(eval[i]) > eval_largest) {
eval_largest = std::abs(eval[i]);
}
}
if (std::abs(eval_largest) >= 1.0) {
Expand Down

0 comments on commit 525620d

Please sign in to comment.