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: variable name scm_iop_lhflxshflxtg has values that does NOT match any of the valid values: iop eulc slt off in building SCAM case

csp

CSP
Member
Hello Experts,
I am trying to build a case using the SCAM model in CESM 2.1.3, I am getting the following error, could anyone please help:
Code:
Creating component namelists
   Calling /home/csp/my_cesm_sandbox_website_download/components/cam//cime_config/buildnml
     ...calling cam buildcpp to set build time options
ERROR: Command /home/csp/my_cesm_sandbox_website_download/components/cam/bld/build-namelist -ntasks 1 -csmdata /home/csp/OUTPUT/CESM/cesm-inputdata -infile /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/camconf/namelist -ignore_ic_date -use_case scam_arm97 -inputdata /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/cam.input_data_list -namelist " &atmexp /"  failed rc=255
out=
err=CAM build-namelist - ERROR: Invalid namelist variable in '-infile' /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/camconf/namelist.
 ERROR: in validate_variable_value (package Build::Namelist): Variable name scm_iop_lhflxshflxtg has values that does NOT match any of the valid values: iop eulc slt off.

Any help/comment would be appreciated, many thanks in advance.
 

csp

CSP
Member
Hello Courtney (@peverley),
Many thanks for your kind reply. The content of the user_nl_cam is the following:
Code:
scmlon=$PTS_LON
scmlat=$PTS_LAT
iopfile="/home/csp/OUTPUT/CESM/cesm-inputdata/atm/cam/scam/iop/mc3e_150km_10may.nc"
ncdata="/home/csp/OUTPUT/CESM/cesm-inputdata/atm/cam/scam/iop/f.e20.FHIST.f09_f09.cesm2_1.001_v2.cam.i.regrid.Gaus_48x96.nc"

co2vmr=368.9e-6
scm_use_obs_uv = .true.
scm_zadv_T = 'iop'
scm_zadv_q = 'iop'
scm_iop_lhflxshflxtg = .true.
scm_relaxation         = .false.
scm_relax_fincl ='T','q','bc_a1', 'bc_a4', 'dst_a1', 'dst_a2', 'dst_a3', 'ncl_a1', 'ncl_a2',
                   'ncl_a3', 'num_a1', 'num_a2', 'num_a3',
                   'num_a4', 'pom_a1', 'pom_a4', 'so4_a1', 'so4_a2', 'so4_a3', 'soa_a1', 'soa_a2'
