aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r--Source/Python/WarpXWrappers.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 60d675d3a..47942a55b 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -142,12 +142,10 @@ extern "C"
warpx_amrex_init(argc, argv);
}
-#ifdef BL_USE_MPI
void amrex_init_with_inited_mpi (int argc, char* argv[], MPI_Comm mpicomm)
{
warpx_amrex_init(argc, argv, true, mpicomm);
}
-#endif
void amrex_finalize (int /*finalize_mpi*/)
{
@@ -496,6 +494,14 @@ extern "C"
return warpx.finestLevel ();
}
+ int warpx_getMyProc () {
+ return amrex::ParallelDescriptor::MyProc();
+ }
+
+ int warpx_getNProcs () {
+ return amrex::ParallelDescriptor::NProcs();
+ }
+
void mypc_Redistribute () {
auto & mypc = WarpX::GetInstance().GetPartContainer();
mypc.Redistribute();