Skip to content

Commit

Permalink
Updated setDimension API in XIOS read test
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 21, 2024
1 parent 1ec385a commit 4088afa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/test/XiosRead_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ MPI_TEST_CASE("TestXiosRead", 2)

// --- Tests for reading to file
Module::setImplementation<IStructure>("Nextsim::ParametricGrid");
ModelArray::setDimension(ModelArray::Dimension::X, n1);
ModelArray::setDimension(ModelArray::Dimension::Y, n2);
ModelArray::setDimension(ModelArray::Dimension::Z, n3);
ModelArray::setDimension(ModelArray::Dimension::X, n1, n1, 0);
ModelArray::setDimension(ModelArray::Dimension::Y, n2, n2, 0);
ModelArray::setDimension(ModelArray::Dimension::Z, n3, n3, 0);
// Create some fake data to test writing methods
HField field_2D(ModelArray::Type::H);
field_2D.resize();
Expand Down

0 comments on commit 4088afa

Please # to comment.