Skip to content

Commit

Permalink
fix for petsc
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed May 9, 2024
1 parent 46cbb8b commit ec29d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLMG.H
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ MLMGT<MF>::bottomSolveWithPETSc (MF& x, const MF& b)
petsc_bndry = std::make_unique<MLMGBndryT<MF>>(ba, dm, ncomp, geom);
petsc_bndry->setHomogValues();
const Real* dx = linop.m_geom[0][0].CellSize();
int crse_ratio = linop.m_coarse_data_crse_ratio.allGT(0) ? linop.m_coarse_data_crse_ratio : IntVect(1);
auto crse_ratio = linop.m_coarse_data_crse_ratio.allGT(0) ? linop.m_coarse_data_crse_ratio : IntVect(1);
RealVect bclocation(AMREX_D_DECL(0.5*dx[0]*crse_ratio[0],
0.5*dx[1]*crse_ratio[1],
0.5*dx[2]*crse_ratio[2]));
Expand Down

0 comments on commit ec29d05

Please sign in to comment.