mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
added fix neutron balance option
This commit is contained in:
parent
b5346c5045
commit
b3236e434f
1 changed files with 9 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ contains
|
|||
cmfd_downscatter = .true.
|
||||
end if
|
||||
|
||||
! Run an adjoint calc
|
||||
! Reset dhat parameters
|
||||
if (check_for_node(doc, "dhat_reset")) then
|
||||
call get_node_value(doc, "dhat_reset", temp_str)
|
||||
call lower_case(temp_str)
|
||||
|
|
@ -180,6 +180,14 @@ contains
|
|||
dhat_reset = .true.
|
||||
end if
|
||||
|
||||
! Enforce perfect neutorn balance
|
||||
if (check_for_node(doc, "balance")) then
|
||||
call get_node_value(doc, "balance", temp_str)
|
||||
call lower_case(temp_str)
|
||||
if (trim(temp_str) == 'true' .or. trim(temp_str) == '1') &
|
||||
cmfd_fix_balance = .true.
|
||||
end if
|
||||
|
||||
! Set the solver type
|
||||
if (check_for_node(doc, "solver")) &
|
||||
call get_node_value(doc, "solver", cmfd_solver_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue