Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Nov 15, 2024
1 parent afee2f5 commit fff3616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ auto GMRESPOISSONT<MF>::makeVecRHS () const -> MF
template <typename MF>
auto GMRESPOISSONT<MF>::makeVecLHS () const -> MF
{
MF mf(m_ba, m_dm, 1, 0);
MF mf(m_ba, m_dm, 1, 1);
mf.setVal(0.);
return mf;
}
Expand All @@ -105,7 +105,6 @@ auto GMRESPOISSONT<MF>::norm2 (MF const& mf) const -> RT
{
auto r = MultiFab::Dot(mf,0,1,0);
return std::sqrt(r);
return 0.;
}

template <typename MF>
Expand Down
2 changes: 1 addition & 1 deletion ExampleCodes/LinearSolvers/GMRES/Poisson/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main (int argc, char* argv[])
amrex::Geometry geom;

// define lower and upper indices
amrex::IntVect dom_lo(0,0,0);
amrex::IntVect dom_lo( 0, 0, 0);
amrex::IntVect dom_hi(n_cell-1, n_cell-1, n_cell-1);

// Make a single box that is the entire domain
Expand Down

0 comments on commit fff3616

Please sign in to comment.