mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Minor changes to plot.f90 and plot.py.
This commit is contained in:
parent
742537af92
commit
a8efc294cd
2 changed files with 6 additions and 1 deletions
|
|
@ -28,7 +28,6 @@ contains
|
|||
real(8) :: distance ! distance particle travels
|
||||
logical :: found_cell ! found cell which particle is in?
|
||||
logical :: in_lattice ! is surface crossing in lattice?
|
||||
character(MAX_LINE_LEN) :: msg ! output/error message
|
||||
character(MAX_LINE_LEN) :: path_plot ! unit for binary plot file
|
||||
type(Cell), pointer :: c => null()
|
||||
type(Universe), pointer :: univ => null()
|
||||
|
|
|
|||
|
|
@ -195,5 +195,11 @@ if __name__ == '__main__':
|
|||
filename = sys.argv[1]
|
||||
|
||||
p = Plot()
|
||||
|
||||
# Load binary plot.out file
|
||||
print("Loading plotting file...")
|
||||
p.load_file(filename)
|
||||
|
||||
# Display plot
|
||||
print("Generating plot...")
|
||||
p.plot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue