Skip to content

Commit bf1571b

Browse files
committed
Modify domain and norm1
1 parent aa67d69 commit bf1571b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/LinearSolvers/CellEB2/MyTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ MyTest::solve ()
170170
MultiFab::Multiply(mf, vfrc, 0, 0, 1, 0);
171171

172172
Real norminf = mf.norm0();
173-
Real norm1 = mf.norm1()*AMREX_D_TERM((1.0/n_cell), *(1.0/n_cell), *(1.0/n_cell));
173+
Real norm1 = mf.norm1()*AMREX_D_TERM((1.0/n_cell_x), *(1.0/n_cell_y), *(1.0/n_cell_z));
174174
amrex::Print() << "Level " << ilev << ": weighted max and 1 norms " << norminf << ", " << norm1 << '\n';
175175
}
176176
}
@@ -285,7 +285,7 @@ MyTest::initGrids ()
285285
RealBox rb({AMREX_D_DECL(0.,0.,0.)}, {AMREX_D_DECL(1.,1.,1.)});
286286
std::array<int,AMREX_SPACEDIM> isperiodic{AMREX_D_DECL(0,0,0)};
287287
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)});
288+
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)});
289289
Box domain = domain0;
290290
for (int ilev = 0; ilev < nlevels; ++ilev)
291291
{

0 commit comments

Comments
 (0)