E3SM-Project / E3SM

Energy Exascale Earth System Model source code. NOTE: use "maint" branches for your work. Head of master is not validated.
https://docs.e3sm.org/E3SM
Other
352 stars 364 forks source link

create unit test for shr_reprosum_mod #5570

Open worleyph opened 1 year ago

worleyph commented 1 year ago

Interest has been expressed in creating a unit test for shr_reprosum_mod.F90. I have created some standalone code and tests for development purposes, so am willing to help, but I have never created a unit test. Assigning provisionally to @sarats , but do not know who should drive this.

philipwjones commented 1 year ago

@worleyph @sarats I created a unit test for ocean reproducible sums that attempt to fill in arrays with random values that span the range for a given data type to try and increase the difficulty for reproducibility. The interfaces for the ocean are different and it also tests sum-with-product, but it may be an easier starting point. It sits over in the MPAS-Dev github space in: MPAS-Dev/MPAS-QuickViz/ocean/reproducible_sums/sumTest.F90

sarats commented 1 year ago

FYI, distracted by Frontier deployment/testing etc. Will revisit in a week or two.