Skip to content

Commit bbe2926

Browse files
committed
fix bug in the betar
1 parent 2dd9dce commit bbe2926

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/source_cell/pseudo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ void pseudo::check_betar()
1616
int flag = mesh+1;
1717
for (int ir = 0; ir < mesh; ir++)
1818
{
19-
if (std::abs(betar(ib, ir)) < 1.0e-30)
19+
// 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))
2021
{
2122
flag = ir;
2223
break;

0 commit comments

Comments
 (0)