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

Strange error when model build aborted

aberg

New Member
I am trying to build the model for a case that uses modified source code. I copied the original cesm1_0_3 files that were to be modified into the appropriate directories in my case/SourceMods directory, and modified them there (the modifications basically expand the VOCs from 5 classes to 20). My advisor had successfully run the model with these code modifications in a previous version of the model (cesm1_0_beta18_chem), and now I am applying her modifications using the cesm1_0_3 version of the model.

When I tried to build the model for my case, the build aborts and directs me to the lnd.bldlog file. At the end of this file I see:

"/blhome/aberg/baseline_year_run/SourceMods/src.clm/clm_cpl_indices.F90", line 298.51: 1515-019 (S) Syntax is incorrect.
"/blhome/aberg/baseline_year_run/SourceMods/src.clm/clm_cpl_indices.F90", line 299.51: 1515-019 (S) Syntax is incorrect.
"/blhome/aberg/baseline_year_run/SourceMods/src.clm/clm_cpl_indices.F90", line 300.51: 1515-019 (S) Syntax is incorrect.
"/blhome/aberg/baseline_year_run/SourceMods/src.clm/clm_cpl_indices.F90", line 301.51: 1515-019 (S) Syntax is incorrect.
** clm_cpl_indices === End of Compilation 1 ===
1501-511 Compilation failed for file clm_cpl_indices.F90.
gmake: *** [clm_cpl_indices.o] Error 1
gmake: *** Waiting for unfinished jobs....
1501-510 Compilation successful for file clm_varpar.F90.
1501-510 Compilation successful for file clm_varorb.F90.
1501-510 Compilation successful for file getdatetime.F90.
1501-510 Compilation successful for file clm_varsur.F90.
1501-510 Compilation successful for file QSatMod.F90.
1501-510 Compilation successful for file TridiagonalMod.F90.


So, the lnd.bldlog says that the syntax errors are in the following lines in the clm_cpl_indices.F90 that I modified, although I could see no syntax errors:

index_12x_Fall_flxvoc6 = mct_avect_indexra(12x,’Fall_flxvoc6’ ,perrwith=’quiet’)
index_12x_Fall_flxvoc7 = mct_avect_indexra(12x,’Fall_flxvoc7’ ,perrwith=’quiet’)
index_12x_Fall_flxvoc8 = mct_avect_indexra(12x,’Fall_flxvoc8’ ,perrwith=’quiet’)
index_12x_Fall_flxvoc9 = mct_avect_indexra(12x,’Fall_flxvoc9’ ,perrwith=’quiet’)

Why would it say there are syntax errors here when there are none?
Here are the changes I made to this specific file (diff between original clm_cpl_indices.F90 and my modified file):

diff ~aberg/cesm1_0_3/models/lnd/clm/src/cpl_share/clm_cpl_indices.F90 ~aberg/baseline_year_run/SourceMods/src.clm/clm_cpl_indices.F90
51,55c51,71
< integer, public ::index_12x_Fall_flxvoc1 ! voc flux size bin 1
< integer, public ::index_12x_Fall_flxvoc2 ! voc flux size bin 2
< integer, public ::index_12x_Fall_flxvoc3 ! voc flux size bin 3
< integer, public ::index_12x_Fall_flxvoc4 ! voc flux size bin 4
< integer, public ::index_12x_Fall_flxvoc5 ! voc flux size bin 5
---
> ! heald: addition of voc fluxes
> integer, public ::index_12x_Fall_flxvoc1 ! voc flux 1
> integer, public ::index_12x_Fall_flxvoc2 ! voc flux 2
> integer, public ::index_12x_Fall_flxvoc3 ! voc flux 3
> integer, public ::index_12x_Fall_flxvoc4 ! voc flux 4
> integer, public ::index_12x_Fall_flxvoc5 ! voc flux 5
> integer, public ::index_12x_Fall_flxvoc6 ! voc flux 6
> integer, public ::index_12x_Fall_flxvoc7 ! voc flux 7
> integer, public ::index_12x_Fall_flxvoc8 ! voc flux 8
> integer, public ::index_12x_Fall_flxvoc9 ! voc flux 9
> ! integer, public ::index_12x_Fall_flxvoc10 ! voc flux 10
> ! integer, public ::index_12x_Fall_flxvoc11 ! voc flux 11
> ! integer, public ::index_12x_Fall_flxvoc12 ! voc flux 12
> ! integer, public ::index_12x_Fall_flxvoc13 ! voc flux 13
> ! integer, public ::index_12x_Fall_flxvoc14 ! voc flux 14
> ! integer, public ::index_12x_Fall_flxvoc15 ! voc flux 15
> ! integer, public ::index_12x_Fall_flxvoc16 ! voc flux 16
> ! integer, public ::index_12x_Fall_flxvoc17 ! voc flux 17
> ! integer, public ::index_12x_Fall_flxvoc18 ! voc flux 18
> ! integer, public ::index_12x_Fall_flxvoc19 ! voc flux 19
> ! integer, public ::index_12x_Fall_flxvoc20 ! voc flux 20
275a292
> ! heald: VOC fluxes
280a298,312
> index_12x_Fall_flxvoc6 = mct_avect_indexra(12x,’Fall_flxvoc6’ ,perrwith=’quiet’)
> index_12x_Fall_flxvoc7 = mct_avect_indexra(12x,’Fall_flxvoc7’ ,perrwith=’quiet’)
> index_12x_Fall_flxvoc8 = mct_avect_indexra(12x,’Fall_flxvoc8’ ,perrwith=’quiet’)
> index_12x_Fall_flxvoc9 = mct_avect_indexra(12x,’Fall_flxvoc9’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc10 = mct_avect_indexra(12x,’Fall_flxvoc10’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc11 = mct_avect_indexra(12x,’Fall_flxvoc11’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc12 = mct_avect_indexra(12x,’Fall_flxvoc12’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc13 = mct_avect_indexra(12x,’Fall_flxvoc13’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc14 = mct_avect_indexra(12x,’Fall_flxvoc14’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc15 = mct_avect_indexra(12x,’Fall_flxvoc15’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc16 = mct_avect_indexra(12x,’Fall_flxvoc16’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc17 = mct_avect_indexra(12x,’Fall_flxvoc17’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc18 = mct_avect_indexra(12x,’Fall_flxvoc18’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc19 = mct_avect_indexra(12x,’Fall_flxvoc19’ ,perrwith=’quiet’)
> ! index_12x_Fall_flxvoc20 = mct_avect_indexra(12x,’Fall_flxvoc20’ ,perrwith=’quiet’)


FYI, here is the list of all files that were modified:
In src.cam:
atm_comp_mct.F90
cam_cpl_indices.F90

In src.clm:
VOCEmissionMod.F90
clm_cpl_indices.F90
clm_varpar.F90
clmtype.F90
clmtypeInitMod.F90
histFldsMod.F90
lnd_comp_esmf.F90
lnd_comp_mct.F90

In src.drv:
mrg_x2a_mct.F90
seq_flds_indices.F90
seq_flds_mod.F90
 

aberg

New Member
I re-built the model removing the src.cam and src.drv files, and removed the clm_cpl_indices.F90 and both lnd_comp files from src.clm (because I don't actually need all of the files to get what I'm looking for) and the build was successful. Still not sure why it said there were syntax errors, though.
 
Top