diff options
author | 2017-12-06 11:15:39 -0800 | |
---|---|---|
committer | 2017-12-06 11:15:39 -0800 | |
commit | f53e5c69e9576484ac3b114ea4c7651613dc620d (patch) | |
tree | 0891e16bdd58f60fb6154363b8d4724e13cb3b96 /Python/pywarpx/timestepper.py | |
parent | 6e7ea8d95b3eb2ca63ed7c557c379167ba058ff2 (diff) | |
download | WarpX-f53e5c69e9576484ac3b114ea4c7651613dc620d.tar.gz WarpX-f53e5c69e9576484ac3b114ea4c7651613dc620d.tar.zst WarpX-f53e5c69e9576484ac3b114ea4c7651613dc620d.zip |
Clean up for python call backs
Diffstat (limited to '')
-rw-r--r-- | Python/pywarpx/timestepper.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Python/pywarpx/timestepper.py b/Python/pywarpx/timestepper.py index d32b43b2d..fe58c623f 100644 --- a/Python/pywarpx/timestepper.py +++ b/Python/pywarpx/timestepper.py @@ -1,5 +1,5 @@ from ._libwarpx import libwarpx -import .controllers +import .callbacks class TimeStepper(object): @@ -9,7 +9,7 @@ class TimeStepper(object): def onestep(self): - controllers._beforestep() + callbacks._beforestep() self.cur_time = libwarpx.warpx_gett_new(0) self.istep = libwarpx.warpx_getistep(0) @@ -32,11 +32,11 @@ class TimeStepper(object): # --- Evolve particles to p^{n+1/2} and x^{n+1} # --- Depose current, j^{n+1/2} - controllers._particleinjection() - controllers._particlescraper() - controllers._beforedeposition() + callbacks._particleinjection() + callbacks._particlescraper() + callbacks._beforedeposition() libwarpx.warpx_PushParticlesandDepose(self.cur_time) - controllers._afterdeposition() + callbacks._afterdeposition() libwarpx.mypc_Redistribute() # Redistribute particles @@ -46,9 +46,9 @@ class TimeStepper(object): libwarpx.warpx_SyncCurrent() libwarpx.warpx_FillBoundaryB() - controllers._beforeEsolve() + callbacks._beforeEsolve() libwarpx.warpx_EvolveE(dt,0) # We now have E^{n+1} - controllers._afterEsolve() + callbacks._afterEsolve() self.istep += 1 @@ -72,4 +72,4 @@ class TimeStepper(object): if libwarpx.warpx_checkInt() > 0 and (self.istep+1)%libwarpx.warpx_plotInt() == 0 or max_time_reached: libwarpx.warpx_WriteCheckPointFile() - controllers._afterstep() + callbacks._afterstep() |