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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index f2c022365..2dd19d5cc 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -763,6 +763,12 @@ namespace
return amrex::ParallelDescriptor::NProcs();
}
+ void warpx_setPotentialEB (const char * char_potential) {
+ WarpX& warpx = WarpX::GetInstance();
+ const std::string potential(char_potential);
+ warpx.m_poisson_boundary_handler.setPotentialEB(potential);
+ }
+
void mypc_Redistribute () {
auto & mypc = WarpX::GetInstance().GetPartContainer();
mypc.Redistribute();