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 #544

Open jwallwork23 opened 1 month ago

jwallwork23 commented 1 month ago

The newly introduced Xios class has a write method that accepts a C-style array of doubles, along with its dimensions in each direction. It would be more in line with Nextsim's approach to instead pass a ModelArray, which already knows about both the data and dimensions.