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

Initialize the u,v arrays in DummyDynamics #532

Closed timspainNERSC closed 7 months ago

timspainNERSC commented 7 months ago

Initialize the u,v arrays in DummyDynamics

Fixes #530


Change Description

The u & v ModelArrays need to be initialized. This is done in IDynamics::setData(). However, DummyDynamics overrides this with its own empty implementation of setData(). By deleting this empty function, the base class implementation of setData() is called instead and initializes u and v arrays correctly.


Test Description

Any model run using DummyDynamics as its implementation of IDynamics now works correctly.