File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,6 @@ def run_sim(self):
196196
197197 self .sim .finalize ()
198198
199- return self .sim
200-
201199 def single_step (self ):
202200 """
203201 Do a single step
@@ -253,9 +251,9 @@ def __repr__(self):
253251 return s
254252
255253 def get_var (self , v ):
256- """
257- Alias for cc_data's get_var routine, returns the cell-centered data
258- given the variable name v.
254+ """Alias for the data's get_var routine, returns the
255+ simulation data given the variable name v.
256+
259257 """
260258
261259 if not self .is_initialized :
@@ -264,15 +262,19 @@ def get_var(self, v):
264262 return self .sim .cc_data .get_var (v )
265263
266264 def get_grid (self ):
267- """
268- Return the underlying grid object for the simulation
265+ """Return the underlying grid object for the simulation
266+
269267 """
270268
271269 if not self .is_initialized :
272270 msg .fail ("ERROR: problem has not been initialized" )
273271
274272 return self .sim .cc_data .grid
275273
274+ def get_sim (self ):
275+ """Return the Simulation object"""
276+ return self .sim
277+
276278
277279class PyroBenchmark (Pyro ):
278280 """
You can’t perform that action at this time.
0 commit comments