Skip to content

Commit

Permalink
Merge pull request #2697 from psychocoderHPC/fix-plotNumericalHeating
Browse files Browse the repository at this point in the history
fix plotting tool for numerical heating
  • Loading branch information
ax3l authored Sep 4, 2018
2 parents c5b714c + a2c20f1 commit 0d7ad0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/bin/plotNumericalHeating
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ __doc__ = '''
This program compares the energy evolution of two PIConGPU runs.
Just give the directory of two PIConGPU runs and this program will
get all values needed if they are available.
You should activate `--energy_fields` and any `--energy_X` (X any species)
You should activate `--fields_energy` and any `--<species>_energy` (for any species)
for both simulation runs with the same dumping period.
A different number of particle species between both simulations
is possible.
Expand Down Expand Up @@ -119,7 +119,7 @@ for sim in directories:
mydir = sim+simDir
# get relevant files with energy
files = [f for f in os.listdir(mydir)
if os.path.isfile(os.path.join(mydir, f)) and re.search('^.*_energy_all.dat', f)]
if os.path.isfile(os.path.join(mydir, f)) and (re.search('^.*_energy_all.dat', f) or re.search('^.fields_energy.dat', f))]
# check if file list is empty
if len(files) == 0:
sys.exit("There were no energy files in \"{}\".".format(mydir))
Expand Down

0 comments on commit 0d7ad0c

Please sign in to comment.