Fixed issue with reading weight cutoffs incorrectly from settings.xml.

This commit is contained in:
Paul Romano 2011-10-05 12:51:58 -04:00
parent 56b2c1c667
commit 90a873e817
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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>