Skip to content

Commit d56b06d

Browse files
committed
Reduce requirements on area cutout unit-test and output results
1 parent 6dfd2aa commit d56b06d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tests/interpolation/test_interpolation_structured2D_to_area.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void do_test( std::string type, int input_halo, bool expect_failure ) {
7070
idx_t nb_levels = 19;
7171

7272
// Setup Grid and functionspace
73-
Grid inputGrid(input_gridname("O400"));
73+
Grid inputGrid(input_gridname("O40"));
7474
functionspace::StructuredColumns inputFS(inputGrid, option::levels(nb_levels) | option::halo(input_halo));
7575

7676
// Setup source field_set
@@ -88,15 +88,19 @@ void do_test( std::string type, int input_halo, bool expect_failure ) {
8888
Mesh areaMesh = MeshGenerator("structured").generate( areaGrid, grid::MatchingPartitioner(inputFS) );
8989
atlas::FunctionSpace outputFS = atlas::functionspace::NodeColumns{areaMesh};
9090

91+
output::Gmsh gmsh{"area.msh"};
92+
gmsh.write(areaMesh);
93+
9194
// setup interpolation
92-
Interpolation interpolation(option::type(type), inputFS, outputFS);
95+
Interpolation interpolation(option::type(type)|Config("matrix_free",false), inputFS, outputFS);
9396

9497
// setup target field_set
9598
FieldSet fields_target = create_target_fields(outputFS, nb_fields, nb_levels);
9699

97100
// execute interpolation
98101
interpolation.execute(fields_source, fields_target);
99102

103+
gmsh.write(fields_target);
100104
}
101105

102106
CASE("test structured-linear2D, halo 3") {

0 commit comments

Comments
 (0)