mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Made default scatt moment order an empty string in statepoint
This commit is contained in:
parent
6933672af2
commit
63f117ca7f
2 changed files with 8 additions and 8 deletions
|
|
@ -262,7 +262,7 @@ contains
|
|||
end do
|
||||
end do
|
||||
case default
|
||||
moment_name = '0'
|
||||
moment_name = ''
|
||||
call sp % write_data(moment_name, "order", &
|
||||
group="tallies/tally" // trim(to_str(i)) // &
|
||||
"/moments/" // trim(to_str(k)))
|
||||
|
|
|
|||
|
|
@ -302,15 +302,15 @@ class StatePoint(object):
|
|||
|
||||
# Extract the moment order string for each score
|
||||
for k in range(t.n_scores):
|
||||
moment = self._get_string(8, path=base+'{0}/order'.format(k+1))
|
||||
moment = moment.lstrip('[\'')
|
||||
moment = moment.rstrip('\']')
|
||||
moment = self._get_string(8, path=base+'{0}/order'.format(k+1))
|
||||
moment = moment.lstrip('[\'')
|
||||
moment = moment.rstrip('\']')
|
||||
|
||||
# Remove extra whitespace
|
||||
moment.replace(" ", "")
|
||||
# Remove extra whitespace
|
||||
moment.replace(" ", "")
|
||||
|
||||
# Add the moment to the tally's list
|
||||
t.moments.append(moment)
|
||||
# Add the moment to the tally's list
|
||||
t.moments.append(moment)
|
||||
|
||||
# Set up stride
|
||||
stride = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue