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

Issue 614 Model Component #698

Closed timspainNERSC closed 2 months ago

timspainNERSC commented 2 months ago

Model Component static data

Fixes #614 (partially)


Change Description

Removed all references to the registerModule and the data members it uses. Also remove hField() and similar functions, which don't now do anything, and were originally planned to be used alongside the module register.

Moved the ModelArrayRefStore to be lazily allocated.

Moved the ocean mask and ocean index look-up vector to be lazily allocated.


Test Description

The ModelComponent_test still passes.

Adds some test to ModelArray_test to check sizes around assignment operations.