Skip to content

Commit

Permalink
do not need to resize rhs, only phi
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Jan 14, 2024
1 parent 646f8d3 commit dfcb654
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/simulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,6 @@ template <typename problem_t> void AMRSimulation<problem_t>::calculateGpotAllLev
phi.resize(finest_level + 1);
// solve Poisson equation with open b.c. using the method of James (1977)
amrex::Vector<amrex::MultiFab> rhs(finest_level + 1);
rhs.resize(finest_level + 1);
const int nghost = 1;
const int ncomp = 1;
amrex::Real rhs_min = std::numeric_limits<amrex::Real>::max();
Expand Down

0 comments on commit dfcb654

Please sign in to comment.