From e73cd053ed7a3ac96f3fc0b2e20865a3763d5ac1 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Wed, 9 Sep 2026 16:35:10 -0700 Subject: [PATCH] Restore option to check tracer conservation --- src/incflo_advance.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/incflo_advance.cpp b/src/incflo_advance.cpp index 5344b76a..0cab48ca 100644 --- a/src/incflo_advance.cpp +++ b/src/incflo_advance.cpp @@ -86,12 +86,12 @@ void incflo::Advance() particleData.Redistribute(); #endif - // // This sums over all levels - // if (m_test_tracer_conservation) { - // Real sum = volumeWeightedSum(get_tracer_new_const(),0,geom,ref_ratio); - // amrex::Print() << "Sum tracer volume wgt2 = " << m_cur_time+m_dt << " " << - // sum << "\n"; - // } + // This sums over all levels + if (m_test_tracer_conservation) { + Real sum = amrex::volumeWeightedSum(get_tracer_new_const(), 0, Geom(), refRatio()); + amrex::Print() << "Sum tracer volume wgt = " << m_cur_time+m_dt << " " << + sum << "\n"; + } // Stop timing current time step Real end_step = static_cast(ParallelDescriptor::second()) - strt_step;