|
run_tests.py.html |
|
|
Source file: run_tests.py
|
|
Directory: /Users/rjl/Dropbox/ggsss-pages/claw-apps/advection-1d-3
|
|
Converted: Sun Jul 29 2012 at 22:07:49
using clawcode2html
|
|
This documentation file will
not reflect any later changes in the source file.
|
#! /usr/bin/python
"""
Run several tests with different parameter choices, storing each set of
plots in a different directory. The same _output directory is used each
time.
"""
from setrun import setrun
from setplot import setplot
from pyclaw.runclaw import runclaw
from pyclaw.plotters.plotclaw import plotclaw
# initialize rundata using setrun but then change some things for each run:
rundata = setrun()
clawdata = rundata.clawdata
#-----------------------------
for mx in [200, 1000]:
clawdata.mx = mx
clawdata.order = 1
clawdata.mthlim = [0]
rundata.write()
runclaw(xclawcmd = "xclaw", outdir="_output")
plotclaw(outdir="_output", plotdir="_plots_upwind_mx%s" % mx)
#-----------------------------
clawdata.mx = mx
clawdata.order = 2
clawdata.mthlim = [0]
rundata.write()
runclaw(xclawcmd = "xclaw", outdir="_output")
plotclaw(outdir="_output", plotdir="_plots_LaxWendroff_mx%s" % mx)
#-----------------------------
clawdata.mx = mx
clawdata.order = 2
clawdata.mthlim = [1]
rundata.write()
runclaw(xclawcmd = "xclaw", outdir="_output")
plotclaw(outdir="_output", plotdir="_plots_minmod_mx%s" % mx)
#-----------------------------
clawdata.mx = mx
clawdata.order = 2
clawdata.mthlim = [3]
rundata.write()
runclaw(xclawcmd = "xclaw", outdir="_output")
plotclaw(outdir="_output", plotdir="_plots_MC_mx%s" % mx)
#-----------------------------