aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xExec/Langmuir/python/Langmuir.py8
-rw-r--r--Source/WarpXWrappers.cpp8
-rw-r--r--Source/WarpXWrappers.h8
3 files changed, 12 insertions, 12 deletions
diff --git a/Exec/Langmuir/python/Langmuir.py b/Exec/Langmuir/python/Langmuir.py
index 1ffa6f862..d3f061bd2 100755
--- a/Exec/Langmuir/python/Langmuir.py
+++ b/Exec/Langmuir/python/Langmuir.py
@@ -66,7 +66,7 @@ f.restype = ctypes.POINTER(c_double_p)
f = libwarpx.warpx_getCurrentDensity
f.restype = ctypes.POINTER(c_double_p)
-f = libwarpx.addNParticles
+f = libwarpx.warpx_addNParticles
f.argtypes = (ctypes.c_int, ctypes.c_int,
ndpointer(ctypes.c_double, flags="C_CONTIGUOUS"),
ndpointer(ctypes.c_double, flags="C_CONTIGUOUS"),
@@ -97,9 +97,9 @@ def add_particles(species_number, N,
several processes
'''
- libwarpx.addNParticles(species_number, N,
- x, y, z, ux, uy, uz,
- nattr, attr, unique_particles)
+ libwarpx.warpx_addNParticles(species_number, N,
+ x, y, z, ux, uy, uz,
+ nattr, attr, unique_particles)
def get_particle_structs(species_number):
'''
diff --git a/Source/WarpXWrappers.cpp b/Source/WarpXWrappers.cpp
index 92ead9ab2..a928c8e52 100644
--- a/Source/WarpXWrappers.cpp
+++ b/Source/WarpXWrappers.cpp
@@ -41,10 +41,10 @@ extern "C"
warpx.Evolve(numsteps);
}
- void addNParticles(int speciesnumber, int lenx,
- double* x, double* y, double* z,
- double* vx, double* vy, double* vz,
- int nattr, double* attr, int uniqueparticles)
+ void warpx_addNParticles(int speciesnumber, int lenx,
+ double* x, double* y, double* z,
+ double* vx, double* vy, double* vz,
+ int nattr, double* attr, int uniqueparticles)
{
auto & mypc = WarpX::GetInstance().GetPartContainer();
auto & myspc = mypc.GetParticleContainer(speciesnumber);
diff --git a/Source/WarpXWrappers.h b/Source/WarpXWrappers.h
index 0db954d5b..28ee28a0c 100644
--- a/Source/WarpXWrappers.h
+++ b/Source/WarpXWrappers.h
@@ -23,10 +23,10 @@ extern "C" {
void warpx_evolve (int numsteps); // -1 means the inputs parameter will be used.
- void addNParticles(int speciesnumber, int lenx,
- double* x, double* y, double* z,
- double* vx, double* vy, double* vz,
- int nattr, double* attr, int uniqueparticles);
+ void warpx_addNParticles(int speciesnumber, int lenx,
+ double* x, double* y, double* z,
+ double* vx, double* vy, double* vz,
+ int nattr, double* attr, int uniqueparticles);
double warpx_getProbLo(int dir);