Repository navigation
EAMxx: MAM4xx+ZM [DRAFT] #8671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
odiazib
wants to merge
22
commits into
master
Choose a base branch
from
odiazib/eamxx/mam4xx-zm
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
EAMxx: MAM4xx+ZM [DRAFT] #8671
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
000dce3
ZM+MAM4xx: The first intent is to integrate ZM into MAM4xx. MAM4xx us…
odiazib 040d7a6
Missing variables from zm.
odiazib c0ba96b
init loc_zm_output_evap_ds_out.
odiazib f0168fe
Remove shallow convection routines and inputs.
odiazib 014a648
Store aerdepwetis_convproc in FM.
odiazib 35b6d25
initialization
odiazib ced288c
rename variable from zm_ql_out/zm_ql to zm_icw_liq
odiazib c3f1891
Using jctop instead of zm_jt. Variable names for FM: zm_jcbot -> zm_c…
odiazib 113b5a8
Type in field name, zm_cld_bit should be zm_cld_bot.
overfelt 07ca9e3
update mam4xx
odiazib f831cf7
fixing compilation error in sp.
odiazib ac8451b
update mam4xx.
odiazib 5986c44
Rebase to main and update mam4xx to latest branch.
overfelt a5ee1b5
Using zm_jt instead of zm_cld_top for top and zm_msemax_klev instead …
odiazib 04aed23
Fixing units of p_del_dry_icol; it needs to be mb.
odiazib 6b0b019
Fixing multi process tests.
odiazib b29c37e
Using mam4xx functions.
odiazib 7325bf5
Fixing unit test p3_zm_mam4_wetscav.
odiazib fd2e856
Fixing compilation error for sp.
odiazib ad0bb65
jctop=-1 is producing out of memory errors.
odiazib b1843c8
Using zm_activity to enable deep conv.
odiazib 9b47fdf
Fixing cuda out memory error.
odiazib File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
14 changes: 14 additions & 0 deletions
14
components/eamxx/cime_config/testdefs/testmods_dirs/eamxx/mam4xx/zm/shell_commands
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| alias ATMCHANGE='$CIMEROOT/../components/eamxx/scripts/atmchange' | ||
| # Add ZM deep convection and wetscav processes | ||
| #------------------------------------------------------ | ||
| # Add zm before mac_aero_mic, and wetscav after it | ||
| ATMCHANGE physics::atm_procs_list="zm,mam4_constituent_fluxes,mac_aero_mic,mam4_wetscav,mam4_optics,rrtmgp,mam4_srf_online_emiss,mam4_aero_microphys,mam4_drydep" -b | ||
|
|
||
| #------------------------------------------------------ | ||
| # Enable convective processing in wetscav | ||
| #------------------------------------------------------ | ||
| # This enables wetscav to use ZM outputs for aerosol processing | ||
| # in deep convective clouds | ||
| ATMCHANGE mam4_wetscav::convproc_do_aer=true -b | ||
| ATMCHANGE mam4_wetscav::convproc_do_gas=false -b | ||
|
|
303 changes: 268 additions & 35 deletions
303
components/eamxx/src/physics/mam/eamxx_mam_wetscav_process_interface.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
1 change: 1 addition & 0 deletions
1
components/eamxx/tests/multi-process/dynamics_physics/mam/CMakeLists.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| add_subdirectory(homme_shoc_cld_p3_mam_optics_rrtmgp) | ||
| add_subdirectory(homme_shoc_cld_mam_aci_p3_mam_optics_rrtmgp_mam_drydep) | ||
| add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp_mam4_wetscav) | ||
| add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp_zm_mam4_wetscav) |
95 changes: 95 additions & 0 deletions
95
...-process/dynamics_physics/mam/homme_shoc_cld_spa_p3_rrtmgp_zm_mam4_wetscav/CMakeLists.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| include (ScreamUtils) | ||
|
|
||
| set (TEST_BASE_NAME homme_shoc_cld_spa_p3_rrtmgp_zm_mam4_wetscav) | ||
| set (FIXTURES_BASE_NAME ${TEST_BASE_NAME}_generate_output_nc_files) | ||
|
|
||
| # Get or create the dynamics lib | ||
| # HOMME_TARGET NP PLEV QSIZE_D | ||
| CreateDynamicsLib("theta-l_kokkos" 4 72 41) | ||
|
|
||
| # Create the test | ||
| CreateADUnitTest(${TEST_BASE_NAME} | ||
| LIBS cld_fraction shoc spa p3 scream_rrtmgp zm mam ${dynLibName} | ||
| LABELS dynamics shoc cld p3 rrtmgp zm physics mam4_wetscav | ||
| MPI_RANKS ${TEST_RANK_START} ${TEST_RANK_END} | ||
| FIXTURES_SETUP_INDIVIDUAL ${FIXTURES_BASE_NAME} | ||
| ) | ||
|
|
||
| # Set AD configurable options | ||
| set (ATM_TIME_STEP 1800) | ||
| SetVarDependingOnTestSize(NUM_STEPS 2 4 48) # 1h 2h 24h | ||
| set (RUN_T0 2021-10-12-45000) | ||
|
|
||
| # Determine num subcycles needed to keep shoc dt<=300s | ||
| set (SHOC_MAX_DT 300) | ||
| math (EXPR MAC_MIC_SUBCYCLES "(${ATM_TIME_STEP} + ${SHOC_MAX_DT} - 1) / ${SHOC_MAX_DT}") | ||
|
|
||
| ## Copy (and configure) yaml files needed by tests | ||
| configure_file(${CMAKE_CURRENT_SOURCE_DIR}/input.yaml | ||
| ${CMAKE_CURRENT_BINARY_DIR}/input.yaml) | ||
| configure_file(${CMAKE_CURRENT_SOURCE_DIR}/output.yaml | ||
| ${CMAKE_CURRENT_BINARY_DIR}/output.yaml) | ||
|
|
||
| # Set homme's test options, so that we can configure the namelist correctly | ||
| # Discretization/algorithm settings | ||
| set (HOMME_TEST_NE 2) | ||
| set (HOMME_TEST_LIM 9) | ||
| set (HOMME_TEST_REMAP_FACTOR 3) | ||
| set (HOMME_TEST_TRACERS_FACTOR 1) | ||
| set (HOMME_TEST_TIME_STEP 300) | ||
| set (HOMME_THETA_FORM 1) | ||
| set (HOMME_TTYPE 5) | ||
| set (HOMME_SE_FTYPE 0) | ||
| set (HOMME_TEST_TRANSPORT_ALG 0) | ||
| set (HOMME_TEST_CUBED_SPHERE_MAP 0) | ||
|
|
||
| # Hyperviscosity settings | ||
| set (HOMME_TEST_HVSCALING 0) | ||
| set (HOMME_TEST_HVS 1) | ||
| set (HOMME_TEST_HVS_TOM 0) | ||
| set (HOMME_TEST_HVS_Q 1) | ||
|
|
||
| set (HOMME_TEST_NU 7e15) | ||
| set (HOMME_TEST_NUDIV 1e15) | ||
| set (HOMME_TEST_NUTOP 2.5e5) | ||
|
|
||
| # Testcase settings | ||
| set (HOMME_TEST_MOISTURE notdry) | ||
| set (HOMME_THETA_HY_MODE true) | ||
|
|
||
| # Vert coord settings | ||
| set (HOMME_TEST_VCOORD_INT_FILE acme-72i.ascii) | ||
| set (HOMME_TEST_VCOORD_MID_FILE acme-72m.ascii) | ||
|
|
||
| # Configure the namelist into the test directory | ||
| configure_file(${SCREAM_SRC_DIR}/dynamics/homme/tests/theta.nl | ||
| ${CMAKE_CURRENT_BINARY_DIR}/namelist.nl) | ||
|
|
||
| # Ensure test input files are present in the data dir | ||
| set (TEST_INPUT_FILES | ||
| scream/init/spa_init_ne2np4.nc | ||
| scream/init/spa_from_v3LRamip_CMIP6_2010_clim_ne2_c20260930.nc | ||
| scream/init/${EAMxx_tests_IC_FILE_MAM4xx_72lev} | ||
| cam/topo/${EAMxx_tests_TOPO_FILE} | ||
| ) | ||
| foreach (file IN ITEMS ${TEST_INPUT_FILES}) | ||
| GetInputFile(${file}) | ||
| endforeach() | ||
|
|
||
| # Compare output files produced by npX tests, to ensure they are bfb | ||
| include (CompareNCFiles) | ||
|
|
||
| CompareNCFilesFamilyMpi ( | ||
| TEST_BASE_NAME ${TEST_BASE_NAME} | ||
| FILE_META_NAME ${TEST_BASE_NAME}_output.INSTANT.nsteps_x${NUM_STEPS}.npMPIRANKS.${RUN_T0}.nc | ||
| MPI_RANKS ${TEST_RANK_START} ${TEST_RANK_END} | ||
| LABELS dynamics physics shoc cld p3 rrtmgp zm spa mam4_wetscav | ||
| META_FIXTURES_REQUIRED ${FIXTURES_BASE_NAME}_npMPIRANKS_omp1 | ||
| ) | ||
|
|
||
| if (SCREAM_ENABLE_BASELINE_TESTS) | ||
| # Compare one of the output files with the baselines. | ||
| # Note: one is enough, since we already check that np1 is BFB with npX | ||
| set (OUT_FILE ${TEST_BASE_NAME}_output.INSTANT.nsteps_x${NUM_STEPS}.np${TEST_RANK_END}.${RUN_T0}.nc) | ||
| CreateBaselineTest(${TEST_BASE_NAME} ${TEST_RANK_END} ${OUT_FILE} ${FIXTURES_BASE_NAME}) | ||
| endif() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.