Skip to content

Commit

Permalink
only need gpot when 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Jan 13, 2024
1 parent 58007e1 commit 4b96d0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ template <typename problem_t> void AMRSimulation<problem_t>::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) {
Expand All @@ -602,6 +603,7 @@ template <typename problem_t> void AMRSimulation<problem_t>::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()) {
Expand Down

0 comments on commit 4b96d0c

Please sign in to comment.