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

Error while compiling CESM1.2.2 on Titan

jhe6@ncsu_edu

New Member
Hi,I'm trying to run CESM1.2.2 on Titan using F_2000_CAM5 componset.I use pgi compiler. Below is the error message:ftn  -c -I.  -I/lustre/atlas/scratch/jhe/atm101/case1a/bld/pgi/mpich/nodebug/nothreads/include -I/lustre/atlas/scratch/jhe/atm101/case1a/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/cray/netcdf-hdf5parallel/4.3.3.1/PGI/15.3/include -I/opt/cray/mpt/7.2.5/gni/mpich2-pgi/15.3/include -I/opt/cray/parallel-netcdf/1.6.1/PGI/15.3/include -I/lustre/atlas/scratch/jhe/atm101/case1a/bld/pgi/mpich/nodebug/nothreads/include -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/csm_share/shr -I. -I/ccs/home/jhe/cases/case1a/SourceMods/src.clm -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/cpl_share -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/util_share -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/clm4_0/main -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/clm4_0/biogeophys -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/clm4_0/biogeochem -I/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/cpl_mct -I/lustre/atlas/scratch/jhe/atm101/case1a/bld/lib/include  -i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee   -O2  -nomp  -DMAXPATCH_PFT=17 -DCNL  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16   -DLINUX  -DCNL -DCPRPGI  -DHAVE_SLASHPROC -Mfree   /autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/util_share/decompInitMod.F90PGF90-S-0155-lsize is use associated and cannot be redeclared (/autofs/nccs-svm1_home1/jhe/cesm1_2_2/models/lnd/clm/src/util_share/decompInitMod.F90: 350)  0 inform,   0 warnings,   1 severes, 0 fatal for decompinit_glcpgmake: *** [decompInitMod.o] Error 2 gmake: *** Waiting for unfinished jobs....  Does any one konw how to fix this problem? Thanks,
 

jedwards

CSEG and Liaisons
Staff member
Rename the local variable lsize to something else to avoid the conflict.  Make sure and change all of the instances of lsize in the subroutine.  
 

jhe6@ncsu_edu

New Member
Thanks for the help!After renaming lsize in decompInitMod.F90, there is similar error for another file lnd_comp_mct.F90.But after rename lsize in lnd_comp_mct.F90, the model can compile and run succsfully.Thanks again!
 

lilchgs@163_com

New Member
Hello,anyonethere?I also got this on my own machine. But after changing the "lsize" to "psize" in the first and second subroutines of the lnd_comp_mct.F90,it shows: 
    schedule                50 millisecs    15%
    Total time             316 millisecs
mpif90 -c -I.  -I/mnt/guest1/cesm/2cesm1_2_2/case/2test02/bld/pgi/mpich/nodebug/nothreads/include -I/mnt/guest1/cesm/2cesm1_2_2/case/2test02/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/mnt/guest1/obj-pgi/netcdf/include -I/mnt/guest1/obj-pgi/mpich/include -I/mnt/guest1/cesm/2cesm1_2_2/case/2test02/bld/pgi/mpich/nodebug/nothreads/include -I/mnt/guest1/cesm/2cesm1_2_2/models/csm_share/shr -I. -I/mnt/guest1/cesm/2cesm1_2_2/scripts/2test02/SourceMods/src.clm -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_share -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/util_share -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/clm4_0/main -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/clm4_0/biogeophys -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/clm4_0/biogeochem -I/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct -I/mnt/guest1/cesm/2cesm1_2_2/case/2test02/bld/lib/include  -i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee   -nomp  -DMAXPATCH_PFT=17 -DCN -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16   -DLINUX -DCPRPGI  -DHAVE_SLASHPROC -Mfree   /mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90

PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 286)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 289)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 292)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 295)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 335)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 338)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 345)
PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 348)
PGF90-S-0038-Symbol, mct_gsmap_psize, has not been explicitly declared (/mnt/guest1/cesm/2cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90)
  0 inform,   0 warnings,   9 severes, 0 fatal for lnd_init_mct
gmake: *** [lnd_comp_mct.o] Error 2

  how could I slove that? Thank you. 
 

benbs@mit_edu

New Member
I am having the exact same issue on our own machine. I changed lsize to psize and now have this: mpif90  -c -I.  -I/net/fs11/d0/benbs/cesm1_2_2/cases/cesm.pg13.8.test.4/bld/pgi/openmpi/nodebug/nothreads/include -I/net/fs11/d0/benbs/cesm1_2_2/cases/cesm.pg13.8.test.4/bld/pgi/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/software/pgi/16.9/pkg/netcdf/20161122/include -I/home/software/pgi/16.9/pkg/openmpi/1.10.5/include/../include -I/net/fs11/d0/benbs/cesm1_2_2/cases/cesm.pg13.8.test.4/bld/pgi/openmpi/nodebug/nothreads/include -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/csm_share/shr -I. -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm.pg13.8.test.4/SourceMods/src.clm -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_share -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/util_share -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/clm4_0/main -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/clm4_0/biogeophys -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/clm4_0/biogeochem -I/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct -I/net/fs11/d0/benbs/cesm1_2_2/cases/cesm.pg13.8.test.4/bld/lib/include  -i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee   -nomp  -DMAXPATCH_PFT=17 -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16   -DLINUX -DCPRPGI  -DHAVE_SLASHPROC -Mfree   /net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 286)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 289)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 292)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 295)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 335)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 338)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 345)PGF90-S-0155-Could not resolve generic procedure mct_avect_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 348)PGF90-S-0038-Symbol, mct_gsmap_psize, has not been explicitly declared (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90)  0 inform,   0 warnings,   9 severes, 0 fatal for lnd_init_mctPGF90-S-0155-Could not resolve generic procedure mct_ggrid_init (/net/fs11/d0/benbs/svante.cesm.test.dir/cesm1_2_2/models/lnd/clm/src/cpl_mct/lnd_comp_mct.F90: 1152)  0 inform,   0 warnings,   1 severes, 0 fatal for lnd_domain_mct/net/fs11/d0/benbs/svante.cesm.test.dir/cesm.pg13.8.test.4/Tools/Makefile:639: recipe for target 'lnd_comp_mct.o' failedgmake: *** [lnd_comp_mct.o] Error 2 Please help, Ben  
 
I'm not a CESM expert, but I ran into the same lsize problem.  Two things come to mind:1. When I changed the name of lsize, I changed it to something different in each routine.  So in the lnd_init_mct routine, I change lsize to lsize_lim, and in lnd_run_mct, I changed lsize to lsize_lrm.2. When you change lsize in the routine calls, like mct_aVect_init, I think you need to make sure that you only change what lsize is equal to.  So if you changed "lsize" to "psize", the call to mct_aVect_init should be:call mct_aVect_init(x2l_l, rList=seq_flds_x2l_fields, lsize=psize)not:call mct_aVect_init(x2l_l, rList=seq_flds_x2l_fields, psize=psize)I hope that helps.
 
Top