diff --git a/Source/PeleLMeX_Regrid.cpp b/Source/PeleLMeX_Regrid.cpp index c4d3fb2b..d8849e04 100644 --- a/Source/PeleLMeX_Regrid.cpp +++ b/Source/PeleLMeX_Regrid.cpp @@ -74,7 +74,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial) // Bcast the test dmap and remake level if (remakeLevel != 0) { - Vector pmap; + Vector pmap(1); if ( ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber()) { @@ -239,7 +239,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial) // Bcast the test dmap if we plan on remaking the level if (remakeLevel != 0) { - Vector pmap; + Vector pmap(1); if ( ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber()) { diff --git a/Source/PeleLMeX_Utils.cpp b/Source/PeleLMeX_Utils.cpp index 7630b3bb..658a378d 100644 --- a/Source/PeleLMeX_Utils.cpp +++ b/Source/PeleLMeX_Utils.cpp @@ -860,7 +860,7 @@ PeleLM::loadBalanceChemLev(int a_lev) // Bcast the test dmap if better if (updateDmap != 0) { - Vector pmap; + Vector pmap(1); if ( ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber()) { pmap = test_dmap.ProcessorMap();