aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/WarpX.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/WarpX.py')
-rw-r--r--Python/pywarpx/WarpX.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/Python/pywarpx/WarpX.py b/Python/pywarpx/WarpX.py
index e9ec7cca4..f0a31f3f9 100644
--- a/Python/pywarpx/WarpX.py
+++ b/Python/pywarpx/WarpX.py
@@ -1,5 +1,5 @@
from .Bucket import Bucket
-from . import warpxC
+from ._libwarpx import libwarpx
class WarpX(Bucket):
"""
@@ -7,21 +7,18 @@ class WarpX(Bucket):
"""
def init(self):
- self.warpx = warpxC.WarpX.GetInstance()
- self.warpx.InitData()
+ libwarpx.warpx_init()
def evolve(self, nsteps=-1):
- self.warpx.Evolve(nsteps)
+ libwarpx.warpx_evolve(nsteps)
def finalize(self):
- warpxC.WarpX.ResetInstance()
+ libwarpx.warpx_finalize()
def getProbLo(self, direction):
- return self.warpx.Geom()[0].ProbLo(direction)
- #return warpxC.warpx_getProbLo(direction)
+ return libwarpx.warpx_getProbLo(direction)
def getProbHi(self, direction):
- return self.warpx.Geom()[0].ProbHi(direction)
- #return warpxC.warpx_getProbHi(direction)
+ return libwarpx.warpx_getProbHi(direction)
warpx = WarpX('warpx')
rred/export-star-flat'>jarred/export-star-flat Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/headers.mjs (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-17Update nodejs compat docs with ttyGravatar Colin McDonnell 1-1/+1
2023-08-17Improve test documentationGravatar Colin McDonnell 2-24/+63
2023-08-17Update Astro guideGravatar Colin McDonnell 1-1/+5
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 3-8/+21
* Allow IncomingRequest.req to be overwritten. * add test * fix test * yoo
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 3-5/+151
Close: #4178
2023-08-17refactor: move HTMLRewriter to c++ bindings (#4193)Gravatar Brúnó Salomon 16-1127/+4961
2023-08-17Fix description for executables pageGravatar Colin McDonnell 1-1/+1