From fb41722881e188d6990e314e4b74a311bab51576 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Sun, 16 Jun 2024 16:50:13 -0700 Subject: [PATCH] update particles after fixing vel in small cells --- src/incflo_apply_corrector.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/incflo_apply_corrector.cpp b/src/incflo_apply_corrector.cpp index 1a5aa4b8..653e074a 100644 --- a/src/incflo_apply_corrector.cpp +++ b/src/incflo_apply_corrector.cpp @@ -164,14 +164,6 @@ void incflo::ApplyCorrector() bool incremental_projection = false; ApplyProjection(get_density_nph_const(), new_time,m_dt,incremental_projection); -#ifdef INCFLO_USE_PARTICLES - // ************************************************************************************** - // Update the particle positions - // ************************************************************************************** - evolveTracerParticles(AMREX_D_DECL(GetVecOfConstPtrs(u_mac), GetVecOfConstPtrs(v_mac), - GetVecOfConstPtrs(w_mac))); -#endif - #ifdef AMREX_USE_EB // ********************************************************************************************** // @@ -182,4 +174,12 @@ void incflo::ApplyCorrector() AMREX_D_DECL(GetVecOfConstPtrs(u_mac), GetVecOfConstPtrs(v_mac), GetVecOfConstPtrs(w_mac))); #endif + +#ifdef INCFLO_USE_PARTICLES + // ************************************************************************************** + // Update the particle positions + // ************************************************************************************** + evolveTracerParticles(AMREX_D_DECL(GetVecOfConstPtrs(u_mac), GetVecOfConstPtrs(v_mac), + GetVecOfConstPtrs(w_mac))); +#endif }