From 6c55374f39fed89975e68f50ebf0c811e5b6b111 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 24 Jan 2025 15:47:47 -0500 Subject: [PATCH] compressible_fv4 does not need to reimplement evolve (#332) we can use the version we inherit --- pyro/compressible_fv4/simulation.py | 36 +---------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/pyro/compressible_fv4/simulation.py b/pyro/compressible_fv4/simulation.py index 0097832b6..11c9a4aa5 100644 --- a/pyro/compressible_fv4/simulation.py +++ b/pyro/compressible_fv4/simulation.py @@ -1,7 +1,7 @@ import pyro.compressible_fv4.fluxes as flx from pyro import compressible_rk from pyro.compressible import get_external_sources, get_sponge_factor -from pyro.mesh import fv, integration +from pyro.mesh import fv class Simulation(compressible_rk.Simulation): @@ -66,37 +66,3 @@ def preevolve(self): # we just initialized cell-centers, but we need to store averages for var in self.cc_data.names: self.cc_data.from_centers(var) - - def evolve(self): - - """ - Evolve the equations of compressible hydrodynamics through a - timestep dt. - """ - - tm_evolve = self.tc.timer("evolve") - tm_evolve.begin() - - myd = self.cc_data - - method = self.rp.get_param("compressible.temporal_method") - - rk = integration.RKIntegrator(myd.t, self.dt, method=method) - rk.set_start(myd) - - for s in range(rk.nstages()): - ytmp = rk.get_stage_start(s) - ytmp.fill_BC_all() - k = self.substep(ytmp) - rk.store_increment(s, k) - - rk.compute_final_update() - - if self.particles is not None: - self.particles.update_particles(self.dt) - - # increment the time - myd.t += self.dt - self.n += 1 - - tm_evolve.end()