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

Get the ice-ocean stress into the ModelArrayRef system #655

Closed einola closed 1 month ago

einola commented 3 months ago

Get the ice-ocean stress into the ModelArrayRef system

Fixes #649

Task List


Change Description

Introduces a getIceOceanStress function into CGDynamicsKernel, called by getDG0Data when that function gets the right arguments. All derived DynamicsKernels (VPCGDynamicsKernel, BrittleCGDynamicsKernel, and FreeDriftDynamicsKernel) must implement getIceOceanStress.

There is quite a bit of code repetition between the implementations in the different kernels, but I'm not sure how to reduce this.


Test Description

No CI test. I just ran the benchmark code and checked that the values returned are of the right order of magnitude.


Documentation Impact

None


Other Details

None


Pre-Request Checklist