Skip to content

Commit 84f2524

Browse files
authored
Merge pull request #3279 from boutproject/fix-shiftedmetricinterp-unit-test-2
Fix shiftedmetricinterp unit test
2 parents 5fb0392 + 598b1d9 commit 84f2524

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/mesh/interpolation/interpolation_z.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
*
2121
**************************************************************************/
2222

23+
#include <bout/globals.hxx>
2324
#include <bout/interpolation_z.hxx>
2425
#include <bout/mesh.hxx>
26+
#include <bout/region.hxx>
2527

2628
ZInterpolation::ZInterpolation(int y_offset, Mesh* mesh, Region<Ind3D> region_in)
2729
: localmesh(mesh == nullptr ? bout::globals::mesh : mesh), region(region_in),

tests/unit/fake_mesh.hxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public:
4343
GlobalNx = nx;
4444
GlobalNy = ny;
4545
GlobalNz = nz;
46+
GlobalNxNoBoundaries = nx - 2;
47+
GlobalNyNoBoundaries = ny - 2;
48+
GlobalNzNoBoundaries = nz;
4649
LocalNx = nx;
4750
LocalNy = ny;
4851
LocalNz = nz;

0 commit comments

Comments
 (0)