nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Wrap XIOS API calls part 1: getters #555

Closed jwallwork23 closed 5 months ago

jwallwork23 commented 6 months ago

Wrap XIOS API calls part 1: getters

Fixes #553

Task List


Change Description

Currently, the XIOS functionality relies on axes, grids, fields, and files being defined in the user-defined iodef.xml file. This PR wraps the corresponding parts of the XIOS API so these can be read by neXtSIM-DG.


Test Description

Update TestXiosInit_MPI2.cpp...


Pre-Request Checklist

jwallwork23 commented 6 months ago

I realised wrapping the entire API will be a significant change and that wrapping the getters will be easier than wrapping the setters. As such, this just addresses the getters, leaving the setters for a subsequent PR.