1 parent aa67d69 commit bf1571bCopy full SHA for bf1571b
1 file changed
Tests/LinearSolvers/CellEB2/MyTest.cpp
@@ -170,7 +170,7 @@ MyTest::solve ()
170
MultiFab::Multiply(mf, vfrc, 0, 0, 1, 0);
171
172
Real norminf = mf.norm0();
173
- Real norm1 = mf.norm1()*AMREX_D_TERM((1.0/n_cell), *(1.0/n_cell), *(1.0/n_cell));
+ Real norm1 = mf.norm1()*AMREX_D_TERM((1.0/n_cell_x), *(1.0/n_cell_y), *(1.0/n_cell_z));
174
amrex::Print() << "Level " << ilev << ": weighted max and 1 norms " << norminf << ", " << norm1 << '\n';
175
}
176
@@ -285,7 +285,7 @@ MyTest::initGrids ()
285
RealBox rb({AMREX_D_DECL(0.,0.,0.)}, {AMREX_D_DECL(1.,1.,1.)});
286
std::array<int,AMREX_SPACEDIM> isperiodic{AMREX_D_DECL(0,0,0)};
287
Geometry::Setup(&rb, 0, isperiodic.data());
288
- Box domain0(IntVect{AMREX_D_DECL(0,0,0)}, IntVect{AMREX_D_DECL(n_cell-1,n_cell-1,n_cell-1)});
+ Box domain0(IntVect{AMREX_D_DECL(0,0,0)}, IntVect{AMREX_D_DECL(n_cell_x-1,n_cell_y-1,n_cell_z-1)});
289
Box domain = domain0;
290
for (int ilev = 0; ilev < nlevels; ++ilev)
291
{
0 commit comments