Skip to content

Commit 7974d3d

Browse files
committed
EAMxx: change syntax to request atm proc tendencies on specific grid
1 parent f377f07 commit 7974d3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/eamxx/cime_config/testdefs/testmods_dirs/eamxx/prod/shell_commands

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $atmchange -b physics::cosp::cosp_frequency=1
2525
$atmchange -b physics::mac_aero_mic::shoc::compute_tendencies=T_mid,qv
2626
$atmchange -b physics::mac_aero_mic::p3::compute_tendencies=T_mid,qv
2727
$atmchange -b physics::rrtmgp::compute_tendencies=T_mid
28-
$atmchange -b homme::compute_tendencies=T_mid,qv#physics_pg2,qc#physics_pg2
28+
$atmchange -b homme::compute_tendencies=T_mid,qv@physics_pg2,qc@physics_pg2
2929

3030
# Set temperature cut off in dycore threshold to 180K
3131
$atmchange -b vtheta_thresh=180

components/eamxx/src/share/atm_process/atmosphere_process.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ void AtmosphereProcess::setup_step_tendencies () {
247247
set_fields_and_groups_pointers ();
248248

249249
// Allow to request tendency of a field on a particular grid
250-
// by using the syntax 'field_name#grid_name'
250+
// by using the syntax 'field_name@grid_name'
251251
auto field_grid = [&] (const std::string& tn) -> std::pair<std::string,std::string>{
252-
auto tokens = ekat::split(tn,'#');
252+
auto tokens = ekat::split(tn,'@');
253253
EKAT_REQUIRE_MSG (tokens.size()==1 || tokens.size()==2,
254254
"Error! Invalid format for tendency calculation request: " + tn + "\n"
255-
" To request tendencies for F, use 'F' or 'F#grid_name' format.\n");
255+
" To request tendencies for F, use 'F' or 'F@grid_name' format.\n");
256256
return std::make_pair(tokens[0],tokens.size()==2 ? tokens[1] : "UNSET");
257257
};
258258

0 commit comments

Comments
 (0)