From e767694b82060de8095d3c6e8b49aedf21854c34 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sun, 30 Aug 2026 20:16:31 -0400 Subject: [PATCH] Better memory tracking --- examples/Example_pvdagm_v2_3level_DenseCoarseMatrix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Example_pvdagm_v2_3level_DenseCoarseMatrix.cc b/examples/Example_pvdagm_v2_3level_DenseCoarseMatrix.cc index a131b9be3..b016d4057 100644 --- a/examples/Example_pvdagm_v2_3level_DenseCoarseMatrix.cc +++ b/examples/Example_pvdagm_v2_3level_DenseCoarseMatrix.cc @@ -479,6 +479,7 @@ public: Preconditioner(r,p[peri_kp]); vOp(p[peri_kp],q[peri_kp]); int northog=((kp)>(mmax-1))?(mmax-1):(kp); + MemoryManager::Snapshot(name+" orthog begin step "+std::to_string(steps)); { GRID_TRACE("MrhsPGCR orthog"); // Classical Gram-Schmidt: all coefficients against the UN-updated new q @@ -503,6 +504,7 @@ public: } } qq[peri_kp]=vnorm2(q[peri_kp]); + MemoryManager::Snapshot(name+" orthog+vnorm2 end step "+std::to_string(steps)); } GRID_ASSERT(0); return cp; }