Skip to content

Commit

Permalink
Merge pull request #237 from rjleveque/restart_None
Browse files Browse the repository at this point in the history
remove RESTART from Makefile and comment from setrun.py
  • Loading branch information
mandli authored Dec 22, 2016
2 parents ededec9 + 0dc6a54 commit 004f09c
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 18 deletions.
2 changes: 0 additions & 2 deletions examples/multi-layer/plane_wave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ OUTDIR = _output # Directory for output
SETPLOT_FILE = setplot.py # File containing function to set plots
PLOTDIR = _plots # Directory for plots

RESTART = False

# Environment variable FC should be set to fortran compiler, e.g. gfortran

# Compiler flags can be specified here or set as an environment variable
Expand Down
4 changes: 1 addition & 3 deletions examples/multi-layer/plane_wave/setrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ def setrun(claw_pkg='geoclaw'):


# Restart from checkpoint file of a previous run?
# Note: If restarting, you must also change the Makefile to set:
# RESTART = True
# If restarting, t0 above should be from original run, and the
# restart_file 'fort.chkNNNNN' specified below should be in
# the OUTDIR indicated in Makefile.
Expand Down Expand Up @@ -534,4 +532,4 @@ def write_topo_file(run_data, out_file, **kwargs):

rundata.write()

write_topo_file(rundata, 'topo.tt2')
write_topo_file(rundata, 'topo.tt2')
2 changes: 0 additions & 2 deletions examples/storm-surge/ike/setrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ def setrun(claw_pkg='geoclaw'):
# clawdata.t0 = days2seconds(ike_landfall.days - 1) + ike_landfall.seconds

# Restart from checkpoint file of a previous run?
# Note: If restarting, you must also change the Makefile to set:
# RESTART = True
# If restarting, t0 above should be from original run, and the
# restart_file 'fort.chkNNNNN' specified below should be in
# the OUTDIR indicated in Makefile.
Expand Down
2 changes: 0 additions & 2 deletions examples/tsunami/bowl-radial/setrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ def setrun(claw_pkg='geoclaw'):


# Restart from checkpoint file of a previous run?
# Note: If restarting, you must also change the Makefile to set:
# RESTART = True
# If restarting, t0 above should be from original run, and the
# restart_file 'fort.chkNNNNN' specified below should be in
# the OUTDIR indicated in Makefile.
Expand Down
2 changes: 0 additions & 2 deletions examples/tsunami/bowl-slosh/setrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ def setrun(claw_pkg='geoclaw'):


# Restart from checkpoint file of a previous run?
# Note: If restarting, you must also change the Makefile to set:
# RESTART = True
# If restarting, t0 above should be from original run, and the
# restart_file 'fort.chkNNNNN' specified below should be in
# the OUTDIR indicated in Makefile.
Expand Down
2 changes: 0 additions & 2 deletions examples/tsunami/chile2010/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ OUTDIR = _output # Directory for output
SETPLOT_FILE = setplot.py # File containing function to set plots
PLOTDIR = _plots # Directory for plots

RESTART = False

# Environment variable FC should be set to fortran compiler, e.g. gfortran

# Compiler flags can be specified here or set as an environment variable
Expand Down
8 changes: 3 additions & 5 deletions examples/tsunami/chile2010/setrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@ def setrun(claw_pkg='geoclaw'):


# Restart from checkpoint file of a previous run?
# Note: If restarting, you must also change the Makefile to set:
# RESTART = True
# If restarting, t0 above should be from original run, and the
# restart_file 'fort.chkNNNNN' specified below should be in
# the OUTDIR indicated in Makefile.

clawdata.restart = False # True to restart from prior results
clawdata.restart_file = 'fort.chk00036' # File to use for restart data
clawdata.restart = False # True to restart from prior results
clawdata.restart_file = 'fort.chk00096' # File to use for restart data

# -------------
# Output times:
Expand All @@ -131,7 +129,7 @@ def setrun(claw_pkg='geoclaw'):
if clawdata.output_style==1:
# Output nout frames at equally spaced times up to tfinal:
clawdata.num_output_times = 18
clawdata.tfinal = 32400.0
clawdata.tfinal = 9*3600.
clawdata.output_t0 = True # output at initial (or restart) time?

elif clawdata.output_style == 2:
Expand Down

0 comments on commit 004f09c

Please sign in to comment.