ESCOMP / ESCOMP/CTSM

Add single-point transient tests that test against expected subgrid areas

Open
#542 1 comment 0 reactions 0 assignees View on GitHub
testing
Dominant language
Fortran
Stars
352
Forks
361
Avg merge
6d 6h
Merged PRs (30d)
8

Description

In order to prevent bugs like #538 in the future: We could have one or more new test types that are meant to be used in a single-point, transient simulation (though we might want to test a non-transient simulation, too): run for some known amount of time (like an SMS test), then compare subgrid areas (PCT_LANDUNIT, PCT_NAT_PFT, PCT_CFT, etc.) against some expected values. These expected values would match the values used in creating this single-point dataset; they can probably simply be hard-coded in the python test script.

This would ensure that, even if there are answer changes in a tag, the expected behavior of subgrid area changes remains correct.

I imagine that this would be implemented by reading in the test's final history file using the python Netcdf4 library and checking the desired variables in python code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.