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

CESM building error on NASA NCCS discover machine

Dear all,
I'm trying to port CESM to NASA NCCS discover machine. Several discussions in the forum were very helpful in advancing my progress. But now I get stuck with an error in csm_share.bldlog.
I already applied the patch in https://bb.cgd.ucar.edu/comment/1008067#comment-1008067.The full error message is just one sentence:"/discover/nobackup/bzhao4/scratch/CESM/test_ctr/bld/intel//nodebug/nothreads/csm_share.bldlog.180530-141552mpif90  -c -I.  -I/discover/nobackup/bzhao4/scratch/CESM/test_ctr/bld/intel//nodebug/nothreads/include -I/discover/nobackup/bzhao4/scratch/CESM/test_ctr/bld/intel//nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/usr/local/other/SLES11.1/netcdf4/4.3.2/intel-13.0.1.117_impi-4.0.3.008//include -I/discover/nobackup/bzhao4/scratch/CESM/test_ctr/bld/intel//nodebug/nothreads/include -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/csm_share/shr -I. -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/runs/test_ctr/SourceMods/src.share -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/drv/shr -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/dead_share -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/csm_share/shr -I/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/utils/esmf_wrf_timemgr -I/discover/nobackup/bzhao4/scratch/CESM/test_ctr/bld/lib/include  -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1 -DLinux  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRINTEL  -free   /gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/drv/shr/seq_io_mod.F90/gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/drv/shr/seq_io_mod.F90(1170): error #6404: This name does not have a type, and must have an explicit type.   [PIO_UNLIMITED]      rcode = pio_def_dim(cpl_io_file,'time',PIO_UNLIMITED,dimid(1))---------------------------------------------^compilation aborted for /gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/models/drv/shr/seq_io_mod.F90 (code 1)gmake: *** [seq_io_mod.o] Error 1gmake  complib -j 1 MODEL=csm_share COMPLIB=libcsm_share.a USER_CPPDEFS="  -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1" -f /gpfsm/dnb32/bzhao4/CESM/cesm1_2_2/runs/test_ctr/Tools/Makefile  returned non-zero exit status 2"
Any idea is highly appreciated!
Thanks,Bowen
 
The issue is resolved. In case anyone had similar problems:the error in my case is caused by that I set the wrong NETCDF_PATH. On discover it's supposed to be "/usr/local/other/SLES11.3/cesm-reqs/1_2_1/intel-18.0.1.163". This directory is specifically set for CESM so you should not use other netcdf directory.Good luck to everyone!
 
Hi Bowen:Did you figured out how to compile CESM1.2 in dicover?  I noticed you tried or managed to port CESM1.2 in discover NCCS system (jfmejia). I am new to the discover I still wondering what are the suitable paths for compiler, mpi, netcdf in the system. Any guidance is really appreciated. Also, is there an input folder common to all CESM users inside discover? 
 
Hi Bowen:Did you figured out how to compile CESM1.2 in dicover?  I noticed you tried or managed to port CESM1.2 in discover NCCS system (jfmejia). I am new to the discover I still wondering what are the suitable paths for compiler, mpi, netcdf in the system. Any guidance is really appreciated. Also, is there an input folder common to all CESM users inside discover? —John Mejia, PhD
Atmospheric Modeling
Desert Research Institute
 
Hi, Unfortunately there is no CESM module available for all users due to the limited number of users; I would suggest you to try to contact the support team. They set it up for me and also very helpful for later work. About this porting question, sorry it's a bit while ago... I can only guess based on what I did:1. CESM installed by the support team, at least in my working directory, is not compatible with ncl. So try unload all irrelevant modules.2. I also modified the Macro file about something with netcdf to make it work.The critical line is probably "SLIBS+= $(shell $(NETCDF_PATH)/bin/nc-config --flibs) CFLAGS:= -O2 -fp-model precise -I/usr/local/other/SLES11.3/cesm-reqs/1_2_1/intel-18.0.1.163/include" Good luck! Best,Bowen
 
Hi Bowen and NASA/Discover users:I figured out how to compile CESM2.1 in discover. I can provide the ../cesm/cime/config/cesm/machines/config_compilers.xml and ..cesm/cime/config/cesm/machines/config_machines.xml files with the details using Intel.Bowen, your CFLAGS and SLIBS suggestions were very useful. However, I am a bit stuck with ./case.submit. Woudl you mind sending your env_batch.xml file? I can use it to compare against mine?Cheers and thanks for your help.   
 
Top