Skip to content

Commit

Permalink
Merge pull request AMReX-Codes#6 from atmyers/blank_check
Browse files Browse the repository at this point in the history
allow suite.plot_file_name and suite.check_file_name to be blank
  • Loading branch information
MaxThevenet authored Apr 29, 2020
2 parents bfb4566 + 32aa5af commit 67cbba6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,11 @@ def test_suite(argv):

if suite.sourceTree == "C_Src" or test.testSrcTree == "C_Src":

base_cmd = "./{} {} {}={}_plt {}={}_chk".format(
executable, test.inputFile, suite.plot_file_name, test.name, suite.check_file_name, test.name)
base_cmd = "./{} {} ".format(executable, test.inputFile)
if suite.plot_file_name != "":
base_cmd += "{}={}_plt ".format(suite.plot_file_name, test.name)
if suite.plot_file_name != "":
base_cmd += "{}={}_chk".format(suite.check_file_name, test.name)

# keep around the checkpoint files only for the restart runs
if test.restartTest:
Expand Down

0 comments on commit 67cbba6

Please sign in to comment.