fincl1        = 'TREFHT'
scm_relax_bot_p              = 105000.
scm_relax_top_p              = 200.
scm_relax_linear             = .true.
scm_relax_tau_bot_sec                = 864000.
scm_relax_tau_top_sec                = 172800.  
deep_scheme = 'ZM'
zmconv_microp = .true.
fincl1 = 'ETADOT',
'HAQ',
'VAQ',
'TEQ',
'TAQ',
'DFQ',
'DUH',
'DVH',
'ENGYCORR',
'TFIX',
'FU',
'FV',
'UTEND',
'VTEND',
'TTEND',
'LPSTEN',
'VAT',
'KTOOP',
'NSTEP',
'TBP',
'QBP',
'TAP',
'UAP',
'VAP',
'QAP',
'TTEND_TOT',
'Z1000',
'Z700',
'Z500',
'Z300',
'Z200',
'Z100',
'Z050',
'ZZ',
'VZ',
'OMEGAV',
'OMGAOMGA',
'WSPEED',
'WSPDSRFMX',
'WSPDSRFAV',
'OMEGAU',
'OMEGA850',
'OMEGA500',
'T1000',
'T925',
'T850',
'T700',
'T500',
'T400',
'T300',
'T200',
'T010',
'T7001000',
'TH7001000',
'THE7001000',
'T8501000',
'TH8501000',
'T9251000',
'TH9251000',
'TT',
'U850',
'U500',
'U250',
'U200',
'U010',
'V850',
'V500',
'V250',
'V200',
'UBOT',
'VBOT',
'ZBOT',
'ATMEINT',
'PTTEND',
'OMEGAQ',
'QQ',
'MQ',
'RHW',
'RHI',
'RHCFMIP',
'THE8501000',
'THE9251000',
'Q1000',
'Q925',
'Q850',
'Q200',
'QBOT',
'PSDRY',
'PMID',
'PDELDRY',
'PRECT',
'PREC_PCW',
'PREC_zmc',
'PRECTMX',
'PRECCav',
'PRECLav',
'TREFHTMN',
'TREFHTMX',
'RHREFHT',
'TREFMNAV',
'TREFMXAV',
'TBOT',
'ASDIR',
'ASDIF',
'ALDIR',
'ALDIF',
'SST',
'PTEQ',
'PTECLDLIQ',
'PTECLDICE',
'TEINP',
'TEOUT',
'TEFIX',
'EFIX',
'DTCORE',
'qconff_gaex',
'qevapff_gaex',
'qconbb_gaex',
'qevapbb_gaex',
'qconbg_gaex',
'qevapbg_gaex',
'qcon_gaex',
'qevap_gaex',
'DTCBS',
'DTOCS',
'DTSO4',
'DTSOA',
'DTANT',
'DTSAL',
'DTDUST',
'DTTOTAL',
'FRACDAY',
'QDSAD',
'SAD_STRAT',
'SAD_SULFC',
'SAD_SAGE',
'SAD_LNAT',
'SAD_ICE',
'RAD_SULFC',
'RAD_LNAT',
'RAD_ICE',
'SAD_TROP',
'SAD_AERO',
'REFF_AERO',
'SULF_TROP',
'QDSETT',
'QDCHEM',
'HNO3_TOTAL',
'HNO3_STS',
'HNO3_NAT',
'HNO3_GAS',
'H2O_GAS',
'HCL_TOTAL',
'HCL_GAS',
'HCL_STS',
'SZA',
'NOX',
'NOY',
'NOY_SRF',
'HOX',
'BROX',
'BROY',
'TBRY',
'CLOX',
'CLOY',
'TCLY',
'FOY',
'TFY',
'TOTH',
'MASS',
'AREA',
'WTPER',
'TAUAORO',
'TTGWORO',
'TTGWSDFORO',
'TTGWSKEORO',
'UTGWORO',
'VTGWORO',
'UEGW',
'VEGW',
'TEGW',
'DRAGBLJ',
'VDCLDLIQ',
'VDCLDICE',
'VDNUMLIQ',
'VDNUMICE',
'VDRAINQM',
'VDSNOWQM',
'VDNUMRAI',
'VDNUMSNO',
'USTAR',
'KVH',
'KVM',
'KVT',
'CGS',
'DUV',
'DVV',
'ustar',
'obklen',
'EXTINCT',
'EXTINCTUV',
'EXTINCTNIR',
'ABSORB',
'AODVISst',
'AODUV',
'AODUVst',
'AODNIR',
'AODNIRst',
'AODABS',
'AODxASYM',
'EXTxASYM',
'EXTINCTdn',
'EXTINCTUVdn',
'EXTINCTNIRdn',
'ABSORBdn',
'AODVISdn',
'AODVISstdn',
'AODUVdn',
'AODUVstdn',
'AODNIRdn',
'AODNIRstdn',
'AODABSdn',
'AODxASYMdn',
'EXTxASYMdn',
'BURDEN1',
'AODMODE1',
'BURDENdn1',
'AODdnMODE1',
'AODdnDUST1',
'BURDEN2',
'AODMODE2',
'AODDUST2',
'BURDENdn2',
'AODdnMODE2',
'AODdnDUST2',
'BURDEN3',
'AODMODE3',
'BURDENdn3',
'AODdnMODE3',
'AODdnDUST3',
'BURDEN4',
'AODMODE4',
'AODDUST4',
'BURDENdn4',
'AODdnMODE4',
'AODdnDUST4',
'AODDUST',
'AODSO4',
'AODPOM',
'AODSOA',
'AODBC',
'AODSS',
'AODABSBC',
'BURDENDUST',
'BURDENSO4',
'BURDENPOM',
'BURDENSOA',
'BURDENBC',
'BURDENSEASALT',
'SSAVIS',
'AODDUSTdn',
'AODSO4dn',
'AODPOMdn',
'AODSOAdn',
'AODBCdn',
'AODSSdn',
'AODABSBCdn',
'BURDENDUSTdn',
'BURDENSO4dn',
'BURDENPOMdn',
'BURDENSOAdn',
'BURDENBCdn',
'BURDENSEASALTdn',
'SSAVISdn',
'O3colAbove',
'TOT_CLD_VISTAU',
'TOT_ICLD_VISTAU',
'LIQ_ICLD_VISTAU',
'ICE_ICLD_VISTAU',
'SNOW_ICLD_VISTAU',
'QRSC',
'FSUTOA',
'FSNIRTOA',
'FSNRTOAC',
'FSNRTOAS',
'FSN200',
'FSN200C',
'FSNR',
'SOLL',
'SOLS',
'SOLLD',
'SOLSD',
'FUS',
'FDS',
'FUSC',
'FDSC',
'QRLC',
'FLN200',
'FLN200C',
'FLNR',
'FLDSC',
'FUL',
'FDL',
'FULC',
'FDLC',
'EMIS',
'HR',
'LWC',
'ICLDIWP',
'ICLDTWP',
'GCLDLWP',
'lambda_cloud',
'mu_cloud',
'dei_cloud',
'SETLWP',
'LWSH',
'EFFCLD',
'EMISCLD',
'qt_pre_Cu',
'sl_pre_Cu',
'slv_pre_Cu',
'u_pre_Cu',
'v_pre_Cu',
'qv_pre_Cu',
'ql_pre_Cu',
'qi_pre_Cu',
't_pre_Cu',
'rh_pre_Cu',
'qt_aft_Cu',
'sl_aft_Cu',
'slv_aft_Cu',
'u_aft_Cu',
'v_aft_Cu',
'qv_aft_Cu',
'ql_aft_Cu',
'qi_aft_Cu',
't_aft_Cu',
'rh_aft_Cu',
'tten_Cu',
'rhten_Cu',
'CMFDT',
'CMFDQ',
'CMFDLIQ',
'CMFDICE',
'CMFDQR',
'EVAPTCM',
'FZSNTCM',
'EVSNTCM',
'EVAPQCM',
'QC',
'PRECSH',
'CMFMC',
'CMFSL',
'CMFLQ',
'CIN',
'CBMF',
'CLDTOP',
'CLDBOT',
'PCLDTOP',
'PCLDBOT',
'FREQSH',
'HKFLXPRC',
'HKFLXSNW',
'HKNTPRPD',
'HKNTSNPD',
'HKEIHEAT',
'ICWMRSH',
'SH_CLD',
'DP_CLD',
'PRECZ',
'ZMDT',
'ZMDQ',
'ZMDICE',
'ZMDLIQ',
'EVAPTZM',
'FZSNTZM',
'EVSNTZM',
'EVAPQZM',
'ZMFLXPRC',
'ZMFLXSNW',
'ZMNTPRPD',
'ZMNTSNPD',
'ZMEIHEAT',
'CMFMCDZM',
'PRECCDZM',
'PCONVB',
'PCONVT',
'CAPE',
'FREQZM',
'ZMMTT',
'ZMMTU',
'ZMMTV',
'ZMMU',
'ZMMD',
'ZMUPGU',
'ZMUPGD',
'ZMVPGU',
'ZMVPGD',
'ZMICUU',
'ZMICUD',
'ZMICVU',
'ZMICVD',
'DIFZM',
'DLFZM',
'ICWMRDP',
'CCN1',
'CCN2',
'CCN4',
'CCN5',
'CCN6',
'WTKE',
'NDROPMIX',
'NDROPSRC',
'NDROPSNK',
'NDROPCOL',
'LCLOUD',
'WSUBI',
'NIHF',
'NIDEP',
'NIIMM',
'NIMEY',
'NIREGM',
'NISUBGRID',
'NITROP_PD',
'fhom',
'WICE',
'WEFF',
'INnso4',
'INnbc',
'INndust',
'INondust',
'INhet',
'INhom',
'INFrehom',
'INFreIN',
'na500',
'totna500',
'FREQIMM',
'FREQCNT',
'FREQDEP',
'FREQMIX',
'DSTFREZIMM',
'DSTFREZCNT',
'DSTFREZDEP',
'BCFREZIMM',
'BCFREZCNT',
'BCFREZDEP',
'NIMIX_IMM',
'NIMIX_CNT',
'NIMIX_DEP',
'DSTNIDEP',
'DSTNICNT',
'DSTNIIMM',
'BCNIDEP',
'BCNICNT',
'BCNIIMM',
'NUMICE10s',
'NUMIMM10sDST',
'NUMIMM10sBC',
'SFCLDLIQ',
'SFCLDICE',
'SFNUMLIQ',
'SFNUMICE',
'SFRAINQM',
'SFSNOWQM',
'SFNUMRAI',
'SFNUMSNO',
'CLDLIQAP',
'CLDICEAP',
'CLDLIQBP',
'CLDICEBP',
'RAINQMAP',
'SNOWQMAP',
'RAINQMBP',
'SNOWQMBP',
'CME',
'PRODPREC',
'EVAPPREC',
'EVAPSNOW',
'HPROGCLD',
'CLDFSNOW',
'ICWMRST',
'ICIMRST',
'QCSEVAP',
'QISEVAP',
'QVRES',
'CMEIOUT',
'VTRMC',
'VTRMI',
'QCSEDTEN',
'QISEDTEN',
'PRAO',
'PRCO',
'MNUCCCO',
'MNUCCTO',
'MNUCCDO',
'MNUCCDOhet',
'MSACWIO',
'PSACWSO',
'BERGSO',
'BERGO',
'MELTO',
'HOMOO',
'QCRESO',
'PRCIO',
'PRAIO',
'QIRESO',
'MNUCCRO',
'PRACSO',
'MELTSDT',
'FRZRDT',
'QRSEDTEN',
'QSSEDTEN',
'MPDT',
'MPDQ',
'MPDLIQ',
'MPDICE',
'MPDW2V',
'MPDW2I',
'MPDW2P',
'MPDI2V',
'MPDI2W',
'MPDI2P',
'ICWNC',
'ICINC',
'EFFLIQ_IND',
'MPICLWPI',
'MPICIWPI',
'ACTREL',
'ACTREI',
'ACTNL',
'ACTNI',
'FCTL',
'FCTI',
'FREQM',
'FREQSL',
'FREQSLM',
'FCTM',
'FCTSL',
'FCTSLM',
'LS_FLXPRC',
'LS_FLXSNW',
'REL',
'REI',
'LS_REFFRAIN',
'LS_REFFSNOW',
'CV_REFFLIQ',
'CV_REFFICE',
'MG_SADICE',
'MG_SADSNOW',
'QRAIN',
'QSNOW',
'NRAIN',
'NSNOW',
'RERCLD',
'DSNOW',
'REFL',
'AREFL',
'FREFL',
'CSRFL',
'ACSRFL',
'FCSRFL',
'AREFLZ',
'NCAL',
'NCAI',
'PE',
'APRL',
'PEFRAC',
'VPRCO',
'VPRAO',
'RACAU',
'UMR',
'UMS',
'QCRAT',
'ICIMRCU',
'ICLMRCU',
'ICIMRTOT',
'ICLMRTOT',
'GCLMRDP',
'GCIMRDP',
'GCLMRSH',
'GCIMRSH',
'FRESH',
'FREDP',
'FRECU',
'FRETOT',
'THETAL',
'CLDST',
'CLUBB_GRID_SIZE',
'CMELIQ',
'QSATFAC',
'qflux_exceeded',
'DQP',
'UDIFF',
'VDIFF',
'PRECOBS',
'DIVQ',
'DIVQ3D',
'DIVV',
'DIVU',
'DIVT',
'DIVT3D',
'DIVU3D',
'DIVV3D'
By copying this stuff I found that the same exact lines were there in the case, which is actually running. So essentially what I have done is downloaded a new CESM from the website to check my running case without my changes/modification and unfortunately, the case from the downloaded directory is not working and giving the error mentioned in this thread. Sorry for the confusion, if you need clarification, please let me know. Any comment/suggestion would be very helpful, thanks again for your kind help and cooperation.
 

