From 4b96d0c2beff322d480208abe043a2ba230bcb56 Mon Sep 17 00:00:00 2001 From: psharda Date: Sat, 13 Jan 2024 14:50:12 +0100 Subject: [PATCH] only need gpot when 3D --- src/simulation.hpp | 2 ++ 1 file changed, 2 insertions(+) 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()) {