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

Trouble with building ESMF before using mkmapdata and mksurfdata tool

KeerZ

Member
Hello, I am running a case with unsupported resolution in Cheyenne CESM2.1.1, and I ran into a problem while I was creating surface data following CLM5 user guide 1.3 and Cime user guide.

To build ESMF toolkit, I loaded intel/17.0.1, esmf_libs/7.1.0r and esmf-7.1.0r-ncdfio-uni-O before I used mkmapdata.sh, and I got error as following:

keerzhang@cheyenne5:~/cesm2.1.1/components/clm/tools/mkmapdata> module load ncl/6.6.2
keerzhang@cheyenne5:~/cesm2.1.1/components/clm/tools/mkmapdata> ./mkmapdata.sh -f ~/test/runncl/SCRIPgrid_1152x768pt_US-UMB_noocean_c200223.nc -r 1152x768 -t global

./mkmapdata.sh
Script to create mapping files required by mksurfdata_map
query command is ./../../bld/queryDefaultNamelist.pl -silent -namelist clmexp -justvalue -options sim_year=2000 -csmdata /glade/p/cesm/cseg/inputdata
Using user specified scrip grid file: /glade/u/home/keerzhang/test/runncl/SCRIPgrid_1152x768pt_US-UMB_noocean_c200223.nc
Output grid resolution is 1152x768
Hostname = cheyenne5
Due to MODULEPATH changes, the following have been reloaded:
1) esmf-7.1.0r-ncdfio-uni-O 2) esmf_libs/7.1.0r 3) mpt/2.19 4) ncarcompilers/0.5.0 5) ncl/6.6.2 6) netcdf/4.7.3
The following have been reloaded with a version change:
1) intel/18.0.5 => intel/17.0.1
Lmod has detected the following error: These module(s) exist but cannot be loaded as requested: "ncl"
Try: "module spider ncl" to see how to load the module(s).
Lmod is automatically replacing "esmf-7.1.0r-ncdfio-uni-O" with "esmf-7.1.0r-ncdfio-mpi-O".
rm: cannot remove 'PET*.Log': No such file or directory
Creating mapping file: map_0.5x0.5_AVHRR_to_1152x768_nomask_aave_da_c200303.nc
From input grid: /glade/p/cesm/cseg/inputdata/lnd/clm2/mappingdata/grids/SCRIPgrid_0.5x0.5_AVHRR_c110228.nc
For output grid: /glade/u/home/keerzhang/test/runncl/SCRIPgrid_1152x768pt_US-UMB_noocean_c200223.nc
????????CMPT ERROR: mpiexec_mpt must be used to launch all MPI applications
Error status returned from mkmapdata script


However, I made sure that ncl/6.6.2 has been loaded. I think the issue might be with the way I build ESMF (I just loaded those modules above). In the README file for ./mkmapdata.sh, it says "The script requires that ESMF be built and the path for ESMF binary files (using the program ESMF_RegridWeightGen) be given as input to the script. You need to build at least two versions, one with mpiuni and one with mpi." Could anyone explain more on how to build ESMF properly so that I can use ./mkmapdata.sh?
 

KeerZ

Member
Also, I met another problem when I was building gen_domain_files

In the INSATLL file
============
HOW TO BUILD
============
(1) $ cd src
(2) $ ../../../configure --macros-format Makefile --mpilib mpi-serial
Bash users:
(3) $ (. ./.env_mach_specific.sh ; gmake)
csh users:
(3) $ (source ./.env_mach_specific.csh ; gmake)

for second step, I did:
~/cesm2.1.1/cime/tools> ./configure --macros-format Makefile --mpilib mpi-serial --machine cheyenne
however, instead of .env_mach_specific.sh or .env_mach_specific.csh, I got env_mach_specific.xml, and I cannot use gmake in the third step. Are there any steps/settings I missed?

Any help will be much appreciated! Thanks!
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
I know there were some machine updates that came in with cesm2.1.2, so try that. These tools would be compatible with each other. Note, also that ESMF is loaded onto the system as a module, so you don't have to build it yourself.
 

KeerZ

Member
I know there were some machine updates that came in with cesm2.1.2, so try that. These tools would be compatible with each other. Note, also that ESMF is loaded onto the system as a module, so you don't have to build it yourself.
Thank you Erik! I will try CESM2.1.2
 
Top