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();