From ca7ac49e719a8090c85d76dc464ea16569489040 Mon Sep 17 00:00:00 2001 From: "David J. Gardner" Date: Sat, 10 Aug 2024 16:22:53 -0700 Subject: [PATCH] remove pre rhs action --- ExampleCodes/SUNDIALS/Source/main.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ExampleCodes/SUNDIALS/Source/main.cpp b/ExampleCodes/SUNDIALS/Source/main.cpp index cd24a35f..ba5b5b7b 100644 --- a/ExampleCodes/SUNDIALS/Source/main.cpp +++ b/ExampleCodes/SUNDIALS/Source/main.cpp @@ -162,13 +162,11 @@ void main_main () WriteSingleLevelPlotfile(pltfile, phi, {"phi"}, geom, time, 0); } - auto pre_rhs_function = [&](MultiFab& S_data, const Real /* time */) { + auto rhs_function = [&](MultiFab& S_rhs, MultiFab& S_data, + const Real /* time */) { + // fill periodic ghost cells S_data.FillBoundary(geom.periodicity()); - }; - - auto rhs_function = [&](MultiFab& S_rhs, const MultiFab& S_data, - const Real /* time */) { // loop over boxes auto& phi_data = S_data; @@ -194,7 +192,6 @@ void main_main () }; TimeIntegrator integrator(phi, time); - integrator.set_pre_rhs_action(pre_rhs_function); integrator.set_rhs(rhs_function); if (adapt_dt) { integrator.set_adaptive_step();