Main menu

Navigation

How to recreate the CMIP6 historical simulation with CESM2.1.1?

3 posts / 0 new
Last post
nathalie.schall...
How to recreate the CMIP6 historical simulation with CESM2.1.1?

Hello!

We want to run a historical simulation with CESM2.1.1 as similar as possible to the one submitted to CMIP6 (we want to perform our own because we will need high-frequency output for specific variables). My first question is which compset to use: BHISTcmip6, BHIST or B1850 (or another one?).

I have tried all three but after running ./case.build

I get error messages such as (for BHISTcmip6 and BHIST):

create_newcase --case BHIST.f09_g17.test2 --compset BHIST --res f09_g17 --mach fram
cd BHIST.f09_g17.test2
./case.setup
./case.build

Building case in directory /cluster/projects/nn9188k/cesm2.1/cases/nats/BHIST.f09_g17.test2
sharedlib_only is False
model_only is False
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Generating component namelists as part of build
 - Prestaging REFCASE (/cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e21.B1850.f09_g17.CMIP6-piControl.001_v3hist/0501-01-01) to /cluster/projects/nn9188k/cesm2.1.1/output/nats/BHIST.f09_g17.test2/run
ERROR: Reference case directory /cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e21.B1850.f09_g17.CMIP6-piControl.001_v3hist/0501-01-01 does not contain any rpointer files

 

And for B1850:

create_newcase --case B1850.f09_g17.test1 --compset B1850 --res f09_g17 --mach fram

cd B1850.f09_g17.test1

./case.setup

./case.build
Building case in directory /cluster/projects/nn9188k/cesm2.1/cases/nats/B1850.f09_g17.test1
sharedlib_only is False
model_only is False
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Generating component namelists as part of build
Refcase not found in /cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01, will attempt to download from inputdata
Checking server ftp://gridanon.cgd.ucar.edu:2811/cesm/inputdata/ with protocol gftp
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Client protocol gftp not enabled
Checking server ftp://ftp.cgd.ucar.edu/cesm/inputdata with protocol wget
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Using protocol wget with user anonymous and passwd user@example.edu
Loading input file list: 'Buildconf/refcase.input_data_list'
  Model refcase missing file refdir = '/cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01/'
Trying to download file: 'cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01' to path '/cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01' using WGET protocol.
Creating directory /cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01
Traceback (most recent call last):
  File "./case.build", line 147, in <module>
    _main_func(__doc__)
  File "./case.build", line 142, in _main_func
    save_build_provenance=save_build_provenance)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 570, in case_build
    return run_and_log_case_status(functor, "case.build", caseroot=caseroot)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/utils.py", line 1667, in run_and_log_case_status
    rv = func()
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 569, in <lambda>
    save_build_provenance)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 513, in _case_build_impl
    complist, ninst_build, smp_value, model_only, buildlist)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 204, in _build_checks
    case.create_namelists()
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/case/preview_namelists.py", line 61, in create_namelists
    self.stage_refcase()
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 223, in stage_refcase
    success = _downloadfromserver(self, input_data_root=input_data_root, data_list_dir=data_list_dir)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 183, in _downloadfromserver
    user=user, passwd=passwd)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 338, in check_input_data
    isdirectory=isdirectory)
  File "/cluster/home/nats/cesm2.1/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 122, in _download_if_in_repo
    os.makedirs(full_path+".tmp")
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3/0134-01-01.tmp'

All the folders on /cluster/projects/nn9188k/cesm2.1.1/inputdata/cesm2_init/ seem to be empty, and I tried the check_input_data command but it returned an error. I am not sure how these folders should be populated?

The commands above worked with the X compset, and my colleagues who use l compsets do it like that, it might well be that there are more steps required for the B compset, I tried to find a tutorial but was not successful. Let me know if this had been explained somewhere before.

 

Many thanks in advance for your help,

Nathalie

 

 

Nathalie Schaller

jedwards

Make sure that you have write permission to the input directory.   Remove any 0 length files in the directory tree and try again.  

The BHISTcmip6 compset is the correct one.  In your case directory you can run ./check_input_data --download to get the refcase you need. 

CESM Software Engineer

nathalie.schall...

Thanks for the suggestions, but these were not the problem/didn/t work. Just in case someone has the same issue, we seem to have made it work by manually downloading the missing files from the ucar ftp server...

Nathalie

Nathalie Schaller

Log in or register to post comments

Who's new

  • opioronald123@...
  • shimura.tomoya....
  • rack.hun.son@...
  • nathalie.schall...
  • sf870222@...