-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to MMC tendency forcing (#1219)
* Remove dependence on velAvg, the tendency forcing does not initialize this * Make the ABL stats output of the forcing terms in tendency consistent with the output of the non tendency forcing * Similar change to temperature forcing terms, make it easier to use with tendency forcing * Better reorg, the time and gain coefficient only applies for the non-tendency forcing, so move it there * fix typo in prev commit, too many err/error things to confuse with * Assign variables for vector sizes and just use those for resizing, this makes the vector lenghts explicitly clear * Add a bool to track tendency forcing. Fix size_t vs int compilation errors. Change variable name for clarity. Fix assumption that the mesoscale inputs are the same size/z-values as the plane averaged temperature. Use the interpolation from utils instead of the hand rolled one. * simplify vector sizes, remove unneeded variable * rename time interpolated vars to .. that * dont subtract arrays of potentially varying sizes directly, interpolate * remove unneeded vectors * change to using linear interpolation from utilities instead of the hand rolled one, also have the right sizes for the heights and values * const a bunch of things that can be const * make clang-tidy happy * reg test updates, change the end time so that the dpa case doesn't segfault when max_step is not set. Add a new regtest for tendency forcing * forgot cmakelists * variable rename * remove unneeded device vector * make clang format happy
- Loading branch information
1 parent
e4c4748
commit e10f5eb
Showing
9 changed files
with
265 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.