Skip to content

Commit

Permalink
Added high-to-low resolution structured interpolation test.
Browse files Browse the repository at this point in the history
  • Loading branch information
odlomax committed Jan 30, 2024
1 parent 5f6fcbf commit 01464c9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/tests/interpolation/test_interpolation_spherical_vector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ struct FunctionSpaceFixtures {
{"structured_columns",
functionspace::StructuredColumns(Grid("O48"), option::halo(1))},
{"structured_columns_lowres",
functionspace::StructuredColumns(Grid("O24"), option::halo(1))}};
functionspace::StructuredColumns(Grid("O24"), option::halo(1))},
{"structured_columns_hires",
functionspace::StructuredColumns(Grid("O96"), option::halo(1))}};
return functionSpaces.at(fixture);
}
};
Expand Down Expand Up @@ -346,6 +348,19 @@ CASE("structured columns vector interpolation (2d-field, 2-vector, low-res)") {
testInterpolation<Rank2dField>((config));
}

CASE("structured columns vector interpolation (2d-field, 2-vector, hi-res)") {

const auto config =
Config("source_fixture", "structured_columns_hires")
.set("target_fixture", "gaussian_mesh")
.set("field_spec_fixture", "2vector")
.set("interp_fixture", "structured_linear_spherical")
.set("file_id", "spherical_vector_sc_hr")
.set("tol", 0.000044);

testInterpolation<Rank2dField>((config));
}

}
}

Expand Down

0 comments on commit 01464c9

Please sign in to comment.