peverley

Courtney Peverley
Moderator
Staff member
Hi again,

Thanks for the user_nl_cam. It looks like this was a bug that was fixed in a later CAM tag. Can you try changing the CAM tag in Externals.cfg to

cam_cesm2_1_rel_46​

?

Let me know if that doesn't fix the issue.

Courtney
 
  • Like
Reactions: csp

csp

CSP
Member
Many thanks, Courtney @peverley for your kind reply and help. I tried to find this file and it has multiple locations in the folder, viz:

Code:
./Externals.cfg
./components/cam/Externals.cfg
./components/cism/Externals.cfg
./components/clm/Externals.cfg
./components/pop/Externals.cfg
So, should I change this to every file? Meanwhile, I will try to change every file and let you know the outcome. Thanks again for your consistent help, highly appreciate that.
 

csp

CSP
Member
Hi again,
I could see only one file where some related stuff *CAM tag* was written inside the:
Code:
./Externals.cfg
and I changed it, but unfortunately still unable to build the case. Although not very sure, if I am doing it correctly, any further comment/suggestion would be welcomed, thanks in advance.
 

peverley

Courtney Peverley
Moderator
Staff member
Hi again,

Yes the one located in the base directory (./Externals.cfg) is the correct one to change. I forgot to mention that, once you change any of these files, you must run the following command to update the code:

