diff options
author | 2022-10-10 13:50:56 -0700 | |
---|---|---|
committer | 2022-10-10 20:50:56 +0000 | |
commit | 23fa23209879cbdf5ef829530def162c2b343c72 (patch) | |
tree | 1560b42388bd1792625f73f7ed71e08e7bc44e9d /Source/Python/WarpXWrappers.H | |
parent | e9cc65ffeb0684a97618b67c2164d95ea497226c (diff) | |
download | WarpX-23fa23209879cbdf5ef829530def162c2b343c72.tar.gz WarpX-23fa23209879cbdf5ef829530def162c2b343c72.tar.zst WarpX-23fa23209879cbdf5ef829530def162c2b343c72.zip |
Add functions for reading particle id and cpu numbers correctly (#3457)
Diffstat (limited to 'Source/Python/WarpXWrappers.H')
-rw-r--r-- | Source/Python/WarpXWrappers.H | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.H b/Source/Python/WarpXWrappers.H index 7cded8a89..9dbdb02db 100644 --- a/Source/Python/WarpXWrappers.H +++ b/Source/Python/WarpXWrappers.H @@ -82,6 +82,10 @@ extern "C" { long warpx_getNumParticles(const char* char_species_name, const bool local); + void warpx_convert_id_to_long (amrex::Long* ids, const WarpXParticleContainer::ParticleType* pstructs, int size); + + void warpx_convert_cpu_to_int (int* cpus, const WarpXParticleContainer::ParticleType* pstructs, int size); + amrex::ParticleReal** warpx_getParticleStructs( const char* char_species_name, int lev, int* num_tiles, int** particles_per_tile); |