Skip to content

Commit 55628af

Browse files
author
Michael Zingale
committed
minor clean-ups
1 parent f8c15e4 commit 55628af

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

pyro.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
print usage
9999
msg.fail("ERROR: solver name not specified on command line")
100100

101-
try: problemName = next[1]
101+
try: problem_name = next[1]
102102
except IndexError:
103103
print usage
104104
msg.fail("ERROR: problem name not specified on command line")
@@ -127,7 +127,7 @@
127127
rp.load_params(solverName + "/_defaults")
128128

129129
# problem-specific runtime parameters
130-
rp.load_params(solverName + "/problems/_" + problemName + ".defaults")
130+
rp.load_params(solverName + "/problems/_" + problem_name + ".defaults")
131131

132132
# now read in the inputs file
133133
if not os.path.isfile(paramFile):
@@ -149,15 +149,11 @@
149149
# initialization
150150
#-----------------------------------------------------------------------------
151151

152-
# initialize the grid structure -- we will store the rp in the data object
153-
sim = solver.Simulation(problemName, rp)
152+
# initialize the Simulation object -- this will hold the grid and data and
153+
# know about the runtime parameters and which problem we are running
154+
sim = solver.Simulation(problem_name, rp)
154155

155156
sim.initialize()
156-
157-
158-
#-----------------------------------------------------------------------------
159-
# pre-evolve
160-
#-----------------------------------------------------------------------------
161157
sim.preevolve()
162158

163159

@@ -185,7 +181,6 @@
185181
pylab.figure(num=1, figsize=(8,6), dpi=100, facecolor='w')
186182
sim.dovis(0)
187183

188-
189184
nout = 0
190185

191186
while sim.cc_data.t < tmax and n < max_steps:

0 commit comments

Comments
 (0)