aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 971b13548..eb1ee803e 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -192,6 +192,7 @@ int WarpX::n_field_gather_buffer = -1;
int WarpX::n_current_deposition_buffer = -1;
int WarpX::do_nodal = false;
+amrex::IntVect m_rho_nodal_flag;
int WarpX::do_similar_dm_pml = 1;
@@ -1650,6 +1651,9 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
ncomps = n_rz_azimuthal_modes*2 - 1;
#endif
+ // Set global rho nodal flag to know about rho index type when rho MultiFab is not allocated
+ m_rho_nodal_flag = rho_nodal_flag;
+
// set human-readable tag for each MultiFab
auto const tag = [lev]( std::string tagname ) {
tagname.append("[l=").append(std::to_string(lev)).append("]");