./manage_externals/checkout_externals
 
  • Like
Reactions: csp

csp

CSP
Member
Hi Courtney, Many thanks @peverley for your help. By running the command
Code:
./manage_externals/checkout_externals
it says:
Code:
Processing externals description file : Externals.cfg
Processing externals description file : Externals_CAM.cfg
Processing externals description file : Externals_CISM.cfg
Processing externals description file : Externals_CLM.cfg
Processing externals description file : Externals_POP.cfg
Checking status of externals: cam, chem_proc, carma, clubb, cosp2, cice, cime, cism, source_cism, clm, fates, ptclm, mosart, pop, cvmix, marbl, rtm, ww3, 
 M  ./cime
s   ./components/cam
    ./components/cam/chem_proc
    ./components/cam/src/physics/carma/base
    ./components/cam/src/physics/clubb
    ./components/cam/src/physics/cosp2/src
    ./components/cice
    ./components/cism
    ./components/cism/source_cism
    ./components/clm
    ./components/clm/src/fates
    ./components/clm/tools/PTCLM
    ./components/mosart
    ./components/pop
    ./components/pop/externals/CVMix
    ./components/pop/externals/MARBL
    ./components/rtm
    ./components/ww3
----------------------------------------------------------------------
The external repositories labeled with 'M' above are not in a clean state.

