cmfd shift cant be infinity due to FPE, making it very large and fixed matrix subtraction in solver

This commit is contained in:
Bryan Herman 2013-09-27 16:55:39 -04:00
parent 61f94289e6
commit d09a98ca13
2 changed files with 3 additions and 2 deletions

View file

@ -280,7 +280,8 @@ contains
jcol = 1
ROWS: do irow = 1, loss % n
COLS: do icol = loss % get_row(irow), loss % get_row(irow + 1) - 1
if (loss % get_col(icol) == prod % get_col(jcol)) then
if (loss % get_col(icol) == prod % get_col(jcol) .and. &
jcol < prod % get_row(irow + 1)) then
loss % val(icol) = loss % val(icol) - ONE/k_s*prod % val(jcol)
jcol = jcol + 1
end if

View file

@ -357,7 +357,7 @@ module global
! Estimate of spectral radius of CMFD matrices and tolerances
real(8) :: cmfd_spectral = ZERO
real(8) :: cmfd_shift = INFINITY
real(8) :: cmfd_shift = 1.e6
real(8) :: cmfd_ktol = 1.e-8_8
real(8) :: cmfd_stol = 1.e-8_8
real(8) :: cmfd_atoli = 1.e-10_8