From 1b15861e6e8da9b6843bad96c17c763626fce870 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 20 Sep 2021 18:22:14 -0700 Subject: Rename WarpXWrappers.(h->H) (#2261) * Rename WarpXWrappers.(h->H) All our other header files use `.H`, so renaming this one for consistency. * Remove unused includes of WarpXWrappers.H --- Source/Python/WarpXWrappers.H | 151 ++++++++++++++++++++++++++++++++++++++++ Source/Python/WarpXWrappers.cpp | 2 +- Source/Python/WarpXWrappers.h | 151 ---------------------------------------- Source/Python/WarpX_py.H | 2 +- 4 files changed, 153 insertions(+), 153 deletions(-) create mode 100644 Source/Python/WarpXWrappers.H delete mode 100644 Source/Python/WarpXWrappers.h (limited to 'Source/Python') diff --git a/Source/Python/WarpXWrappers.H b/Source/Python/WarpXWrappers.H new file mode 100644 index 000000000..71eb5b4fd --- /dev/null +++ b/Source/Python/WarpXWrappers.H @@ -0,0 +1,151 @@ +/* Copyright 2019 Andrew Myers, David Grote, Maxence Thevenet + * Remi Lehe, Weiqun Zhang + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ +#ifndef WARPX_WRAPPERS_H_ +#define WARPX_WRAPPERS_H_ + +#include "Particles/WarpXParticleContainer.H" +#include "Evolve/WarpXDtType.H" +#include +#include + +#ifdef AMREX_USE_MPI +# include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + int warpx_Real_size(); + int warpx_ParticleReal_size(); + + int warpx_nSpecies(); + + bool warpx_use_fdtd_nci_corr(); + + int warpx_galerkin_interpolation(); + + int warpx_nComps(); + + int warpx_nCompsSpecies(const char* char_species_name); + + int warpx_SpaceDim(); + + void amrex_init (int argc, char* argv[]); + +#ifdef AMREX_USE_MPI + void amrex_init_with_inited_mpi (int argc, char* argv[], MPI_Comm mpicomm); +#endif + + void amrex_finalize (int finalize_mpi); + + void warpx_init (); + + void warpx_finalize (); + + typedef void(*WARPX_CALLBACK_PY_FUNC_0)(); + + void warpx_set_callback_py_afterinit (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_beforeEsolve (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_poissonsolver (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_afterEsolve (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_beforedeposition (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_afterdeposition (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_particlescraper (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_particleloader (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_beforestep (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_afterstep (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_afterrestart (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_particleinjection (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_appliedfields (WARPX_CALLBACK_PY_FUNC_0); + + void warpx_evolve (int numsteps); // -1 means the inputs parameter will be used. + + void warpx_addNParticles(const char* char_species_name, + 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(); + + void warpx_ReadBCParams(); + + void warpx_CheckGriddingForRZSpectral(); + + amrex::Real warpx_getProbLo(int dir); + + amrex::Real warpx_getProbHi(int dir); + + long warpx_getNumParticles(const char* char_species_name); + + amrex::ParticleReal** warpx_getParticleStructs( + const char* char_species_name, int lev, int* num_tiles, + int** particles_per_tile); + + amrex::ParticleReal** warpx_getParticleArrays( + const char* char_species_name, const char* char_comp_name, int lev, + int* num_tiles, int** particles_per_tile); + + int warpx_getParticleCompIndex( + const char* char_species_name, const char* char_comp_name); + + void warpx_addRealComp( + const char* char_species_name, const char* char_comp_name, bool comm); + + int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary); + + int** warpx_getParticleBoundaryBufferScrapedSteps( + const char* species_name, int boundary, int lev, + int* num_tiles, int** particles_per_tile); + + amrex::ParticleReal** warpx_getParticleBoundaryBuffer( + const char* species_name, int boundary, int lev, + int* num_tiles, int** particles_per_tile, const char* comp_name); + + void warpx_clearParticleBoundaryBuffer (); + + void warpx_ComputeDt (); + void warpx_MoveWindow (int step, bool move_j); + + void warpx_EvolveE (amrex::Real dt); + void warpx_EvolveB (amrex::Real dt, DtType a_dt_type); + void warpx_FillBoundaryE (); + void warpx_FillBoundaryB (); + void warpx_SyncCurrent (); + void warpx_UpdateAuxilaryData (); + void warpx_PushParticlesandDepose (amrex::Real cur_time); + + int warpx_getistep (int lev); + void warpx_setistep (int lev, int ii); + amrex::Real warpx_gett_new (int lev); + void warpx_sett_new (int lev, amrex::Real time); + amrex::Real warpx_getdt (int lev); + + int warpx_maxStep (); + amrex::Real warpx_stopTime (); + + int warpx_finestLevel (); + + int warpx_getMyProc (); + int warpx_getNProcs (); + + + void mypc_Redistribute (); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index dd4cf0e75..921dc6b4f 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -13,7 +13,7 @@ #include "Particles/WarpXParticleContainer.H" #include "Utils/WarpXUtil.H" #include "WarpX.H" -#include "WarpXWrappers.h" +#include "WarpXWrappers.H" #include "WarpX_py.H" #include diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h deleted file mode 100644 index 71eb5b4fd..000000000 --- a/Source/Python/WarpXWrappers.h +++ /dev/null @@ -1,151 +0,0 @@ -/* Copyright 2019 Andrew Myers, David Grote, Maxence Thevenet - * Remi Lehe, Weiqun Zhang - * - * This file is part of WarpX. - * - * License: BSD-3-Clause-LBNL - */ -#ifndef WARPX_WRAPPERS_H_ -#define WARPX_WRAPPERS_H_ - -#include "Particles/WarpXParticleContainer.H" -#include "Evolve/WarpXDtType.H" -#include -#include - -#ifdef AMREX_USE_MPI -# include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - - int warpx_Real_size(); - int warpx_ParticleReal_size(); - - int warpx_nSpecies(); - - bool warpx_use_fdtd_nci_corr(); - - int warpx_galerkin_interpolation(); - - int warpx_nComps(); - - int warpx_nCompsSpecies(const char* char_species_name); - - int warpx_SpaceDim(); - - void amrex_init (int argc, char* argv[]); - -#ifdef AMREX_USE_MPI - void amrex_init_with_inited_mpi (int argc, char* argv[], MPI_Comm mpicomm); -#endif - - void amrex_finalize (int finalize_mpi); - - void warpx_init (); - - void warpx_finalize (); - - typedef void(*WARPX_CALLBACK_PY_FUNC_0)(); - - void warpx_set_callback_py_afterinit (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_beforeEsolve (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_poissonsolver (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_afterEsolve (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_beforedeposition (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_afterdeposition (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_particlescraper (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_particleloader (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_beforestep (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_afterstep (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_afterrestart (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_particleinjection (WARPX_CALLBACK_PY_FUNC_0); - void warpx_set_callback_py_appliedfields (WARPX_CALLBACK_PY_FUNC_0); - - void warpx_evolve (int numsteps); // -1 means the inputs parameter will be used. - - void warpx_addNParticles(const char* char_species_name, - 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(); - - void warpx_ReadBCParams(); - - void warpx_CheckGriddingForRZSpectral(); - - amrex::Real warpx_getProbLo(int dir); - - amrex::Real warpx_getProbHi(int dir); - - long warpx_getNumParticles(const char* char_species_name); - - amrex::ParticleReal** warpx_getParticleStructs( - const char* char_species_name, int lev, int* num_tiles, - int** particles_per_tile); - - amrex::ParticleReal** warpx_getParticleArrays( - const char* char_species_name, const char* char_comp_name, int lev, - int* num_tiles, int** particles_per_tile); - - int warpx_getParticleCompIndex( - const char* char_species_name, const char* char_comp_name); - - void warpx_addRealComp( - const char* char_species_name, const char* char_comp_name, bool comm); - - int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary); - - int** warpx_getParticleBoundaryBufferScrapedSteps( - const char* species_name, int boundary, int lev, - int* num_tiles, int** particles_per_tile); - - amrex::ParticleReal** warpx_getParticleBoundaryBuffer( - const char* species_name, int boundary, int lev, - int* num_tiles, int** particles_per_tile, const char* comp_name); - - void warpx_clearParticleBoundaryBuffer (); - - void warpx_ComputeDt (); - void warpx_MoveWindow (int step, bool move_j); - - void warpx_EvolveE (amrex::Real dt); - void warpx_EvolveB (amrex::Real dt, DtType a_dt_type); - void warpx_FillBoundaryE (); - void warpx_FillBoundaryB (); - void warpx_SyncCurrent (); - void warpx_UpdateAuxilaryData (); - void warpx_PushParticlesandDepose (amrex::Real cur_time); - - int warpx_getistep (int lev); - void warpx_setistep (int lev, int ii); - amrex::Real warpx_gett_new (int lev); - void warpx_sett_new (int lev, amrex::Real time); - amrex::Real warpx_getdt (int lev); - - int warpx_maxStep (); - amrex::Real warpx_stopTime (); - - int warpx_finestLevel (); - - int warpx_getMyProc (); - int warpx_getNProcs (); - - - void mypc_Redistribute (); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/Source/Python/WarpX_py.H b/Source/Python/WarpX_py.H index dff61c2b5..42697fbac 100644 --- a/Source/Python/WarpX_py.H +++ b/Source/Python/WarpX_py.H @@ -8,7 +8,7 @@ #ifndef WARPX_PY_H_ #define WARPX_PY_H_ -#include "WarpXWrappers.h" +#include "WarpXWrappers.H" extern "C" { -- cgit v1.2.3