mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
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:
parent
3a20f851f1
commit
6e29cf2fbe
4 changed files with 7 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue