From f494afdda2bb6403ec383ad4fc0b6889433a8c14 Mon Sep 17 00:00:00 2001 From: Jason Boutte Date: Wed, 16 Oct 2024 18:43:36 -0700 Subject: [PATCH] Updates example --- doc/source/users_guide/testing.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/source/users_guide/testing.rst b/doc/source/users_guide/testing.rst index f0340abc6ca..f604e93f7d8 100644 --- a/doc/source/users_guide/testing.rst +++ b/doc/source/users_guide/testing.rst @@ -416,6 +416,7 @@ Note; this is a toy example, no scientific usage. import os from CIME.SystemTests.mvk import EVV_LIB_DIR from CIME.namelist import Namelist + from CIME.utils import safe_copy from CIME.utils import run_cmd component "eam" @@ -437,15 +438,18 @@ Note; this is a toy example, no scientific usage. if component in ["eam", "clm"]: with namelist(filename) as nml: if component == "eam": - nml.set_variable_value("eam_specific", f"perturn-{i}") + # arguments group, key, value + nml.set_variable_value("", "eam_specific", f"perturn-{i}") elif component == "clm": if i % 2 == 0: - nml.set_variable_value("clm_specific", "even") + nml.set_variable_value("", "clm_specific", "even") else: - nml.set_variable_value("clm_specific", "odd") + nml.set_variable_value("", "clm_specific", "odd") else: stat, output, err = run_cmd(f"atmchange initial_conditions::perturbation_random_seed = {i*32}") + safe_copy("namelist_scream.xml", f"namelist_scream_{i:04}.xml") + ======================== Test progress and output