Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 19, 2024
1 parent 69bd06d commit adbb796
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLCurlCurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ MLCurlCurl::makeCoarseAmr (int famrlev, IntVect const& ng) const

void MLCurlCurl::applyBC (int amrlev, int mglev, MF& in) const
{
Vector<MultiFab*> mfs{AMREX_D_DECL(in.data(),&(in[1]),&(in[2]))};
Vector<MultiFab*> mfs{in.data(),&(in[1]),&(in[2])};
FillBoundary(mfs, this->m_geom[amrlev][mglev].periodicity());
for (auto& mf : in) {
applyPhysBC(amrlev, mglev, mf);
Expand Down
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void mlcurlcurl_bc_symmetry (int i, int j, int k, Orientation face, IndexType it
int const idir = face.coordDir();
int offset = face.isLow() ? 1 : -1;
Real sign;
if (it.cellCentered()) {
if (it.cellCentered(idir)) {
sign = Real(-1.0);
} else {
sign = Real(1.0);
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/ABecLaplacian_C/MyTestPlotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ MyTest::writePlotfile () const
amrex::Print() << "Level " << ilev
<< " max-norm error: " << plotmf[ilev].norminf(3)
<< " 1-norm error: " << plotmf[ilev].norm1(3)*dvol
<< " 2-norm error: " << plotmf[ilev].norm2(3)*dvol << std::endl;
<< " 2-norm error: " << plotmf[ilev].norm2(3)*std::sqrt(dvol) << std::endl;
}

WriteMultiLevelPlotfile("plot", nlevels, amrex::GetVecOfConstPtrs(plotmf),
Expand Down

0 comments on commit adbb796

Please sign in to comment.