From 87f47024b0789036976f4b8fd5c0393d99ce0e82 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 29 Jan 2025 10:33:57 +0100 Subject: [PATCH] remove static keyword for AllocInitMultiFab and imultifab_map --- Source/WarpX.H | 4 ++-- Source/WarpX.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/WarpX.H b/Source/WarpX.H index f500347febc..bddce50c1ec 100644 --- a/Source/WarpX.H +++ b/Source/WarpX.H @@ -404,7 +404,7 @@ public: * \param[in] name The name of the iMultiFab to use in the map * \param[in] initial_value The optional initial value */ - static void AllocInitMultiFab ( + void AllocInitMultiFab ( std::unique_ptr& mf, const amrex::BoxArray& ba, const amrex::DistributionMapping& dm, @@ -417,7 +417,7 @@ public: // Maps of all of the iMultiFabs used (this can include MFs from other classes) // This is a convenience for the Python interface, allowing all iMultiFabs // to be easily referenced from Python. - static std::map imultifab_map; + std::map imultifab_map; /** * \brief diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 9442fed0596..a1eac8d6080 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -176,8 +176,6 @@ bool WarpX::do_dynamic_scheduling = true; bool WarpX::do_multi_J = false; int WarpX::do_multi_J_n_depositions; -std::map WarpX::imultifab_map; - IntVect WarpX::filter_npass_each_dir(1); int WarpX::n_field_gather_buffer = -1;