Remove installation of two scripts from CMakeLists.txt. Move particle_restart.py

to utils/openmc folder to make it part of Python API.
This commit is contained in:
Paul Romano 2015-04-29 06:42:56 +07:00
parent 3a20f851f1
commit 6e29cf2fbe
4 changed files with 7 additions and 10 deletions

View file

@ -261,15 +261,12 @@ set_target_properties(${program} PROPERTIES
#===============================================================================
install(TARGETS ${program} RUNTIME DESTINATION bin)
install(PROGRAMS utils/statepoint_cmp.py
install(PROGRAMS utils/plot_mesh_tally.py
DESTINATION bin
RENAME statepoint_cmp)
RENAME plot_mesh_tally)
install(PROGRAMS utils/statepoint_histogram.py
DESTINATION bin
RENAME statepoint_histogram)
install(PROGRAMS utils/statepoint_meshplot.py
DESTINATION bin
RENAME statepoint_meshplot)
install(PROGRAMS utils/update_inputs.py
DESTINATION bin
RENAME update_inputs)

View file

@ -5,7 +5,7 @@ import sys
sys.path.insert(0, '../../src/utils')
# import particle restart
import particle_restart as pr
import openmc.particle_restart as pr
# read in particle restart file
if len(sys.argv) > 1:

View file

@ -4,8 +4,8 @@ import sys
sys.path.insert(0, '../../src/utils')
# import particle restart
import particle_restart as pr
# import particle restart
import openmc.particle_restart as pr
# read in particle restart file
if len(sys.argv) > 1:
@ -15,8 +15,8 @@ else:
# set up output string
outstr = ''
# write out properties
# write out properties
outstr += 'current batch:\n'
outstr += "{0:12.6E}\n".format(p.current_batch)
outstr += 'current gen:\n'