Megan 2.1 installation error

Dear @tlspero, @lizadams, @cjcoats, @bbaek

I’ve been trying to install and compile MEGAN2.1 source codes but getting errors as shown below:

CONST_MEGAN.EXT:28:35:

Error: Element in REAL(4) array constructor at (1) is INTEGER(4)
emproc.F:652:45:

  &                 NrCha,NrTyp,Canopychar, VNAME3D(s),
                                         1

Error: Symbol ‘canopychar’ at (1) has no IMPLICIT type
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
makefile:34: recipe for target ‘emproc.o’ failed
make: *** [emproc.o] Error 1
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 checkmem.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 growseason.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 mgn2mech.F
mgn2mech.F:57: Error: Can’t open included file ‘PARMS3.EXT’
makefile:29: recipe for target ‘mgn2mech.o’ failed
make: *** [mgn2mech.o] Error 1
mpifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -c -o ioapi2uam.o ioapi2uam.f
ioapi2uam.f:50: Error: Can’t open included file ‘PARMS3.EXT’
makefile:12: recipe for target ‘ioapi2uam.o’ failed
make: *** [ioapi2uam.o] Error 1
Create symbolic links

Kindly assist me on this. Thanks for your usual supports and helps.

Catalyst

Can you kindly also quote the command-line for the compile statement that is generating these errors? It would seem to be missing a number of “-I” directives…

@cjcoats

Below is the complete command line as requested. Thanks as you help me.

Removing *.o
rm: No match.
rm: No match.
Make all programs
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src met2mgn.f
mpifort -c -O2 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src readpar.f
readpar.f:15:15:

   parameter   mx=350,my=410,mz=30
           1

Warning: Legacy Extension: PARAMETER without ‘()’ at (1)
readpar.f:16:15:

   parameter   nlat=61,nlon=121
           1

Warning: Legacy Extension: PARAMETER without ‘()’ at (1)
readpar.f:331:14:

   if(.not. open3(ONAME,fsunkn3, pgname)) then
          1

Error: Type mismatch in argument ‘pgname’ at (1); passed REAL(4) to CHARACTER(1)
makefile:31: recipe for target ‘readpar.o’ failed
make: *** [readpar.o] Error 1
mpifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/TXT2IOAPI/INCLDIR -c -o parsline.o parsline.f
mpifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/TXT2IOAPI/INCLDIR -c -o checkmem.o checkmem.f
mpifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/TXT2IOAPI/INCLDIR -c -o cnvt_efs.o cnvt_efs.F
cnvt_efs.F:51:14:

   INTEGER,         XREF(MXTCOL)
          1

Error: Invalid character in name at (1)
cnvt_efs.F:151:132:

     print*,'CID ',cid,inx,iny,xref
                                                                                                                                1

Error: Function ‘xref’ requires an argument list at (1)
cnvt_efs.F:123:18:

               XREF( S ) = 1
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:124:25:

               VNAME( XREF(S) ) = TRIM( MESG )
                     1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:126:18:

               XREF( S ) = 2
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:127:25:

               VNAME( XREF(S) ) = TRIM( MESG )
                     1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:129:18:

               XREF( S ) = 3
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:130:25:

               VNAME( XREF(S) ) = TRIM( MESG )
                     1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:132:18:

               XREF( S ) = 4
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:133:25:

               VNAME( XREF(S) ) = TRIM( MESG )
                     1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:137:18:

               XREF( S ) = N + 4
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:138:25:

               VNAME( XREF(S) ) = 'EF_'//TRIM( MESG )
                     1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:143:42:

            PRINT*,'READ VNAME:',VNAME(XREF(S))
                                      1

Error: Function ‘xref’ at (1) has no IMPLICIT type
cnvt_efs.F:157:18:

         IBUFF(XREF(S),INX,INY) = STR2REAL( SEGMENT( 3+S ) )  ! convert char to real
              1

Error: Function ‘xref’ at (1) has no IMPLICIT type
makefile:22: recipe for target ‘cnvt_efs.o’ failed
make: *** [cnvt_efs.o] Error 1
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR gamma_etc.f
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR checkmem.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR canopy.f
canopy.f:168:132:

  &              NrTyp)
                                                                                                                                1

Warning: Type mismatch in argument ‘cantype’ at (1); passed REAL(4) to INTEGER(4) [-Wargument-mismatch]
canopy.f:172:18:

   Trate    =  Stability(Canopychar, Cantype, Solar , NrCha, NrTyp)
              1

Warning: Type mismatch in argument ‘cantype’ at (1); passed REAL(4) to INTEGER(4) [-Wargument-mismatch]
canopy.f:179:132:

  &                NrCha, NrTyp, Ws0, TairK0, HumidairPa0)
                                                                                                                                1

Warning: Type mismatch in argument ‘cantype’ at (1); passed REAL(4) to INTEGER(4) [-Wargument-mismatch]
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR solarangle.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR findlai.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR soilnox_fx.F
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR soilnox.F
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR emproc.F
CONST_MEGAN.EXT:28:35:

Error: Element in REAL(4) array constructor at (1) is INTEGER(4)
emproc.F:652:45:

  &                 NrCha,NrTyp,Canopychar, VNAME3D(s),
                                         1

Error: Symbol ‘canopychar’ at (1) has no IMPLICIT type
EACO.EXT:487:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:486:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:485:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:484:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:483:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:482:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:481:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:480:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:479:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:478:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:477:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:476:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:475:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:474:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:473:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:472:30:

Warning: Initialization string at (1) was truncated to fit the variable (16/36)
EACO.EXT:351:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:184:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:119:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
EACO.EXT:37:16:

