From 2ba3728dab99162b4d4b3860417316d148cfb05f Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Wed, 30 Aug 2023 16:01:58 +0200 Subject: [PATCH] Test MatchingPartitioner in atlas_test_functionspace_splitcomm --- .../functionspace/test_functionspace_splitcomm.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tests/functionspace/test_functionspace_splitcomm.cc b/src/tests/functionspace/test_functionspace_splitcomm.cc index ed81602b7..8b8140869 100644 --- a/src/tests/functionspace/test_functionspace_splitcomm.cc +++ b/src/tests/functionspace/test_functionspace_splitcomm.cc @@ -15,6 +15,7 @@ #include "tests/AtlasTestEnvironment.h" #include "atlas/functionspace/NodeColumns.h" #include "atlas/functionspace/StructuredColumns.h" +#include "atlas/grid/Partitioner.h" #include "atlas/field/for_each.h" namespace atlas { @@ -142,6 +143,17 @@ CASE("test FunctionSpace StructuredColumns") { //----------------------------------------------------------------------------- +CASE("test FunctionSpace StructuredColumns with MatchingPartitioner") { + Fixture fixture; + + auto fs_A = functionspace::StructuredColumns(grid(), option::mpi_split_comm()); + auto fs_B = functionspace::StructuredColumns(grid(), grid::MatchingPartitioner(fs_A), option::mpi_split_comm()); + fs_A.polygon().outputPythonScript("fs_A_polygons.py"); + fs_B.polygon().outputPythonScript("fs_B_polygons.py"); +} + +//----------------------------------------------------------------------------- + } // namespace test } // namespace atlas