Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Exact restart test using "create_production_test" error

Hi,
I am getting the following error when I try to run the exact restart test with cesm 1.2:

$./create_production_test

Creating test mam4_acme_tess_08_05_2014_ERT
New caseroot directory /dtemp/sing201/ACME_testing/mam4_acme_tess_08_05_2014/CSM/mam4_acme_tess_08_05_2014_ERT already exists
GENERATE_BASELINE: Undefined variable.

How do I fix this?

Thanks!
 

jshollen

New Member
Noting the tag and exact command used, from email:using CESM tag “cesm1_3_beta10” for the testing and compiled the code using the following: ./create_newcase -case $CASEROOT -mach $MACH -res   f19_f19 -compset F_2000_CAM5 -compiler nag
I am looking into this now..
 
 

jshollen

New Member
I am confirming that this is a bug that is present in the cesm1_3 development codebase.  I will have a fix as soon as possible. Jay
 

jedwards

CSEG and Liaisons
Staff member
Here is the change that resolved this problem...
Index: ccsm_utils/Tools/create_production_test===================================================================--- ccsm_utils/Tools/create_production_test(.../scripts4_140805)(revision 85801)+++ ccsm_utils/Tools/create_production_test(.../scripts4_140813)(revision 85801)@@ -90,6 +90,7 @@ unshift @INC, $dirs; require XML::Lite; require SetupTools;+require ConfigCase;  #----------------------------------------------------------------------------------------------- # Read $caseroot xml files - put restuls in %xmlvars hash@@ -100,17 +101,39 @@ foreach my $attr (keys %xmlvars) {     $xmlvars{$attr} = SetupTools::expand_env_var($xmlvars{$attr}, %xmlvars); }-+  my $casename = $xmlvars{CASE}; my $testroot = "$caseroot/.."; my $testname = "${casename}_${test}"; my $ccsmroot = $xmlvars{CCSMROOT}; - print "nCreating test $testnamen";  system("$ccsmroot/scripts/create_clone -case $testroot/$testname -clone $caseroot -testname $test"); +# Write env_test.xml, needed by testcase_setup.csh for the test environment setup +my $casename = $xmlvars{CASE};+my $testroot = "$caseroot/..";+my $testname = "${casename}_${test}";+my $ccsmroot = $xmlvars{CCSMROOT};+my $testenv = ConfigCase->new("$xmlvars{CCSMROOT}/scripts/ccsm_utils/Case.template/config_definition.xml");+$testenv->set('TESTCASE', $test);+my $testid = `date +%y%m%d-%H%M%S`;+chomp $testid;+$testenv->set('TEST_TESTID', $testid);+$testenv->set('TEST_ARGV' , 'UNSET');+$testenv->set('CASEBASEID', 'UNSET');+$testenv->set('BASELINE_NAME_GEN', 'UNSET');+$testenv->set('BASELINE_NAME_CMP', 'UNSET');+$testenv->set('BASEGEN_CASE', 'UNSET');+$testenv->set('BASECMP_CASE', 'UNSET');+$testenv->set('CLEANUP', 'FALSE');+$testenv->set('BASELINE_ROOT', 'UNSET');+$testenv->set('GENERATE_BASELINE', 'FALSE');+$testenv->set('COMPARE_BASELINE', 'FALSE');+$testenv->set('MODEL_GEN_COMP', 'UNSET');+$testenv->write_file("$testroot/$testname/env_test.xml");+ chdir("$testroot/$testname");  $ENV{TESTCASE}=$test;@@ -117,7 +140,5 @@ $ENV{CASEROOT}="$testroot/$testname"; $ENV{CCSMROOT}=$ccsmroot; - system("$ccsmroot/scripts/ccsm_utils/Tools/testcase_setup.csh");  -
 
Top