Skip to content

Commit

Permalink
Fix complex problem in compute_norm function
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Dec 18, 2024
1 parent 6433b71 commit 22bf066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btas/generic/converge_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ namespace btas {
}
}

dtype nrm = 0.0;
RT nrm = 0.0;
for (auto &i : coeffMat) {
nrm += i;
nrm += std::real(i);
}
return nrm;
}
Expand Down

0 comments on commit 22bf066

Please sign in to comment.