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 }