The following are two options for how to proceed:

(1) Go into each external that is not in a clean state and issue either
    an 'svn status' or a 'git status' command. Either revert or commit
    your changes so that all externals are in a clean state. (Note,
    though, that it is okay to have untracked files in your working
    directory.) Then rerun checkout_externals.

(2) Alternatively, you do not have to rely on checkout_externals. Instead, you
    can manually update out-of-sync externals (labeled with 's' above)
    as described in the configuration file Externals.cfg.


The external repositories labeled with '?' above are not under version
control using the expected protocol. If you are sure you want to switch
protocols, and you don't have any work you need to save from this
directory, then run "rm -rf [directory]" before re-running the
checkout_externals tool.

After running this, I deleted my case directory and then again tried to build the case, but unfortunately again, I am getting the same error:

Code:
Building case in directory /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename
sharedlib_only is False
model_only is False
Generating component namelists as part of build
Creating component namelists
   Calling /home/csp/my_cesm_sandbox_website_download/components/cam//cime_config/buildnml
     ...calling cam buildcpp to set build time options
ERROR: Command /home/csp/my_cesm_sandbox_website_download/components/cam/bld/build-namelist -ntasks 1 -csmdata /home/csp/OUTPUT/CESM/cesm-inputdata -infile /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/camconf/namelist -ignore_ic_date -use_case scam_arm97 -inputdata /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/cam.input_data_list -namelist " &atmexp /"  failed rc=255
out=
err=CAM build-namelist - ERROR: Invalid namelist variable in '-infile' /home/csp/my_cesm_sandbox_website_download/cime/scripts/casename/Buildconf/camconf/namelist.
 ERROR: in validate_variable_value (package Build::Namelist): Variable name scm_iop_lhflxshflxtg has values that does NOT match any of the valid values: iop eulc slt off.

Any further comment/suggestion would be welcomed, thanks again for your kind time and help.
 

peverley

Courtney Peverley
Moderator
Staff member
Hi again,

Sorry for all of your troubles. When you ran ./manage_externals/checkout_externals, it looks like it failed because there had been code modifications within cime. The easiest way to get this to run is to delete the full cime directory ("rm -rf cime" from the baseline CESM directory). If there were important changes you made in cime (you can navigate into the cime directory and run "git status" to see what has been changed), be sure to note those so you can re-make them after you re-run checkout_externals.

Once you delete that directory, try re-running ./manage_externals/checkout_externals

When it runs to completion, it will not display any error messages (the last thing logged will be "checking out externals...". Once that works successfully, you can rebuild your case and it will hopefully work.

Let me know if you have any other issues.

Courtney
 
  • Wow
Reactions: csp

csp

CSP
Member
Hello again Courtney @peverley WOW, excellent !!! WORKED PERFECTLY !!!
Many many thanks, I was struggling regarding this for around 3.5 months and was using some other's folder to run my
 

csp

CSP
Member
Hello again Courtney @peverley WOW, excellent !!! WORKED PERFECTLY !!!
Many many thanks, I was struggling regarding this for around 3.5 months and was using some other's folder to run my simulations. I was thinking the new website version is not working maybe because I am very naive in this field and would have been missing some elementary stuff in installing, but your kind help really makes things work. My sincere thanks to your, highly appreciate.
 
Top