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

-grid_file equivalent for CESM1.3 (-user_grid_file)?

Hi there, I am trying to get a new grid set up (for I and IG simulations on the regional RASM model grid). In CESM1.2, the create_newcase command accepted as an argument the name of an xml file, to define the grid for the executable. I have pasted the contents of this file, as I created it, at the bottom of this message.

In CESM1.3 and latter beta versions of CESM1.2, this file format (now pointed to using the -user_grid_file flag in the call to create_newcase) is no longer of the right format (though, the error message I get when I try to reference this file is:

"/glade/u/home/jfyke/work/CLM_on_RASM_grid/cesm1_3_attempt/cesm1_3_beta01/scripts/ccsm_utils/Case.template/config_compsets.xml is not a compset parameters file"

which seems strange, since the error message does not reference the local file I set as the -user_grid_file, but rather the default ccsm-utils/Case.template/config_compset file).

Regardless of this strange (?) error, the main question I have is: How do I make a CESM1.3 file that is a "copy" of the default config_compsets.xml (as is directed in this file), is equivalent to the old -user_grid file format, and references the proper domain files, so that I can set up and run a model on the regional RASM grid?

Below is a copy of the old CESM1.2 -grid_file which I created based on Mariana's wrf_example in tools/mapping/examples - which appears to be obsolete now in the CESM1.3 tag (?):



Thanks in advance for any help, and I am available by phone:

505-606-0025

Jeremy Fyke
 

mvertens

CSEG and Liaisons
Staff member
Jeremy,The user_grid_file should point to a full pathname of a copy of ccsm_utils/Case.template/config_grid.xml file - with the new changes put in for the wr50a.For cesm1_3_beta01 - here are the relevant changes for "new" config_grid.xml using your new gridIndex: config_grid.xml
===================================================================
--- config_grid.xml     (revision 49555)
+++ config_grid.xml     (working copy)
@@ -125,6 +125,7 @@
 
 
 a%wus12_l%wus12_oi%wus12_r%null_m%reg_g%null_w%null
+a%wr50a_l%wr50a_oi%wr50a_r%null_m%reg_g%null_w%null
 
 
 
@@ -370,6 +371,11 @@
   WRF 12-km Western US samegrid configuration
 
 
+
+  275  205 
+  WRF grid
+
+
 
 
 
@@ -489,9 +495,11 @@
 
 1.0e-12
 1.0e-03
+1.0e-03
 
 9.0e-07
-1.0e-03
+1.0e-03
+1.0e-03
 
 1.0e-06
 1.0e-02
@@ -1083,6 +1091,17 @@
   domain.ocn.wus12.20100518.nc
 

+
+  domain.lnd.wr50a_lnd_wr50a_ocn.130723.nc
+  domain.lnd.wr50a_lnd_wr50a_ocn.130723.nc
+  domain.ocn.wr50a_lnd_wr50a_ocn.130723.nc
+  domain.ocn.wr50a_lnd_wr50a_ocn.130723.nc
+  $CCSMROOT/tools/mapping/gen_domain_files
+  $CCSMROOT/tools/mapping/gen_domain_files
+  $CCSMROOT/tools/mapping/gen_domain_files
+  $CCSMROOT/tools/mapping/gen_domain_files
+
+

Lets say you placed the new config_grid.xml in a file called ~/newgrid.xmlYou would call create_newcase as follows:./create_newcase -case jeremey -compset I -res wr50a_wr50a -user_grid_file ~/newgrid.xml -mach yellowstone_intelThe error statement you initially obtained is incorrect. We will fix this in an upcoming beta tag.Let me know if you have problems with the above.Mariana 
 
Hi Mariana, Thanks a lot for this response, the create_newcase executes successfully.However, it led to a subsequent error in preview_namelist: ***Running preview_namelist script  infile is /glade/u/home/jfyke/work/CLM_on_RASM_grid/cesm1_3_attempt/cesm1_3_beta01/scripts/wr50a_test_cesm1_3_beta01/Buildconf/cplconf/cesm_namelist ERROR: wr50a is not a valid value for parameter sitespf_pt: valid values are none,1x1_brazil,1x1_tropicAtl,5x5_amazon,1x1_camdenNJ,1x1_vancouverCAN,1x1_mexicocityMEX,1x1_asphaltjun leNJ,1x1_urbanc_alpha,1x1_numaIA,1x1_smallvilleIA,us20,wus12ERROR: clm.buildnml.csh failedERROR: /glade/p/work/jfyke/CLM_on_RASM_grid/cesm1_3_attempt/cesm1_3_beta01/scripts/wr50a_test_cesm1_3_beta01/preview_namelists failed: 25344*** I'm not sure why parameter sitespf_pt is attempting to be set - it would appear this is for single-point CLM simulations?  I've tracked down the files that I think are pertinent, and vaguely suspect I could patch it, but it's still not very clear to me what is going on in the heirarchy of scripts, which makes me hesitant to naively change things without first inquiring.  Do you have any tips on how to proceed past this error? Thanks again, Jeremy 
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Hi Jeremy
The logic in clm.buildnml.csh has the following...
if ($MASK_GRID == "reg" && $LND_GRID != "CLM_USRDAT" ) then
   set config_opts = "-sitespf_pt $LND_GRID"
   set RESOLUTION  = $LND_GRID
   set clmusr      = ""
endif
for you case, you should comment out the "set config_opts" line..#set config_opts = "-sitespf_pt $LND_GRID" That's the reason it's checking the resolution, otherwise it wouldn't unless you invoked the -chk_res option in CLM_BLDNML_OPTS. We (in CLM) need to figure a better way to handle that logic in the clm.buildnml.csh script.
 
Top