From b5d7a463a32af356d05458941fc43e6be76bce11 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Tue, 13 Jul 2021 12:54:14 -0700 Subject: when regridding (say after a load balance), we need to regenerate the edge and face multifabs. (#2079) --- Source/Parallelization/WarpXRegrid.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Parallelization/WarpXRegrid.cpp') diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index 09cb7cb28..5a65327d1 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -145,6 +145,10 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi m_field_factory[lev] = amrex::makeEBFabFactory(Geom(lev), ba, dm, {1,1,1}, // Not clear how many ghost cells we need yet amrex::EBSupport::full); + ComputeEdgeLengths(); + ComputeFaceAreas(); + ScaleEdges(); + ScaleAreas(); #else m_field_factory[lev] = std::make_unique(); #endif -- cgit v1.2.3