File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110
111111
112112other_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
130130rp .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
139139rp .load_params (paramFile , no_new = 1 )
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
You can’t perform that action at this time.
0 commit comments