From 4f1557d3ba9f6f56f47dbd57b0d050ab43ce8685 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 1 Oct 2019 14:00:45 -0700 Subject: Python Compile in Single Precision --- Source/Python/WarpXWrappers.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'Source/Python/WarpXWrappers.h') diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 53309ad93..3fc2ecc93 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -12,9 +12,12 @@ #include #ifdef BL_USE_MPI -#include +# include #endif +#include + + #ifdef __cplusplus extern "C" { #endif @@ -61,10 +64,17 @@ extern "C" { void warpx_evolve (int numsteps); // -1 means the inputs parameter will be used. - void warpx_addNParticles(int speciesnumber, int lenx, - amrex::ParticleReal* x, amrex::ParticleReal* y, amrex::ParticleReal* z, - amrex::ParticleReal* vx, amrex::ParticleReal* vy, amrex::ParticleReal* vz, - int nattr, amrex::ParticleReal* attr, int uniqueparticles); + void warpx_addNParticles(int speciesnumber, + int lenx, + amrex::ParticleReal const * x, + amrex::ParticleReal const * y, + amrex::ParticleReal const * z, + amrex::ParticleReal const * vx, + amrex::ParticleReal const * vy, + amrex::ParticleReal const * vz, + int nattr, + amrex::ParticleReal const * attr, + int uniqueparticles); void warpx_ConvertLabParamsToBoost(); -- cgit v1.2.3