You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When running in clusters it may be useful to run the benchmarks with the prompt version of D1SUNED which is faster with respect to vanilla MCNP. In order to do so, inputs need to have the RMODE 0 keyword in them
Describe the solution you'd like
Currently I have been using the following script to perform this operation, but it would be nicer to add it as an utility in JADE:
importosroot=r'R:\AC_ResultsDB\Jade\04_JADE_latest_root\Benchmarks_Inputs - Copy'# walk trough the root tree, when mcnp folder is found, the RMODE 0 line has# to be added to the input filefordirpath, dirnames, filenamesinos.walk(root):
if'mcnp'indirnames:
mcnp_dir=os.path.join(dirpath, 'mcnp')
forfilenameinos.listdir(mcnp_dir):
filepath=os.path.join(mcnp_dir, filename)
withopen(filepath, 'r') asf:
lines=f.readlines()
flag_no_rmode=Truewithopen(filepath, 'w') asf:
forlineinlines:
f.write(line)
if'RMODE'inline:
flag_no_rmode=Falseifflag_no_rmode:
f.write('RMODE 0\n')
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When running in clusters it may be useful to run the benchmarks with the prompt version of D1SUNED which is faster with respect to vanilla MCNP. In order to do so, inputs need to have the
RMODE 0
keyword in themDescribe the solution you'd like
Currently I have been using the following script to perform this operation, but it would be nicer to add it as an utility in JADE:
The text was updated successfully, but these errors were encountered: