Skip to content

Commit a9a2812

Browse files
author
Michael Zingale
committed
minor styling
1 parent 57bbe1d commit a9a2812

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pyro.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111

112112
other_commands = []
113-
if (len(next) > 3):
113+
if len(next) > 3:
114114
other_commands = next[3:]
115115

116116
# actually import the solver-specific stuff under the 'solver' namespace
@@ -130,10 +130,10 @@
130130
rp.load_params(solverName + "/problems/_" + problemName + ".defaults")
131131

132132
# now read in the inputs file
133-
if (not os.path.isfile(paramFile)):
133+
if not os.path.isfile(paramFile):
134134
# check if the param file lives in the solver's problems directory
135135
paramFile = solverName + "/problems/" + paramFile
136-
if (not os.path.isfile(paramFile)):
136+
if not os.path.isfile(paramFile):
137137
msg.fail("ERROR: inputs file does not exist")
138138

139139
rp.load_params(paramFile, no_new=1)
@@ -202,17 +202,17 @@
202202

203203
# get the timestep
204204
dt = solver.timestep(my_data)
205-
if (fix_dt > 0.0):
205+
if fix_dt > 0.0:
206206
dt = fix_dt
207207
else:
208-
if (n == 0):
208+
if n == 0:
209209
dt = init_tstep_factor*dt
210210
dt_old = dt
211211
else:
212212
dt = min(max_dt_change*dt_old, dt)
213213
dt_old = dt
214214

215-
if (my_data.t + dt > tmax):
215+
if my_data.t + dt > tmax:
216216
dt = tmax - my_data.t
217217

218218
# evolve for a single timestep

0 commit comments

Comments
 (0)