We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd9dce commit bbe2926Copy full SHA for bbe2926
source/source_cell/pseudo.cpp
@@ -16,7 +16,8 @@ void pseudo::check_betar()
16
int flag = mesh+1;
17
for (int ir = 0; ir < mesh; ir++)
18
{
19
- if (std::abs(betar(ib, ir)) < 1.0e-30)
+ // to check is non-normal number and it shoule not be zero
20
+ if ((std::abs(betar(ib, ir)) < 1.0e-30) && (std::abs(betar(ib, ir))!=0))
21
22
flag = ir;
23
break;
0 commit comments