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

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