[x] Implemented the source code change that satisfies the tests
[ ] Documented the feature by providing worked example
[ ] Updated the README or other documentation
[ ] Completed the pre-Request checklist below
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
[x] The requirements of this pull request are fully captured in an issue or design specification and are linked and summarised in the description of this PR
[x] No new warnings are generated
[x] The documentation has been updated (or an issue has been created to track the corresponding change)
[x] Methods and Tests are commented such that they can be understood without having to obtain additional context
[x] This PR/Issue is labelled as a bug/feature/enhancement/breaking change
[x] File dates have been updated to reflect modification date
[x] This change conforms to the conventions described in the README
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