Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base XIOS tests off ModelArray definitions #633

Closed
jwallwork23 opened this issue Aug 2, 2024 · 1 comment
Closed

Base XIOS tests off ModelArray definitions #633

jwallwork23 opened this issue Aug 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request ICCS Tasks or reviews for the ICCS team

Comments

@jwallwork23
Copy link
Contributor

Before fully addressing #552, we should rework the XIOS tests so that they start from ModelArray definitions and deduce the relevant XIOS concepts from these.

@jwallwork23 jwallwork23 added enhancement New feature or request ICCS Tasks or reviews for the ICCS team labels Aug 2, 2024
@jwallwork23 jwallwork23 self-assigned this Aug 2, 2024
@jwallwork23 jwallwork23 moved this from Todo to In Progress in neXtSIM_DG overview Aug 2, 2024
jwallwork23 added a commit that referenced this issue Nov 1, 2024
# Prepare for setting XIOS up via nextSIM-DG

Partially addresses #633.

This PR reworks the XIOS setup workflow in preparation for farming much
of it off to happen automatically via nextSIM-DG. For example, when
`ModelArray::setDimension` is called with `ModelArray::Dimension::X`, we
can have the XIOS handler set the local and global X sizes
correspondingly.

Main changes:
* Use `xy_domain` and `z_axis` consistently in XIOS read and write
demos.
* Reorder operations in XIOS read and write demos, with TODOs planning
out how the setup steps will be automated via nextSIM-DG.
* Automatically create an XIOS Grid `grid_2D` upon creating an XIOS
Domain with the special name `xy_domain`.
* Automatically create an XIOS Grid `grid_3D` upon creating XIOS Domain
and Axis with the special names `xy_domain` and `z_axis`, respectively.

Other minor changes:
* Finish moving from initialising strings with `{}` to `=`.
* Add a check to ensure local and global sizes match for `Z` dimension
because we only MPI parallelise in the horizontal.
@jwallwork23
Copy link
Contributor Author

In hindsight, I don't think these needs to be done in all the XIOS tests. For the ones that are purely concerned with the Xios handler class, we can just test the methods directly.

Already addressed in #728 for the read/write cases, so can close here.

@github-project-automation github-project-automation bot moved this from In Progress to Done in neXtSIM_DG overview Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ICCS Tasks or reviews for the ICCS team
Projects
Development

No branches or pull requests

1 participant