forked from erf-model/ERF
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor initialization routines, problem definition (erf-model#1232)
* Minor cleanup + update comments * Update .gitignore * Additional clarifying comments and minor cleanup * Make sure base state is set prior to calling init_custom * Move common includes into prob_common.H * Add common includes for erf_init_dens_hse and erf_init_rayleigh * Restore final call to initHSE in order to pass reg tests for now * Implement ProblemBase class, refactor all problems - ProblemBase provides stubs for erf_init_dens_hse, init_custom_prob, init_custom_terrain, and erf_init_rayleigh - Each problem in Exec implements a derived class, overriding these functions - The ERF constructor instantiates the derived class * Add init_isentropic_hse[_terrain] functions to ProblemBase - add new prob_common.cpp source file - cleanup prob_common.H - cleanup all prob.cpp that had copies of these functions * Rearrange function declarations for consistency * Add ProbParmDefaults struct * Implement additional recipes for erf_init_dens_hse for variable density, with and without terrain * Add T_0 to the ProbParmDefaults; make consistent the usage of T_0 (ref potential temperature) * Implement init_custom(lev) which calls new prob->init_state() init_state() will set the background field to a uniform field based on parms.rho_0 and parms.T_0 and should only be called in the absence of any other initialization type -- NOTE: this **will break the r-tests** because the prob.cpp source files have not been updated to guarantee that the background field is not double-counted! * Rename init_custom_prob() --> init_custom_pert() for clarity * Implement init_type="uniform" for backwards compatibility * Add missing source/header files * Implement default initialization based on HSE * Whitespace * Remove redundant initHSE call verified that there is no change in rtests * Add virtual destructor and comment unused vars. * Update DensityCurrent* gold data * Update MovingTerrain* gold data * Update TaylorGreen* gold data * Fixes for GPU * Cleanup prob source files * Move ProblemBase member functions to HSE_utils namespace because member functions (e.g., init_isentropic_hse) cannot be called from inside a device lambda --------- Co-authored-by: Aaron M. Lattanzi <[email protected]> Co-authored-by: AMLattanzi <[email protected]> Co-authored-by: Ann Almgren <[email protected]>
- Loading branch information
1 parent
6f05140
commit 049f84f
Showing
197 changed files
with
7,246 additions
and
8,238 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
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
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
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
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
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
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.