Page 1 of 1

MEGAN pre-processor installing and compillng

PostPosted: Wed Apr 14, 2021 4:28 am
by maosier
Hello,

I got a problem when compiling MEGAN preprocessor. I have given the environmental variables for the fortran compiler and netcdf libraries as: export FC=mpif90 export NETCDF_DIR=/data/home/cuimengshi/apps/netcdf-c-4.7.4. However, when using the command: ./make_util megan_bio_emiss, the executable file megan_bio_emiss was not generated and the error was as following:
=============================================================================
Using mpif90 fortran compiler
=============================================================================
=============================================================================
netcdf top level directory = /data/home/cuimengshi/apps/netcdf-c-4.7.4
=============================================================================
mpif90 -g -c -I/data/home/cuimengshi/apps/netcdf-c-4.7.4/include misc_definitions_module.f90
misc_definitions_module.f90:19.40:

integer, parameter :: OUTSIDE_DOMAIN=1E8, NOT_PROCESSED=1E9, INVALID=1E9
1
Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1)
misc_definitions_module.f90:19.59:

integer, parameter :: OUTSIDE_DOMAIN=1E8, NOT_PROCESSED=1E9, INVALID=1E9
1
Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1)
misc_definitions_module.f90:19.72:

integer, parameter :: OUTSIDE_DOMAIN=1E8, NOT_PROCESSED=1E9, INVALID=1E9
1
Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1)
mpif90 -g -c -I/data/home/cuimengshi/apps/netcdf-c-4.7.4/include constants_module.f90
mpif90 -g -c -I/data/home/cuimengshi/apps/netcdf-c-4.7.4/include bio_types.f90
mpif90 -g -c -I/data/home/cuimengshi/apps/netcdf-c-4.7.4/include area_mapper.f90
area_mapper.f90:1843.36:

subroutine handle_ncerr( ret, mes )
1
Warning: Unused dummy argument 'mes' at (1)
area_mapper.f90:1709.15:

integer :: l
1
Warning: Unused variable 'l' declared at (1)
area_mapper.f90:1710.20:

real :: pnt(2)
1
Warning: Unused variable 'pnt' declared at (1)
area_mapper.f90:1307.18:

integer :: vndx
1
Warning: Unused variable 'vndx' declared at (1)
area_mapper.f90:1101.20:

integer :: m, mp1, n
1
Warning: Unused variable 'mp1' declared at (1)
area_mapper.f90:1106.20:

integer :: ndx(1)
1
Warning: Unused variable 'ndx' declared at (1)
area_mapper.f90:216.18:

integer :: ierr
1
Warning: Unused variable 'ierr' declared at (1)
area_mapper.f90:101.18:

integer :: grid
1
Warning: Unused variable 'grid' declared at (1)
area_mapper.f90: In function ‘shadow_map’:
area_mapper.f90:1050:0: warning: ‘__result_shadow_map’ may be used uninitialized in this function [-Wmaybe-uninitialized]
integer FUNCTION shadow_map( x, y, n_shadow_zone )
^
area_mapper.f90: In function ‘area_interp’:
area_mapper.f90:1658:0: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized]
vtx_x(k+1:nv+1) = wrk_x(k:nv)
^
area_mapper.f90:1629:0: note: ‘k’ was declared here
integer :: k
^
area_mapper.f90:1225:0: warning: ‘match_pnt’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if( .not. match_pnt ) then
^
area_mapper.f90:1114:0: note: ‘match_pnt’ was declared here
logical :: match_pnt
^
mpif90 -g -c -I/data/home/cuimengshi/apps/netcdf-c-4.7.4/include bio_emiss.f90
bio_emiss.f90:1231.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_byte ), message
1
Warning: Line truncated at (1)
bio_emiss.f90:1231.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_byte ), message
1
Error: Syntax error in argument list at (1)
bio_emiss.f90:1235.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_short ), message
1
Warning: Line truncated at (1)
bio_emiss.f90:1235.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_short ), message
1
Error: Syntax error in argument list at (1)
bio_emiss.f90:1239.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_real ), message
1
Warning: Line truncated at (1)
bio_emiss.f90:1239.132:

bal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_real ), message
1
Error: Syntax error in argument list at (1)
bio_emiss.f90:1241.132:

lobal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_dbl ), message
1
Warning: Line truncated at (1)
bio_emiss.f90:1241.132:

lobal, attr_name(:slen), attr_xtype, attr_len, attrs(m)%attr_dbl ), message
1
Error: Syntax error in argument list at (1)
make: *** [bio_emiss.o] Error 1
Failed to build megan_bio_emiss

I don't know if there is any problem with the netcdf, but I have installed wrf-chem using the netcdf libraries successfully.
Could someone please help me?

Thanks,
mengshi