- ERROR(Build::Namelist::_parse_next): expect a F90 constant for a namelist instead got: /datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ echo hist_nhtfrq = -24
hist_nhtfrq = -24
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ echo hist_mfilt = 1 >> user_nl_clm
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ echo hist_nhtfrq = -24 >> user_nl_clm
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ echo fsurdat=/datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc >> user_nl_clm
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ tail user_nl_clm
! (includes $inst_string for multi-ensemble cases)
! or with CLM_FORCE_COLDSTART to do a cold start
! or set it with an explicit filename here.
! Set maxpatch_glcmec with GLC_NEC option
! Set glc_do_dynglacier with GLC_TWO_WAY_COUPLING env variable
!----------------------------------------------------------------------------------
hist_mfilt = 1
hist_nhtfrq = -24
fsurdat=/datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc
dayon@R830:~/cesm_2_1_3/cime/scripts/CLM50HCRU_05d$ ./case.build --skip-provenance-check
Building case in directory /home/dayon/cesm_2_1_3/cime/scripts/CLM50HCRU_05d
sharedlib_only is False
model_only is False
Setting resource.RLIMIT_STACK to -1 from (8388608, -1)
Generating component namelists as part of build
Creating component namelists
Calling /home/dayon/cesm_2_1_3/cime/src/components/data_comps/datm/cime_config/buildnml
Calling /home/dayon/cesm_2_1_3/components/clm//cime_config/buildnml
WARNING: CLM is starting up from a cold state
ERROR: Command /home/dayon/cesm_2_1_3/components/clm/bld/build-namelist failed rc=255
out=
err=File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead. at /home/dayon/cesm_2_1_3/components/clm/bld/CLMBuildNamelist.pm line 4335.
ERROR(Build::Namelist::_parse_next): expect a F90 constant for a namelist instead got: /datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc
– 错误原因 “expect a F90 constant for a namelist” 应该是这里需要的一个可以被FORTRAN识别的常数,而给的路径不是常数,直接给路径无法识别,需要变为字符串,因此
echo fsurdat=/datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc >> user_nl_clm
# 应当修改为
echo fsurdat='/datahuge/cesm_inputdata/lnd/clm2/surfdata_map/surfdata_360x720cru_16pfts_Irrig_CMIP6_simyr2000_c170824.nc' >> user_nl_clm
# 问题解决!