diff options
author | 2021-07-20 21:31:48 -0700 | |
---|---|---|
committer | 2021-07-21 04:31:48 +0000 | |
commit | 04a2b5163f636eba6ed32fcdfd311c42dd4c3c21 (patch) | |
tree | 917da8ac976d97b4def49ab405606fd828f70fc9 /Source/Python/WarpXWrappers.h | |
parent | 30a7f5ef5a561f59c70d127b54c17b5bcd82ede8 (diff) | |
download | WarpX-04a2b5163f636eba6ed32fcdfd311c42dd4c3c21.tar.gz WarpX-04a2b5163f636eba6ed32fcdfd311c42dd4c3c21.tar.zst WarpX-04a2b5163f636eba6ed32fcdfd311c42dd4c3c21.zip |
Use only species name in libwarpx (#2119)
* changed all particle interacting functions in libwarpx to use the species name rather than id, also changed the functions to get particle array data to use the component name rather than index
* removed unneeded function declaration
Diffstat (limited to '')
-rw-r--r-- | Source/Python/WarpXWrappers.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 1672b01ae..a7d389750 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -63,7 +63,7 @@ extern "C" { void warpx_evolve (int numsteps); // -1 means the inputs parameter will be used. - void warpx_addNParticles(int speciesnumber, + void warpx_addNParticles(const char* char_species_name, int lenx, amrex::ParticleReal const * x, amrex::ParticleReal const * y, @@ -85,22 +85,16 @@ extern "C" { amrex::Real warpx_getProbHi(int dir); - long warpx_getNumParticles(int speciesnumber); + long warpx_getNumParticles(const char* char_species_name); - amrex::ParticleReal** warpx_getParticleStructs(int speciesnumber, int lev, - int* num_tiles, int** particles_per_tile); + amrex::ParticleReal** warpx_getParticleStructs( + const char* char_species_name, int lev, int* num_tiles, + int** particles_per_tile); - amrex::ParticleReal** warpx_getParticleArrays(int speciesnumber, int comp, int lev, - int* num_tiles, int** particles_per_tile); - - amrex::ParticleReal** warpx_getParticleArraysFromCompName( + amrex::ParticleReal** warpx_getParticleArrays( const char* char_species_name, const char* char_comp_name, int lev, int* num_tiles, int** particles_per_tile); - amrex::ParticleReal** warpx_getParticleArraysUsingPC( - WarpXParticleContainer& myspc, int comp, - int lev, int* num_tiles, int** particles_per_tile); - int warpx_getParticleCompIndex( const char* char_species_name, const char* char_comp_name); |