aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/WarpXPIC.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/WarpXPIC.py')
-rw-r--r--Python/pywarpx/WarpXPIC.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/Python/pywarpx/WarpXPIC.py b/Python/pywarpx/WarpXPIC.py
index 241951d13..e98ff823d 100644
--- a/Python/pywarpx/WarpXPIC.py
+++ b/Python/pywarpx/WarpXPIC.py
@@ -17,46 +17,46 @@ from ._libwarpx import libwarpx
class WarpXPIC(PICAPI):
def get_time(self):
- return libwarpx.warpx_gett_new(0)
+ return libwarpx.libwarpx_so.warpx_gett_new(0)
def set_time(self, time):
- for i in range(libwarpx.warpx_finestLevel()+1):
- libwarpx.warpx_sett_new(i, time)
+ for i in range(libwarpx.libwarpx_so.warpx_finestLevel()+1):
+ libwarpx.libwarpx_so.warpx_sett_new(i, time)
def get_step_size(self):
- libwarpx.warpx_ComputeDt()
- return libwarpx.warpx_getdt(0)
+ libwarpx.libwarpx_so.warpx_ComputeDt()
+ return libwarpx.libwarpx_so.warpx_getdt(0)
def get_step_number(self):
- return libwarpx.warpx_getistep(0)
+ return libwarpx.libwarpx_so.warpx_getistep(0)
def set_step_number(self, it):
- for i in range(libwarpx.warpx_finestLevel()+1):
- libwarpx.warpx_setistep(i, it)
+ for i in range(libwarpx.libwarpx_so.warpx_finestLevel()+1):
+ libwarpx.libwarpx_so.warpx_setistep(i, it)
def push_positions(self, dt):
- libwarpx.warpx_PushX(0, dt)
+ libwarpx.libwarpx_so.warpx_PushX(0, dt)
def push_velocities_withE(self, dt):
- libwarpx.warpx_EPushV(0, dt)
+ libwarpx.libwarpx_so.warpx_EPushV(0, dt)
def push_velocities_withB(self, dt):
- libwarpx.warpx_BPushV(0, dt)
+ libwarpx.libwarpx_so.warpx_BPushV(0, dt)
def get_self_fields(self):
- libwarpx.warpx_FieldGather(0)
+ libwarpx.libwarpx_so.warpx_FieldGather(0)
def calculate_source(self):
- libwarpx.warpx_CurrentDeposition(0)
+ libwarpx.libwarpx_so.warpx_CurrentDeposition(0)
def push_Efields(self, dt):
- libwarpx.warpx_EvolveE(0, dt)
- libwarpx.warpx_FillBoundaryE(0, True)
+ libwarpx.libwarpx_so.warpx_EvolveE(0, dt)
+ libwarpx.libwarpx_so.warpx_FillBoundaryE(0, True)
def push_Bfields(self, dt):
- libwarpx.warpx_EvolveB(0, dt)
- libwarpx.warpx_FillBoundaryB(0, True)
+ libwarpx.libwarpx_so.warpx_EvolveB(0, dt)
+ libwarpx.libwarpx_so.warpx_FillBoundaryB(0, True)
def apply_particle_boundary_conditions(self):
- libwarpx.mypc_Redistribute() # Redistribute particles
- libwarpx.warpx_MoveWindow(self.istep,True) # !!! not the correct place yet
+ libwarpx.libwarpx_so.mypc_Redistribute() # Redistribute particles
+ libwarpx.libwarpx_so.warpx_MoveWindow(self.istep,True) # !!! not the correct place yet