Skip to content

Commit 327b819

Browse files
committed
Temporarily disable AMReX integrators until we rewrote sledgehamr to reflect the changes in the interface
1 parent 8eded85 commit 327b819

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

source/integrators/amrex_integrators.cpp

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,28 @@ namespace sledgehamr {
1515
void IntegratorAMReX::Integrate(LevelData &mf_old, LevelData &mf_new,
1616
const int lev, const double dt,
1717
const double dx) {
18+
19+
amrex::Abort("AMReX Integrator interface changed. Sledgehamr needs to be "
20+
"adapted to reflect those changes first.");
21+
1822
// TODO Make 4th order time interpolation available.
1923
amrex::TimeIntegrator<amrex::MultiFab> integrator(mf_old);
24+
/*
25+
auto source_fun = [&](amrex::MultiFab &rhs, const amrex::MultiFab
26+
&state, const double time) {
27+
sim->level_synchronizer->FillIntermediatePatch(lev, time, state);
28+
sim->FillRhs(rhs, state, time, lev, dt, dx);
29+
};
2030
21-
auto source_fun = [&](amrex::MultiFab &rhs, const amrex::MultiFab &state,
22-
const double time) {
23-
sim->level_synchronizer->FillIntermediatePatch(lev, time, state);
24-
sim->FillRhs(rhs, state, time, lev, dt, dx);
25-
};
26-
27-
// auto post_update_fun = [&](amrex::MultiFab& S_data, const double time)
28-
// {
29-
// sim->level_synchronizer->FillIntermediatePatch(lev, time, S_data);
30-
// };
31+
// auto post_update_fun = [&](amrex::MultiFab& S_data, const double
32+
time)
33+
// {
34+
// sim->level_synchronizer->FillIntermediatePatch(lev, time,
35+
S_data);
36+
// };
3137
32-
integrator.set_rhs(source_fun);
38+
integrator.set_rhs(source_fun);
39+
*/
3340
// integrator.set_post_update(post_update_fun);
3441
integrator.advance(mf_old, mf_new, mf_old.t, dt);
3542
}

0 commit comments

Comments
 (0)