mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fixed issue with reading weight cutoffs incorrectly from settings.xml.
This commit is contained in:
parent
56b2c1c667
commit
90a873e817
2 changed files with 5 additions and 3 deletions
|
|
@ -110,8 +110,10 @@ contains
|
|||
if (size(survival_) > 0) survival_biasing = .true.
|
||||
|
||||
! Cutoffs
|
||||
weight_cutoff = cutoff_ % weight
|
||||
weight_survive = cutoff_ % weight_avg
|
||||
if (size(cutoff_) > 0) then
|
||||
weight_cutoff = cutoff_(1) % weight
|
||||
weight_survive = cutoff_(1) % weight_avg
|
||||
end if
|
||||
|
||||
end subroutine read_settings_xml
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@
|
|||
<variable name="verbosity_" tag="verbosity" type="integer" />
|
||||
<variable name="source_" tag="source" type="source_xml" />
|
||||
<variable name="survival_" tag="survival_biasing" type="word" length="3" dimension="1" />
|
||||
<variable name="cutoff_" tag="cutoff" type="cutoff_xml" />
|
||||
<variable name="cutoff_" tag="cutoff" type="cutoff_xml" dimension="1" />
|
||||
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue