Skip to content

Commit 6c55374

Browse files
authored
compressible_fv4 does not need to reimplement evolve (#332)
we can use the version we inherit
1 parent ab26c9c commit 6c55374

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

pyro/compressible_fv4/simulation.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pyro.compressible_fv4.fluxes as flx
22
from pyro import compressible_rk
33
from pyro.compressible import get_external_sources, get_sponge_factor
4-
from pyro.mesh import fv, integration
4+
from pyro.mesh import fv
55

66

77
class Simulation(compressible_rk.Simulation):
@@ -66,37 +66,3 @@ def preevolve(self):
6666
# we just initialized cell-centers, but we need to store averages
6767
for var in self.cc_data.names:
6868
self.cc_data.from_centers(var)
69-
70-
def evolve(self):
71-
72-
"""
73-
Evolve the equations of compressible hydrodynamics through a
74-
timestep dt.
75-
"""
76-
77-
tm_evolve = self.tc.timer("evolve")
78-
tm_evolve.begin()
79-
80-
myd = self.cc_data
81-
82-
method = self.rp.get_param("compressible.temporal_method")
83-
84-
rk = integration.RKIntegrator(myd.t, self.dt, method=method)
85-
rk.set_start(myd)
86-
87-
for s in range(rk.nstages()):
88-
ytmp = rk.get_stage_start(s)
89-
ytmp.fill_BC_all()
90-
k = self.substep(ytmp)
91-
rk.store_increment(s, k)
92-
93-
rk.compute_final_update()
94-
95-
if self.particles is not None:
96-
self.particles.update_particles(self.dt)
97-
98-
# increment the time
99-
myd.t += self.dt
100-
self.n += 1
101-
102-
tm_evolve.end()

0 commit comments

Comments
 (0)