aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Source/WarpX.H20
-rw-r--r--Source/WarpX.cpp6
2 files changed, 3 insertions, 23 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 47021cbd6..9c0d9e301 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -439,26 +439,6 @@ public:
static std::map<std::string, amrex::MultiFab *> multifab_map;
static std::map<std::string, amrex::iMultiFab *> imultifab_map;
- /**
- * \brief
- * Add the MultiFab to the map of MultiFabs
- * \param name The name of the MultiFab use to reference the MultiFab
- * \param mf The MultiFab to be added to the map (via a pointer to it)
- */
- static void AddToMultiFabMap(const std::string& name, const std::unique_ptr<amrex::MultiFab>& mf) {
- multifab_map[name] = mf.get();
- }
-
- /**
- * \brief
- * Add the iMultiFab to the map of MultiFabs
- * \param name The name of the iMultiFab use to reference the iMultiFab
- * \param mf The iMultiFab to be added to the map (via a pointer to it)
- */
- static void AddToMultiFabMap(const std::string& name, const std::unique_ptr<amrex::iMultiFab>& mf) {
- imultifab_map[name] = mf.get();
- }
-
std::array<const amrex::MultiFab* const, 3>
get_array_Bfield_aux (const int lev) const {
return {
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 2e787b68d..31fef18cb 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -3166,7 +3166,7 @@ WarpX::AllocInitMultiFab (
if (initial_value) {
mf->setVal(*initial_value);
}
- WarpX::AddToMultiFabMap(name_with_suffix, mf);
+ multifab_map[name_with_suffix] = mf.get();
}
void
@@ -3186,7 +3186,7 @@ WarpX::AllocInitMultiFab (
if (initial_value) {
mf->setVal(*initial_value);
}
- WarpX::AddToMultiFabMap(name_with_suffix, mf);
+ imultifab_map[name_with_suffix] = mf.get();
}
void
@@ -3204,5 +3204,5 @@ WarpX::AliasInitMultiFab (
if (initial_value) {
mf->setVal(*initial_value);
}
- WarpX::AddToMultiFabMap(name_with_suffix, mf);
+ multifab_map[name_with_suffix] = mf.get();
}