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

Pass `ModelArray` to `Xios.write`, rather than array of `double`s #575

Open jwallwork23 opened 2 weeks ago

jwallwork23 commented 2 weeks ago

Pass ModelArray to Xios.write, rather than array of doubles

Fixes #544

Task List


Change Description

In the existing implementation of the Xios class, its write method accepts a C-style array of doubles, along with its dimensions in each direction. The approach adopted here - better in line with neXtSIM-DG's approach - is to instead pass a ModelArray, which knows about both the data and dimensions.

NOTE: #559 will need to be merged first.


Test Description

Updated the tests accordingly.


Pre-Request Checklist