Skip to content

Commit

Permalink
update classes
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 18, 2024
1 parent f5d6a84 commit cdea66d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pyro/compressible_fv4/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
class Simulation(compressible_rk.Simulation):

def __init__(self, solver_name, problem_name, problem_func, rp, *,
problem_finalize_func=None, timers=None, data_class=fv.FV2d):
problem_finalize_func=None, problem_source_func=None,
timers=None, data_class=fv.FV2d):
super().__init__(solver_name, problem_name, problem_func, rp,
problem_finalize_func=problem_finalize_func,
problem_sourcE_func=problem_source_func,
timers=timers, data_class=data_class)

def substep(self, myd):
Expand Down
7 changes: 5 additions & 2 deletions pyro/lm_atm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ def jp(self, shift, buf=0):
class Simulation(NullSimulation):

def __init__(self, solver_name, problem_name, problem_func, rp, *,
problem_finalize_func=None, timers=None):
problem_finalize_func=None, problem_source_func=None,
timers=None):

super().__init__(solver_name, problem_name, problem_func, rp,
problem_finalize_func=problem_finalize_func, timers=timers)
problem_finalize_func=problem_finalize_func,
problem_source_func=problem_source_func,
timers=timers)

self.base = {}
self.aux_data = None
Expand Down

0 comments on commit cdea66d

Please sign in to comment.