Warning: Initialization string at (1) was truncated to fit the variable (16/18)
makefile:34: recipe for target ‘emproc.o’ failed
make: *** [emproc.o] Error 1
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 checkmem.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 growseason.f
mpifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 mgn2mech.F
mgn2mech.F:57: Error: Can’t open included file ‘PARMS3.EXT’
makefile:29: recipe for target ‘mgn2mech.o’ failed
make: *** [mgn2mech.o] Error 1
mpifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -c -o ioapi2uam.o ioapi2uam.f
ioapi2uam.f:50: Error: Can’t open included file ‘PARMS3.EXT’
makefile:12: recipe for target ‘ioapi2uam.o’ failed
make: *** [ioapi2uam.o] Error 1
Create symbolic links

First of all, you don’t really need “mpiifort” – which is a “wrapper”
that calls “ifort” while knowing about MPI-parallel libraries, INCLUDE
files, etc. – just “ifort” would have done just as well.

Secondly, this is NOT YOUR FAULT: the code contains numerous violations
of the Fortran language standard, and may happen to compile under (some
versions of) the PGI compiler (though whether the result is correct is
problematic); you can’t expect it to compile with anything else. The
author needs to fix his code. (This is made worse by the fact that the
code does not have the IMPLICIT NONE which is supposed to be found in
all of our regulatory/research environmental codes.)

In particular, here are some examples of problems:

In CONST_MEGAN.EXT , the “1” in the fourth line of the initialization of
Canopychar (what an odd name for a REAL arra4, btw!) needs to be a
“1.0”. That is the reason for the first error you mention. This then
causes the second error you mention, in “emproc.F”

In EACO.EXT, variable MGN_NAM almost certainly needs to be CHARACTER80
(or something like that), instead of CHARACTER
16. That is the reason
for all those warnings you were seeing.

In readpar.F, you have more illegal Fortran. The code should instead
read:
INTEGER, parameter :: mx=350,my=410,mz=30
INTEGER, parameter :: nlat=61,nlon=121
and (that missing IMPLICIT NONE again), variable “pgname” is nowhere
defined; you need something like"
CHARACTER*16, PARAMETER :: pgname = ‘READPAR’

In cnvt_efs.F,
INTEGER, XREF(MXTCOL)
needs to be
INTEGER :: XREF(MXTCOL)
and the rest of the errors in that routine are a result of this one.

In canopy.F, the declaration of “Cantype” is incorrect --the caller
is passing in an INTEGER in its CALL GAMME_CE statement, and it is
being used as an INTEGER. The definition needs to match this.
The code should instead have:
REAL, INTENT(IN) :: LONG,LAT
INTEGER,INTENT(IN) :: Cantype
The Canopychar error is the result of the CONST_MEGAN.EXT issue.

For ioapi2uam.f, the Makefile needs to have (judging by the above)
-I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src

1 Like

Thanks a lot for your comprehensive response. What do you suggest I should do now?

Thanks

Catalyst

Make all the indicated changes, and let us know how it goes…

Dear @cjcoats,

Having made the suggested changes, below is what I got:

