Skip to content

Commit 8ee5f34

Browse files
committed
Change DP unit test
- use PG2 (CIME test still uses GLL, so both are covered) - Use 72 levels (nothing in DP is specific to 128, so save compute time) - Use TMS to test loading SGH30 on PG2 grid
1 parent 4061c80 commit 8ee5f34

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

components/eamxx/tests/multi-process/dynamics_physics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (SCREAM_DOUBLE_PRECISION)
66
add_subdirectory(model_restart)
77
add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp)
88
add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp_128levels)
9-
add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp_dp)
9+
add_subdirectory(homme_shoc_cld_spa_p3_rrtmgp_pg2_dp)
1010
if (SCREAM_ENABLE_MAM)
1111
# Once the mam4xx aerosol microphysics AtmosphereProcess is running, the
1212
# corresponding test here needs to be reworked with valid aerosol

components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_dp/CMakeLists.txt renamed to components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_pg2_dp/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
include (ScreamUtils)
22

3-
set (TEST_BASE_NAME homme_shoc_cld_spa_p3_rrtmgp_dp)
3+
set (TEST_BASE_NAME homme_shoc_cld_spa_p3_rrtmgp_pg2_dp)
44
set (FIXTURES_BASE_NAME ${TEST_BASE_NAME}_generate_output_nc_files)
55

66
# Get or create the dynamics lib
77
# HOMME_TARGET NP PLEV QSIZE_D
8-
CreateDynamicsLib("theta-l_kokkos" 4 128 10)
8+
CreateDynamicsLib("theta-l_kokkos" 4 72 10)
99

1010
# Create the test
11-
set (TEST_LABELS "dynamics;driver;shoc;cld;spa;p3;rrtmgp;physics;dp")
12-
CreateUnitTest(homme_shoc_cld_spa_p3_rrtmgp_dp "homme_shoc_cld_spa_p3_rrtmgp_dp.cpp"
11+
set (TEST_LABELS "dynamics;driver;tms;shoc;cld;spa;p3;rrtmgp;physics;dp")
12+
CreateUnitTest(homme_shoc_cld_spa_p3_rrtmgp_pg2_dp "homme_shoc_cld_spa_p3_rrtmgp_pg2_dp.cpp"
1313
LABELS ${TEST_LABELS}
14-
LIBS cld_fraction shoc spa p3 scream_rrtmgp ${dynLibName} scream_control diagnostics
14+
LIBS cld_fraction tms shoc spa p3 scream_rrtmgp ${dynLibName} scream_control diagnostics
1515
MPI_RANKS ${TEST_RANK_START} ${TEST_RANK_END}
1616
FIXTURES_SETUP_INDIVIDUAL ${FIXTURES_BASE_NAME}
1717
)
@@ -61,16 +61,16 @@ set (HOMME_TEST_MOISTURE notdry)
6161
set (HOMME_THETA_HY_MODE false)
6262

6363
# Vert coord settings
64-
set (HOMME_TEST_VCOORD_INT_FILE acme-128i.ascii)
65-
set (HOMME_TEST_VCOORD_MID_FILE acme-128m.ascii)
64+
set (HOMME_TEST_VCOORD_INT_FILE acme-72i.ascii)
65+
set (HOMME_TEST_VCOORD_MID_FILE acme-72m.ascii)
6666

6767
# Configure the namelist into the test directory
6868
configure_file(${SCREAM_SRC_DIR}/dynamics/homme/tests/theta-dp.nl
6969
${CMAKE_CURRENT_BINARY_DIR}/namelist.nl)
7070

7171
# Ensure test input files are present in the data dir
7272
set (TEST_INPUT_FILES
73-
scream/init/${EAMxx_tests_IC_FILE_128lev}
73+
scream/init/${EAMxx_tests_IC_FILE_72lev}
7474
cam/topo/${EAMxx_tests_TOPO_FILE}
7575
cam/scam/iop/CASS_iopfile_4scam.nc
7676
)
@@ -85,7 +85,7 @@ CompareNCFilesFamilyMpi (
8585
TEST_BASE_NAME ${TEST_BASE_NAME}
8686
FILE_META_NAME ${TEST_BASE_NAME}_output.INSTANT.nsteps_x${NUM_STEPS}.npMPIRANKS.${RUN_T0}.nc
8787
MPI_RANKS ${TEST_RANK_START} ${TEST_RANK_END}
88-
LABELS dynamics physics shoc cld spa p3 rrtmgp dp
88+
LABELS dynamics physics tms shoc cld spa p3 rrtmgp dp pg2
8989
META_FIXTURES_REQUIRED ${FIXTURES_BASE_NAME}_npMPIRANKS_omp1
9090
)
9191

components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_dp/input.yaml renamed to components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_pg2_dp/input.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ time_stepping:
2121
number_of_steps: ${NUM_STEPS}
2222

2323
initial_conditions:
24-
Filename: ${SCREAM_DATA_DIR}/init/${EAMxx_tests_IC_FILE_128lev}
24+
Filename: ${SCREAM_DATA_DIR}/init/${EAMxx_tests_IC_FILE_72lev}
2525
topography_filename: ${TOPO_DATA_DIR}/${EAMxx_tests_TOPO_FILE}
2626
surf_evap: 0.0
2727
surf_sens_flux: 0.0
@@ -44,7 +44,7 @@ atmosphere_processes:
4444
schedule_type: Sequential
4545
Type: Group
4646
mac_aero_mic:
47-
atm_procs_list: [shoc,CldFraction,spa,p3]
47+
atm_procs_list: [tms,shoc,CldFraction,spa,p3]
4848
Type: Group
4949
schedule_type: Sequential
5050
number_of_subcycles: ${MAC_MIC_SUBCYCLES}
@@ -78,7 +78,7 @@ atmosphere_processes:
7878

7979
grids_manager:
8080
Type: Homme
81-
physics_grid_type: GLL
81+
physics_grid_type: PG2
8282
dynamics_namelist_file_name: namelist.nl
8383
vertical_coordinate_filename: IC_FILE
8484

components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_dp/output.yaml renamed to components/eamxx/tests/multi-process/dynamics_physics/homme_shoc_cld_spa_p3_rrtmgp_pg2_dp/output.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
%YAML 1.1
22
---
3-
filename_prefix: homme_shoc_cld_spa_p3_rrtmgp_dp_output
3+
filename_prefix: homme_shoc_cld_spa_p3_rrtmgp_pg2_dp_output
44
Averaging Type: Instant
55
Max Snapshots Per File: 1
66
Fields:
7-
Physics GLL:
7+
Physics PG2:
88
Field Names:
99
# HOMME
1010
- ps
@@ -105,4 +105,4 @@ output_control:
105105
Frequency: ${NUM_STEPS}
106106
frequency_units: nsteps
107107
...
108-
108+

0 commit comments

Comments
 (0)