diff --git a/src/simulation.hpp b/src/simulation.hpp index 40476039f..b74102181 100644 --- a/src/simulation.hpp +++ b/src/simulation.hpp @@ -578,6 +578,7 @@ template void AMRSimulation::setInitialCondition ReadCheckpointFile(); } +#if AMREX_SPACEDIM == 3 // set up elliptic solve object amrex::OpenBCSolver poissonSolver(Geom(0, finest_level), boxArray(0, finest_level), DistributionMap(0, finest_level)); if (verbose) { @@ -602,6 +603,7 @@ template void AMRSimulation::setInitialCondition amrex::Real abstol = abstolPoisson_ * rhs_min; poissonSolver.solve(amrex::GetVecOfPtrs(phi), amrex::GetVecOfConstPtrs(rhs), reltolPoisson_, abstol); +#endif // abort if amrex.async_out=1, it is currently broken if (amrex::AsyncOut::UseAsyncOut()) {