Removing *.o
rm: No match.
Make all programs
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src met2mgn.f
make: c: Command not found
makefile:29: recipe for target ‘met2mgn.o’ failed
make: [met2mgn.o] Error 127 (ignored)
c -02 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src readpar.f
make: c: Command not found
makefile:31: recipe for target ‘readpar.o’ failed
make: [readpar.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src readmcip.f
make: c: Command not found
makefile:33: recipe for target ‘readmcip.o’ failed
make: [readmcip.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src micromet.f
make: c: Command not found
makefile:35: recipe for target ‘micromet.o’ failed
make: [micromet.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src caldate.f
make: c: Command not found
makefile:37: recipe for target ‘caldate.o’ failed
make: [caldate.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src lcpgeo.f
make: c: Command not found
makefile:39: recipe for target ‘lcpgeo.o’ failed
make: [lcpgeo.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src interp_lcp.f
make: c: Command not found
makefile:41: recipe for target ‘interp_lcp.o’ failed
make: [interp_lcp.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src procmm5.f
make: c: Command not found
makefile:43: recipe for target ‘procmm5.o’ failed
make: [procmm5.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src readmm5.f
make: c: Command not found
makefile:45: recipe for target ‘readmm5.o’ failed
make: [readmm5.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src xtod.f
make: c: Command not found
makefile:47: recipe for target ‘xtod.o’ failed
make: [xtod.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src vertmap.f
make: c: Command not found
makefile:49: recipe for target ‘vertmap.o’ failed
make: [vertmap.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src juldate.f
make: c: Command not found
makefile:51: recipe for target ‘juldate.o’ failed
make: [juldate.o] Error 127 (ignored)
c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src utmgeo.f
make: c: Command not found
makefile:53: recipe for target ‘utmgeo.o’ failed
make: [utmgeo.o] Error 127 (ignored)
met2mgn.o readpar.o readmcip.o micromet.o caldate.o lcpgeo.o interp_lcp.o procmm5.o readmm5.o xtod.o vertmap.o juldate.o utmgeo.o -L/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/Linux2_x86_64gfort -lioapi -L/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -o met2mgn
make: met2mgn.o: Command not found
makefile:27: recipe for target ‘met2mgn’ failed
make: *** [met2mgn] Error 127
ifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/TXT2IOAPI/INCLDIR -c -o parsline.o parsline.f
make: ifort: Command not found
makefile:19: recipe for target ‘parsline.o’ failed
make: *** [parsline.o] Error 127
ifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/MEGANv2.10/src/EMPROC/INCLDIR gamma_etc.f
make: ifort: Command not found
makefile:32: recipe for target ‘gamma_etc.o’ failed
make: *** [gamma_etc.o] Error 127
ifort -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 checkmem.f
make: ifort: Command not found
makefile:27: recipe for target ‘checkmem.o’ failed
make: *** [checkmem.o] Error 127
ifort -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -c -o ioapi2uam.o ioapi2uam.f
make: ifort: Command not found
makefile:12: recipe for target ‘ioapi2uam.o’ failed
make: *** [ioapi2uam.o] Error 127
Create symbolic links

What do you suggest I do further? Also, can you please recommend any other model to process biogenic emissions for CMAQ for me?

Thanks and regards.

Those “c -ffixed-form…” indicate that something is screwed up in your Makefile’s deflinition of compilers. What is *make-*variable FC?

And the met2mgn.o readpar.o ... indicate that ssomething is wrong with the linker-definition, too,

@cjcoats @tlspero @bbaek @lizadams @rpedruzzi

I run megan_bio_emiss model but got this error:

NetCDF: Numeric conversion not representable
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP netcdf error

megan_bio_emiss.log (4.6 KB)

Attached is my megan_bio_emiss.log

Kindly help me out, please.

Thanks a lot.

Catalyst

Dear @cjcoats @wong.david-c @lizadams,

I am still having problems in getting this model compiled. Below is part of the error I got recently and attached is the full logfile of the error:

EFS_PFT.EXT:64:41:

  &   -1.0,    -1.0,    -1.0,    -1.0,
                                     1

Error: Element in REAL(4) array constructor at (1) is INTEGER(4)
SPC_SAPRC99.EXT:29:60:

   DATA  MECH_SPC_SAPRC99(  1), MECH_MWT_SAPRC99(  1) / 'ISOPRENE        ', 68.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:30:60:

   DATA  MECH_SPC_SAPRC99(  2), MECH_MWT_SAPRC99(  2) / 'TRP1            ', 136.00  /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:31:60:

   DATA  MECH_SPC_SAPRC99(  3), MECH_MWT_SAPRC99(  3) / 'MEOH            ', 32.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:32:60:

   DATA  MECH_SPC_SAPRC99(  4), MECH_MWT_SAPRC99(  4) / 'ACET            ', 58.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:33:60:

   DATA  MECH_SPC_SAPRC99(  5), MECH_MWT_SAPRC99(  5) / 'CH4             ', 16.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:34:60:

   DATA  MECH_SPC_SAPRC99(  6), MECH_MWT_SAPRC99(  6) / 'NO              ', 30.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:35:60:

   DATA  MECH_SPC_SAPRC99(  7), MECH_MWT_SAPRC99(  7) / 'NO2             ', 44.01   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:36:60:

   DATA  MECH_SPC_SAPRC99(  8), MECH_MWT_SAPRC99(  8) / 'NH3             ', 17.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:37:60:

   DATA  MECH_SPC_SAPRC99(  9), MECH_MWT_SAPRC99(  9) / 'CCHO            ', 44.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:38:60:

   DATA  MECH_SPC_SAPRC99( 10), MECH_MWT_SAPRC99( 10) / 'HCOOH           ', 46.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:39:60:

   DATA  MECH_SPC_SAPRC99( 11), MECH_MWT_SAPRC99( 11) / 'HCHO            ', 30.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:40:60:

   DATA  MECH_SPC_SAPRC99( 12), MECH_MWT_SAPRC99( 12) / 'CCO_OH          ', 60.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:41:60:

   DATA  MECH_SPC_SAPRC99( 13), MECH_MWT_SAPRC99( 13) / 'BALD            ', 106.00  /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:42:60:

   DATA  MECH_SPC_SAPRC99( 14), MECH_MWT_SAPRC99( 14) / 'MEK             ', 72.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:43:60:

   DATA  MECH_SPC_SAPRC99( 15), MECH_MWT_SAPRC99( 15) / 'RCO_OH          ', 74.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:44:60:

   DATA  MECH_SPC_SAPRC99( 16), MECH_MWT_SAPRC99( 16) / 'CO              ', 28.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:45:60:

   DATA  MECH_SPC_SAPRC99( 17), MECH_MWT_SAPRC99( 17) / 'ETHENE          ', 28.00   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:46:60:

   DATA  MECH_SPC_SAPRC99( 18), MECH_MWT_SAPRC99( 18) / 'ALK1            ', 30.10   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:47:60:

   DATA  MECH_SPC_SAPRC99( 19), MECH_MWT_SAPRC99( 19) / 'ALK2            ', 36.70   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:48:60:

   DATA  MECH_SPC_SAPRC99( 20), MECH_MWT_SAPRC99( 20) / 'ALK3            ', 58.60   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:49:60:

   DATA  MECH_SPC_SAPRC99( 21), MECH_MWT_SAPRC99( 21) / 'ALK4            ', 77.60   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:50:60:

   DATA  MECH_SPC_SAPRC99( 22), MECH_MWT_SAPRC99( 22) / 'ALK5            ', 118.90  /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:51:60:

   DATA  MECH_SPC_SAPRC99( 23), MECH_MWT_SAPRC99( 23) / 'ARO1            ', 98.60   /
                                                        1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99.EXT:52:60:

   DATA  MECH_SPC_SAPRC99( 24), MECH_MWT_SAPRC99( 24) / 'ARO2            ', 118.70  /
                                                        1

SPC_SAPRC99Q.EXT:32:64:

   DATA  MECH_SPC_SAPRC99_Q(  6), MECH_MWT_SAPRC99_Q(  6) / 'XC              ',  12.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:33:64:

   DATA  MECH_SPC_SAPRC99_Q(  7), MECH_MWT_SAPRC99_Q(  7) / 'OLE1            ',  72.30  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:34:64:

   DATA  MECH_SPC_SAPRC99_Q(  8), MECH_MWT_SAPRC99_Q(  8) / 'MEOH            ',  32.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:35:64:

   DATA  MECH_SPC_SAPRC99_Q(  9), MECH_MWT_SAPRC99_Q(  9) / 'ACET            ',  58.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:36:64:

   DATA  MECH_SPC_SAPRC99_Q( 10), MECH_MWT_SAPRC99_Q( 10) / 'CH4             ',  16.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:37:64:

   DATA  MECH_SPC_SAPRC99_Q( 11), MECH_MWT_SAPRC99_Q( 11) / 'NH3             ',  17.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:38:64:

   DATA  MECH_SPC_SAPRC99_Q( 12), MECH_MWT_SAPRC99_Q( 12) / 'NO              ',  30.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:39:64:

   DATA  MECH_SPC_SAPRC99_Q( 13), MECH_MWT_SAPRC99_Q( 13) / 'CCHO            ',  44.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:40:64:

   DATA  MECH_SPC_SAPRC99_Q( 14), MECH_MWT_SAPRC99_Q( 14) / 'ALK3            ',  58.60  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:41:64:

   DATA  MECH_SPC_SAPRC99_Q( 15), MECH_MWT_SAPRC99_Q( 15) / 'HCOOH           ',  46.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:42:64:

   DATA  MECH_SPC_SAPRC99_Q( 16), MECH_MWT_SAPRC99_Q( 16) / 'HCHO            ',  30.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:43:64:

   DATA  MECH_SPC_SAPRC99_Q( 17), MECH_MWT_SAPRC99_Q( 17) / 'CCO_OH          ',  75.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:44:64:

   DATA  MECH_SPC_SAPRC99_Q( 18), MECH_MWT_SAPRC99_Q( 18) / 'BALD            ', 106.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:45:64:

   DATA  MECH_SPC_SAPRC99_Q( 19), MECH_MWT_SAPRC99_Q( 19) / 'MEK             ',  72.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:46:64:

   DATA  MECH_SPC_SAPRC99_Q( 20), MECH_MWT_SAPRC99_Q( 20) / 'RCHO            ',  58.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:47:64:

   DATA  MECH_SPC_SAPRC99_Q( 21), MECH_MWT_SAPRC99_Q( 21) / 'ALK4            ',  77.60  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:48:64:

   DATA  MECH_SPC_SAPRC99_Q( 22), MECH_MWT_SAPRC99_Q( 22) / 'ARO1            ',  98.60  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:49:64:

   DATA  MECH_SPC_SAPRC99_Q( 23), MECH_MWT_SAPRC99_Q( 23) / 'BACL            ',  86.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:50:64:

   DATA  MECH_SPC_SAPRC99_Q( 24), MECH_MWT_SAPRC99_Q( 24) / 'CO              ',  28.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:51:64:

   DATA  MECH_SPC_SAPRC99_Q( 25), MECH_MWT_SAPRC99_Q( 25) / 'ALK1            ',  30.10  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:52:64:

   DATA  MECH_SPC_SAPRC99_Q( 26), MECH_MWT_SAPRC99_Q( 26) / 'ETHENE          ',  92.00  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC99Q.EXT:53:64:

   DATA  MECH_SPC_SAPRC99_Q( 27), MECH_MWT_SAPRC99_Q( 27) / 'ALK2            ',  36.70  /
                                                            1

Error: Unterminated character constant beginning at (1)
SPC_CB05.EXT:26:72:

   DATA  MECH_SPC_CB05(  1), MECH_MWT_CB05(  1) / 'ISOP            ',  80.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:27:72:

   DATA  MECH_SPC_CB05(  2), MECH_MWT_CB05(  2) / 'TERP            ', 160.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:28:72:

   DATA  MECH_SPC_CB05(  3), MECH_MWT_CB05(  3) / 'PAR             ',  16.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:29:72:

   DATA  MECH_SPC_CB05(  4), MECH_MWT_CB05(  4) / 'XYL             ', 128.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:30:72:

   DATA  MECH_SPC_CB05(  5), MECH_MWT_CB05(  5) / 'OLE             ',  32.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:31:72:

   DATA  MECH_SPC_CB05(  6), MECH_MWT_CB05(  6) / 'NR              ',  16.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:32:72:

   DATA  MECH_SPC_CB05(  7), MECH_MWT_CB05(  7) / 'MEOH            ',  16.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:33:72:

   DATA  MECH_SPC_CB05(  8), MECH_MWT_CB05(  8) / 'CH4             ',  16.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:34:72:

   DATA  MECH_SPC_CB05(  9), MECH_MWT_CB05(  9) / 'NH3             ',  17.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:35:72:

   DATA  MECH_SPC_CB05( 10), MECH_MWT_CB05( 10) / 'NO              ',  46.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:36:72:

   DATA  MECH_SPC_CB05( 11), MECH_MWT_CB05( 11) / 'ALD2            ',  32.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:37:72:

   DATA  MECH_SPC_CB05( 12), MECH_MWT_CB05( 12) / 'ETOH            ',  32.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:38:72:

   DATA  MECH_SPC_CB05( 13), MECH_MWT_CB05( 13) / 'FORM            ',  16.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:39:72:

   DATA  MECH_SPC_CB05( 14), MECH_MWT_CB05( 14) / 'ALDX            ',  32.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:40:72:

   DATA  MECH_SPC_CB05( 15), MECH_MWT_CB05( 15) / 'TOL             ', 112.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:41:72:

   DATA  MECH_SPC_CB05( 16), MECH_MWT_CB05( 16) / 'IOLE            ',  64.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:42:72:

   DATA  MECH_SPC_CB05( 17), MECH_MWT_CB05( 17) / 'CO              ',  28.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:43:72:

   DATA  MECH_SPC_CB05( 18), MECH_MWT_CB05( 18) / 'ETHA            ',  32.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB05.EXT:44:72:

   DATA  MECH_SPC_CB05( 19), MECH_MWT_CB05( 19) / 'ETH             ',  28.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:27:70:

   DATA  MECH_SPC_CB6(  1), MECH_MWT_CB6(  1) / 'ISOP            ',  80.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:28:72:

   DATA  MECH_SPC_CB6(  2), MECH_MWT_CB6(  2) / 'TERP            ', 160.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:29:70:

   DATA  MECH_SPC_CB6(  3), MECH_MWT_CB6(  3) / 'PAR             ',  16.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:30:72:

   DATA  MECH_SPC_CB6(  4), MECH_MWT_CB6(  4) / 'XYL             ', 128.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:31:70:

   DATA  MECH_SPC_CB6(  5), MECH_MWT_CB6(  5) / 'OLE             ',  32.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:32:70:

   DATA  MECH_SPC_CB6(  6), MECH_MWT_CB6(  6) / 'NR              ',  16.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:33:70:

   DATA  MECH_SPC_CB6(  7), MECH_MWT_CB6(  7) / 'MEOH            ',  16.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:34:70:

   DATA  MECH_SPC_CB6(  8), MECH_MWT_CB6(  8) / 'CH4             ',  16.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:35:70:

   DATA  MECH_SPC_CB6(  9), MECH_MWT_CB6(  9) / 'NH3             ',  17.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:36:70:

   DATA  MECH_SPC_CB6( 10), MECH_MWT_CB6( 10) / 'NO              ',  46.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:37:70:

   DATA  MECH_SPC_CB6( 11), MECH_MWT_CB6( 11) / 'ALD2            ',  32.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:38:70:

   DATA  MECH_SPC_CB6( 12), MECH_MWT_CB6( 12) / 'ETOH            ',  32.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:39:70:

   DATA  MECH_SPC_CB6( 13), MECH_MWT_CB6( 13) / 'FORM            ',  16.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:40:70:

   DATA  MECH_SPC_CB6( 14), MECH_MWT_CB6( 14) / 'ALDX            ',  32.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:41:72:

   DATA  MECH_SPC_CB6( 15), MECH_MWT_CB6( 15) / 'TOL             ', 112.00  /
                                                                    1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:42:70:

   DATA  MECH_SPC_CB6( 16), MECH_MWT_CB6( 16) / 'IOLE            ',  64.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:43:70:

   DATA  MECH_SPC_CB6( 17), MECH_MWT_CB6( 17) / 'CO              ',  28.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:44:70:

   DATA  MECH_SPC_CB6( 18), MECH_MWT_CB6( 18) / 'ETHA            ',  32.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:45:70:

   DATA  MECH_SPC_CB6( 19), MECH_MWT_CB6( 19) / 'ETH             ',  28.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:46:70:

   DATA  MECH_SPC_CB6( 20), MECH_MWT_CB6( 20) / 'ETHY            ',  26.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:47:70:

   DATA  MECH_SPC_CB6( 21), MECH_MWT_CB6( 21) / 'PRPA            ',  44.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:48:70:

   DATA  MECH_SPC_CB6( 22), MECH_MWT_CB6( 22) / 'BENZ            ',  78.00  /
                                                                  1

Error: Syntax error in DATA statement at (1)
SPC_CB6.EXT:49:70:

   DATA  MECH_SPC_CB6( 23), MECH_MWT_CB6( 23) / 'ACET            ',  58.00  /
                                                                  1

SPC_SAPRC07TQ.EXT:30:66:

   DATA  MECH_SPC_SAPRC07T_Q(  2), MECH_MWT_SAPRC07T_Q(  2) / 'TERP            ', 136.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:31:66:

   DATA  MECH_SPC_SAPRC07T_Q(  3), MECH_MWT_SAPRC07T_Q(  3) / 'OLE2            ',  75.80  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:32:66:

   DATA  MECH_SPC_SAPRC07T_Q(  4), MECH_MWT_SAPRC07T_Q(  4) / 'ARO2            ', 118.70  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:33:66:

   DATA  MECH_SPC_SAPRC07T_Q(  5), MECH_MWT_SAPRC07T_Q(  5) / 'ALK5            ', 118.90  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:34:66:

   DATA  MECH_SPC_SAPRC07T_Q(  6), MECH_MWT_SAPRC07T_Q(  6) / 'SESQ            ', 204.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:35:66:

   DATA  MECH_SPC_SAPRC07T_Q(  7), MECH_MWT_SAPRC07T_Q(  7) / 'OLE1            ',  72.30  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:36:66:

   DATA  MECH_SPC_SAPRC07T_Q(  8), MECH_MWT_SAPRC07T_Q(  8) / 'MEOH            ',  32.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:37:66:

   DATA  MECH_SPC_SAPRC07T_Q(  9), MECH_MWT_SAPRC07T_Q(  9) / 'ACET            ',  58.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:38:66:

   DATA  MECH_SPC_SAPRC07T_Q( 10), MECH_MWT_SAPRC07T_Q( 10) / 'CH4             ',  16.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:39:66:

   DATA  MECH_SPC_SAPRC07T_Q( 11), MECH_MWT_SAPRC07T_Q( 11) / 'NH3             ',  17.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:40:66:

   DATA  MECH_SPC_SAPRC07T_Q( 12), MECH_MWT_SAPRC07T_Q( 12) / 'NO              ',  30.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:41:66:

   DATA  MECH_SPC_SAPRC07T_Q( 13), MECH_MWT_SAPRC07T_Q( 13) / 'CCHO            ',  44.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:42:66:

   DATA  MECH_SPC_SAPRC07T_Q( 14), MECH_MWT_SAPRC07T_Q( 14) / 'ALK3            ',  58.60  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:43:66:

   DATA  MECH_SPC_SAPRC07T_Q( 15), MECH_MWT_SAPRC07T_Q( 15) / 'FACD            ',  46.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:44:66:

   DATA  MECH_SPC_SAPRC07T_Q( 16), MECH_MWT_SAPRC07T_Q( 16) / 'HCHO            ',  30.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:45:66:

   DATA  MECH_SPC_SAPRC07T_Q( 17), MECH_MWT_SAPRC07T_Q( 17) / 'AACD            ',  60.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:46:66:

   DATA  MECH_SPC_SAPRC07T_Q( 18), MECH_MWT_SAPRC07T_Q( 18) / 'BALD            ', 106.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:47:66:

   DATA  MECH_SPC_SAPRC07T_Q( 19), MECH_MWT_SAPRC07T_Q( 19) / 'MEK             ',  72.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:48:66:

   DATA  MECH_SPC_SAPRC07T_Q( 20), MECH_MWT_SAPRC07T_Q( 20) / 'RCHO            ',  58.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:49:66:

   DATA  MECH_SPC_SAPRC07T_Q( 21), MECH_MWT_SAPRC07T_Q( 21) / 'ALK4            ',  77.60  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:50:66:

   DATA  MECH_SPC_SAPRC07T_Q( 22), MECH_MWT_SAPRC07T_Q( 22) / 'ARO1            ',  98.60  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:51:66:

   DATA  MECH_SPC_SAPRC07T_Q( 23), MECH_MWT_SAPRC07T_Q( 23) / 'BACL            ',  86.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:52:66:

   DATA  MECH_SPC_SAPRC07T_Q( 24), MECH_MWT_SAPRC07T_Q( 24) / 'CO              ',  28.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:53:66:

   DATA  MECH_SPC_SAPRC07T_Q( 25), MECH_MWT_SAPRC07T_Q( 25) / 'ALK1            ',  30.10  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:54:66:

   DATA  MECH_SPC_SAPRC07T_Q( 26), MECH_MWT_SAPRC07T_Q( 26) / 'ETHE            ',  28.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:55:66:

   DATA  MECH_SPC_SAPRC07T_Q( 27), MECH_MWT_SAPRC07T_Q( 27) / 'ALK2            ',  36.70  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:56:66:

   DATA  MECH_SPC_SAPRC07T_Q( 28), MECH_MWT_SAPRC07T_Q( 28) / 'PRPE            ',  42.10  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:57:66:

   DATA  MECH_SPC_SAPRC07T_Q( 29), MECH_MWT_SAPRC07T_Q( 29) / 'APIN            ', 136.00  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:58:66:

   DATA  MECH_SPC_SAPRC07T_Q( 30), MECH_MWT_SAPRC07T_Q( 30) / 'TOLU            ',  92.10  /
                                                              1

Error: Unterminated character constant beginning at (1)
SPC_SAPRC07TQ.EXT:59:66:

   DATA  MECH_SPC_SAPRC07T_Q( 31), MECH_MWT_SAPRC07T_Q( 31) / 'ETOH            ',  46.10  /
                                                              1

Error: Unterminated character constant beginning at (1)
mgn2mech.F:596:16:

        IF ( ef_all(1,nmpmg) .LT. 0.0) THEN
            1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:616:35:

            TMP3 = TMP3 + ef_all(I,nmpmg) * effs_all(I,nmpsp)
                               1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:626:15:

        IF (ef_all(1,INO) .LT. 0.0) THEN
           1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:639:17:

          IF (ef_all(1,INO) .LT. 0.0) THEN
             1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:649:49:

              G2CRatio = ef_all(14,INO)/ef_all(I,INO)
                                             1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:665:37:

              TMO3 = TMO3 + ef_all(I,INO)*effs_all(I,nmpsp)
                                 1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:669:37:

              TMO3 = TMO3 + ef_all(14,INO) * effs_all(I,nmpsp)
                                 1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:681:17:

          IF (ef_all(1,INO) .LT. 0.0) THEN
             1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:708:37:

              TMO3 = TMO3 + ef_all(I,INO)*effs_all(I,nmpsp)*
                                 1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type
mgn2mech.F:712:37:

              TMO3 = TMO3 + ef_all(I,INO)*effs_all(I,nmpsp)*
                                 1

Error: Function ‘ef_all’ at (1) has no IMPLICIT type

Thanks in anticipation for your help.logfile.txt (39.3 KB)

This code is not following the Fortran Standard for source format, instead using a non-Standard “fixed-132” source format (as does CMAQ). You will need to use a compiler-specific additional compile-flag in order to get the compiler to recognize this format correctly: see make-variable E132 in your ioapi/Makeinclude.$BIN

See also https://cjcoats.github.io/ioapi/AVAIL.html#cmaq

See also https://sourceforge.net/projects/findent/ for an excellent tool findent for transforming this and other codes into Standard-conforming free-format Fortran.

Dear @cjcoats,

Thanks for the prompt response. I have just installed the findent but I don’t know how to use it for this purpose. Can you please guide me, sir?

Thanks in anticipation

What I was suggesting for you is that you use the value of E132 as one of the compile-flags for MEGAN.

I was suggesting to the authors of MEGAN that they use this excellent tool findent to turn their code into legal Fortran.

Dear @cjcoats,

Ok sir. Here is the value of my E132:

E132 = -ffixed-line-length-132

But I have used it as shown below and still got the same error:

#SHELL=/bin/sh
#FC= gfortran
FC= gfortran
#FC= ifort
#FC= mpifort
#FFLAGS= -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32
PROGRAM = mgn2mech
LIBS = -L/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/Linux2_x86_64gfort -lioapi
-L/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf
INCLUDE = -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src
-I/home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/include
-I$(CURDIR)/INCLDIR
#INC = -I/home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src

#FFLAGS= -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32
#FFLAGS= -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32
#FFLAGS= -ffixed-line-length-132
#FFLAGS= -132 -check all -traceback $(INCLUDE)
FFLAGS= -ffree-line-length-none
#FFLAGS= -ffixed-line-length-none
#FFLAGS= -02
#LINK_FLAGS = -fopenmp

OBJS =
checkmem.o
growseason.o
$(PROGRAM).o

Dear @cjcoats, @wong.david-c, @lizadams, @bbaek, @dazhong.yin

I encountered this error while compiling a program:

GC_SPC.EXT:20:72:

         DATA          GC_SPC(  1), GC_MOLWT(  1) / 'NO2             ', 46.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:21:72:

         DATA          GC_SPC(  2), GC_MOLWT(  2) / 'NO              ', 30.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:22:72:

         DATA          GC_SPC(  3), GC_MOLWT(  3) / 'O3P             ', 16.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:23:72:

         DATA          GC_SPC(  4), GC_MOLWT(  4) / 'O3              ', 48.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:24:72:

         DATA          GC_SPC(  5), GC_MOLWT(  5) / 'NO3             ', 62.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:25:72:

         DATA          GC_SPC(  6), GC_MOLWT(  6) / 'N2O5            ', 108.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:26:72:

         DATA          GC_SPC(  7), GC_MOLWT(  7) / 'HNO3            ', 63.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:27:72:

         DATA          GC_SPC(  8), GC_MOLWT(  8) / 'O1D2            ', 16.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:28:72:

         DATA          GC_SPC(  9), GC_MOLWT(  9) / 'HO              ', 17.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:29:72:

         DATA          GC_SPC( 10), GC_MOLWT( 10) / 'HONO            ', 47.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:30:72:

         DATA          GC_SPC( 11), GC_MOLWT( 11) / 'HO2             ', 33.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:31:72:

         DATA          GC_SPC( 12), GC_MOLWT( 12) / 'CO              ', 28.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:32:72:

         DATA          GC_SPC( 13), GC_MOLWT( 13) / 'HNO4            ', 79.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:33:72:

         DATA          GC_SPC( 14), GC_MOLWT( 14) / 'HO2H            ', 34.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:34:72:

         DATA          GC_SPC( 15), GC_MOLWT( 15) / 'SO2             ', 64.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:35:72:

         DATA          GC_SPC( 16), GC_MOLWT( 16) / 'SULF            ', 98.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:36:72:

         DATA          GC_SPC( 17), GC_MOLWT( 17) / 'SULRXN          ', 98.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:37:72:

         DATA          GC_SPC( 18), GC_MOLWT( 18) / 'C_O2            ', 47.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:38:72:

         DATA          GC_SPC( 19), GC_MOLWT( 19) / 'HCHO            ', 30.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:39:72:

         DATA          GC_SPC( 20), GC_MOLWT( 20) / 'COOH            ', 48.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:40:72:

         DATA          GC_SPC( 21), GC_MOLWT( 21) / 'MEOH            ', 32.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:41:72:

         DATA          GC_SPC( 22), GC_MOLWT( 22) / 'RO2_R           ', 1.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:42:72:

         DATA          GC_SPC( 23), GC_MOLWT( 23) / 'ROOH            ', 62.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:43:72:

         DATA          GC_SPC( 24), GC_MOLWT( 24) / 'R2O2            ', 1.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:44:72:

         DATA          GC_SPC( 25), GC_MOLWT( 25) / 'RO2_N           ', 1.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:45:72:

         DATA          GC_SPC( 26), GC_MOLWT( 26) / 'RNO3            ', 133.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:46:72:

         DATA          GC_SPC( 27), GC_MOLWT( 27) / 'MEK             ', 72.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:47:72:

         DATA          GC_SPC( 28), GC_MOLWT( 28) / 'PROD2           ', 100.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:48:72:

         DATA          GC_SPC( 29), GC_MOLWT( 29) / 'CCO_O2          ', 75.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:49:72:

         DATA          GC_SPC( 30), GC_MOLWT( 30) / 'PAN             ', 121.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:50:72:

         DATA          GC_SPC( 31), GC_MOLWT( 31) / 'CCO_OOH         ', 76.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:51:72:

         DATA          GC_SPC( 32), GC_MOLWT( 32) / 'CCO_OH          ', 60.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:52:72:

         DATA          GC_SPC( 33), GC_MOLWT( 33) / 'RCO_O2          ', 89.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:53:72:

         DATA          GC_SPC( 34), GC_MOLWT( 34) / 'PAN2            ', 135.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:54:72:

         DATA          GC_SPC( 35), GC_MOLWT( 35) / 'CCHO            ', 44.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:55:72:

         DATA          GC_SPC( 36), GC_MOLWT( 36) / 'RCO_OOH         ', 90.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:56:72:

         DATA          GC_SPC( 37), GC_MOLWT( 37) / 'RCO_OH          ', 74.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:57:72:

         DATA          GC_SPC( 38), GC_MOLWT( 38) / 'BZCO_O2         ', 137.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:58:72:

         DATA          GC_SPC( 39), GC_MOLWT( 39) / 'PBZN            ', 183.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:59:72:

         DATA          GC_SPC( 40), GC_MOLWT( 40) / 'BZ_O            ', 93.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:60:72:

         DATA          GC_SPC( 41), GC_MOLWT( 41) / 'MA_RCO3         ', 101.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:61:72:

         DATA          GC_SPC( 42), GC_MOLWT( 42) / 'MA_PAN          ', 147.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:62:72:

         DATA          GC_SPC( 43), GC_MOLWT( 43) / 'TBU_O           ', 73.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:63:72:

         DATA          GC_SPC( 44), GC_MOLWT( 44) / 'ACET            ', 58.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:64:72:

         DATA          GC_SPC( 45), GC_MOLWT( 45) / 'NPHE            ', 139.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:65:72:

         DATA          GC_SPC( 46), GC_MOLWT( 46) / 'PHEN            ', 94.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:66:72:

         DATA          GC_SPC( 47), GC_MOLWT( 47) / 'BZNO2_O         ', 139.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:67:72:

         DATA          GC_SPC( 48), GC_MOLWT( 48) / 'HOCOO           ', 63.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:68:72:

         DATA          GC_SPC( 49), GC_MOLWT( 49) / 'HCOOH           ', 46.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:69:72:

         DATA          GC_SPC( 50), GC_MOLWT( 50) / 'RCHO            ', 58.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:70:72:

         DATA          GC_SPC( 51), GC_MOLWT( 51) / 'GLY             ', 58.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:71:72:

         DATA          GC_SPC( 52), GC_MOLWT( 52) / 'MGLY            ', 72.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:72:72:

         DATA          GC_SPC( 53), GC_MOLWT( 53) / 'BACL            ', 86.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:73:72:

         DATA          GC_SPC( 54), GC_MOLWT( 54) / 'CRES            ', 108.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:74:72:

         DATA          GC_SPC( 55), GC_MOLWT( 55) / 'BALD            ', 106.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:75:72:

         DATA          GC_SPC( 56), GC_MOLWT( 56) / 'MACR            ', 70.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:76:72:

         DATA          GC_SPC( 57), GC_MOLWT( 57) / 'MVK             ', 70.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:77:72:

         DATA          GC_SPC( 58), GC_MOLWT( 58) / 'IPROD           ', 70.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:78:72:

         DATA          GC_SPC( 59), GC_MOLWT( 59) / 'DCB1            ', 58.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:79:72:

         DATA          GC_SPC( 60), GC_MOLWT( 60) / 'DCB2            ', 72.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:80:72:

         DATA          GC_SPC( 61), GC_MOLWT( 61) / 'DCB3            ', 72.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:81:72:

         DATA          GC_SPC( 62), GC_MOLWT( 62) / 'ETHENE          ', 28.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:82:72:

         DATA          GC_SPC( 63), GC_MOLWT( 63) / 'ISOPRENE        ', 68.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:83:72:

         DATA          GC_SPC( 64), GC_MOLWT( 64) / 'ISOPRXN         ', 68.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:84:72:

         DATA          GC_SPC( 65), GC_MOLWT( 65) / 'TRP1            ', 136.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:85:72:

         DATA          GC_SPC( 66), GC_MOLWT( 66) / 'TRPRXN          ', 136.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:86:72:

         DATA          GC_SPC( 67), GC_MOLWT( 67) / 'ALK1            ', 30.1 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:87:72:

         DATA          GC_SPC( 68), GC_MOLWT( 68) / 'ALK2            ', 36.7 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:88:72:

         DATA          GC_SPC( 69), GC_MOLWT( 69) / 'ALK3            ', 58.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:89:72:

         DATA          GC_SPC( 70), GC_MOLWT( 70) / 'ALK4            ', 77.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:90:72:

         DATA          GC_SPC( 71), GC_MOLWT( 71) / 'ALK5            ', 118.9 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:91:72:

         DATA          GC_SPC( 72), GC_MOLWT( 72) / 'ALK5RXN         ', 118.9 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:92:72:

         DATA          GC_SPC( 73), GC_MOLWT( 73) / 'ARO1            ', 98.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:93:72:

         DATA          GC_SPC( 74), GC_MOLWT( 74) / 'ARO1RO2         ', 147.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:94:72:

         DATA          GC_SPC( 75), GC_MOLWT( 75) / 'TOLNRXN         ', 147.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:95:72:

         DATA          GC_SPC( 76), GC_MOLWT( 76) / 'TOLHRXN         ', 147.6 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:96:72:

         DATA          GC_SPC( 77), GC_MOLWT( 77) / 'ARO2            ', 118.7 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:97:72:

         DATA          GC_SPC( 78), GC_MOLWT( 78) / 'ARO2RO2         ', 167.7 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:98:72:

         DATA          GC_SPC( 79), GC_MOLWT( 79) / 'XYLNRXN         ', 167.7 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:99:72:

         DATA          GC_SPC( 80), GC_MOLWT( 80) / 'XYLHRXN         ', 167.7 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:100:72:

         DATA          GC_SPC( 81), GC_MOLWT( 81) / 'BENZENE         ', 78.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:101:72:

         DATA          GC_SPC( 82), GC_MOLWT( 82) / 'BENZRO2         ', 127.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:102:72:

         DATA          GC_SPC( 83), GC_MOLWT( 83) / 'BNZNRXN         ', 127.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:103:72:

         DATA          GC_SPC( 84), GC_MOLWT( 84) / 'BNZHRXN         ', 127.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:104:72:

         DATA          GC_SPC( 85), GC_MOLWT( 85) / 'OLE1            ', 72.3 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:105:72:

         DATA          GC_SPC( 86), GC_MOLWT( 86) / 'OLE2            ', 75.8 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:106:72:

         DATA          GC_SPC( 87), GC_MOLWT( 87) / 'SESQ            ', 204.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)
GC_SPC.EXT:107:72:

         DATA          GC_SPC( 88), GC_MOLWT( 88) / 'SESQRXN         ', 204.0 /
                                                                        1
Error: Syntax error in DATA statement at (1)

Your help would be highly appreciated. I am using gfortran compiler.

Thanks in anticipation.

Catalyst

This looks like the authors are using a non-Standard “fixed-132” source format. Look for make-variable E132 in your compiler’s ioapi/Makeinclude.$BIN and add that to your compile-flags.

WHY can’t code-authors stop using 30-years-obsolete “fixed” Fortran source-formats and start using the “free” format, that is not subject to this kind of problem. If they wish to convert the obsolete formats to the current one, a good tool is findent, which you can get from here: https://sourceforge.net/projects/findent/

…or else why can’t they get their Makefiles right? There are certainly enough examples that do get it right.

@cjcoats,

Thanks for your response. I used this flags but still got the same error:

FC_FLAGS = {E132} (ARCHFLAGS) (FOPTFLAGS) (ARCHFLAGS) $(OMPFLAGS)

What else should I do to fix it, please?

Catalyst

Looking at a copy of GC_SPC.EXT I have: it unnecessarily runs past column 72: the DATA lines all have DATA followed by 10 blanks, of which 9 are unnecessary. Use your favorite method to replace that 14-character sequence by the 5-character sequence "DATA " – your favorite text editor will do it, or you can use command-line utility sed:
cat GC_SPC.EXT | sed -e ‘s/DATA /DATA /’ > GC_SPC.EXT.good
mv -f GC_SPC.EXT.good GC_SPC.EXT
For my GC_SPC.EXT, that yields a file that goes only to column 69.

1 Like

@cjcoats,

Your suggestion has worked perfectly.

Thanks so much and best regards sir,

Catalyst