Skip to content

Commit

Permalink
remove pre rhs action
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Aug 10, 2024
1 parent d7a0662 commit ca7ac49
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ExampleCodes/SUNDIALS/Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -194,7 +192,6 @@ void main_main ()
};

TimeIntegrator<MultiFab> integrator(phi, time);
integrator.set_pre_rhs_action(pre_rhs_function);
integrator.set_rhs(rhs_function);
if (adapt_dt) {
integrator.set_adaptive_step();
Expand Down

0 comments on commit ca7ac49

Please sign in to comment.