From 6deefa88c9f20b2c2b5fbbe79542905bcc3ba92f Mon Sep 17 00:00:00 2001 From: cgilet Date: Wed, 27 Mar 2024 16:58:35 -0400 Subject: [PATCH] Fix InitialRedistribution for ntrac >1 --- src/setup/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup/init.cpp b/src/setup/init.cpp index 562ebaca..d0761ca8 100644 --- a/src/setup/init.cpp +++ b/src/setup/init.cpp @@ -388,7 +388,7 @@ incflo::InitialRedistribution () if (m_advect_tracer) { ld.tracer.FillBoundary(geom[lev].periodicity()); - MultiFab::Copy(ld.tracer_o, ld.tracer, 0, 0, 1, ld.tracer.nGrow()); + MultiFab::Copy(ld.tracer_o, ld.tracer, 0, 0, m_ntrac, ld.tracer.nGrow()); fillpatch_tracer(lev, m_t_new[lev], ld.tracer_o, 3); }