Skip to content

Commit

Permalink
add comments to MyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
eebasso committed Nov 15, 2023
1 parent 71a0dbf commit 09dee59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/EBflux_grad/MyTest.H
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private:
amrex::Vector<amrex::MultiFab> phi;
amrex::Vector<amrex::Array<amrex::MultiFab, AMREX_SPACEDIM>> flux;
amrex::Vector<amrex::Array<amrex::MultiFab, AMREX_SPACEDIM>> grad;
amrex::Vector<amrex::Array<amrex::iMultiFab, AMREX_SPACEDIM>> igrad;
amrex::Vector<amrex::Array<amrex::iMultiFab, AMREX_SPACEDIM>> igrad; // Used to test getGradSolution when MF is different from AMF
amrex::Vector<amrex::MultiFab> rhs;
amrex::Vector<amrex::MultiFab> acoef;
amrex::Vector<amrex::Array<amrex::MultiFab,AMREX_SPACEDIM> > bcoef;
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/EBflux_grad/MyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ MyTest::solve ()
mlmg.solve(amrex::GetVecOfPtrs(phi), amrex::GetVecOfConstPtrs(rhs), tol_rel, tol_abs);
mlmg.getFluxes(amrex::GetVecOfArrOfPtrs(flux));
mlmg.getGradSolution(amrex::GetVecOfArrOfPtrs(grad));
mlmg.getGradSolution(amrex::GetVecOfArrOfPtrs(igrad));
mlmg.getGradSolution(amrex::GetVecOfArrOfPtrs(igrad)); // Test when MF is different from AMF
for (int ilev = 0; ilev <= max_level; ++ilev) {
amrex::VisMF::Write(phi[0], "phi-"+std::to_string(ilev));
}
Expand Down

0 comments on commit 09dee59

Please sign in to comment.