Skip to content

Commit

Permalink
bugfix in Jacobi - still not quite right
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Nov 27, 2024
1 parent 1dd9b6f commit 4ed14fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ void GMRESPOISSON::precond (MultiFab& lhs, MultiFab const& rhs) const

const GpuArray<Real, AMREX_SPACEDIM> dx = m_geom.CellSizeArray();

amrex::Real fac = 1.;
for (int d=0; d<AMREX_SPACEDIM; ++d) fac += 2./(dx[d]*dx[d]);
amrex::Real fac = 0.;
for (int d=0; d<AMREX_SPACEDIM; ++d) fac -= 2./(dx[d]*dx[d]);

for ( MFIter mfi(lhs,TilingIfNotGPU()); mfi.isValid(); ++mfi ) {

Expand Down

0 comments on commit 4ed14fe

Please sign in to comment.