PREP-CHEM-SRC-1.5 compilation intel.wrf error

Posts related to the installation of WRF Chemistry

PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby jwsmit12 » Thu Jun 11, 2015 2:17 pm

When executing the following command:

make OPT=intel.wrf CHEM=RACM AER=SIMPLE

I get the errors below during compilation:

icc -c -O2 -I../../aux_src/utils/include -I/opt/netcdf4/4.1.3-intel-14.0-2/include -I/opt/hdf5/1.8.12-intel-14.0-2/include ../../aux_src/utils/utils_c.c
../../aux_src/utils/utils_c.c(54): warning #810: conversion from "int *" to "int" may lose significant bits
ifaddr = (int )ia;
^

../../aux_src/utils/utils_c.c(55): warning #810: conversion from "void *" to "int" may lose significant bits
imaddr = (int )iaddr;
^
convert_edgar_to_RELACS_REAC.f90(17): error #6405: The same named entity from different modules and/or program units cannot be referenced. [CO]
,CO &
-----------------------------^
convert_edgar_to_RELACS_REAC.f90(20): error #6405: The same named entity from different modules and/or program units cannot be referenced. [CH4]
,CH4 &
-----------------------------^
convert_edgar_to_RELACS_REAC.f90(21): error #6405: The same named entity from different modules and/or program units cannot be referenced. [SO2]
,SO2 &
-----------------------------^
compilation aborted for convert_edgar_to_RELACS_REAC.f90 (code 1)
make: *** [convert_edgar_to_RELACS_REAC.o] Error 1
jwsmit12
 
Posts: 8
Joined: Mon Jul 28, 2014 6:18 pm

Re: PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby georgeg » Tue Jun 30, 2015 4:50 am

Hello,

I am having a similar issue. When trying to compile using the command:

Code: Select all
make OPT=intel.wrf CHEM=RADM_WRF_FIM


I am getting these errors:

Code: Select all
convert_edgar_to_aer.f90(14): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [CO]
                            ,CO      &   
-----------------------------^
convert_edgar_to_aer.f90(16): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [CO2]
             ,CO2     &
-----------------------------^
convert_edgar_to_aer.f90(17): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [CH4]
             ,CH4     &
-----------------------------^
convert_edgar_to_aer.f90(18): error #6405: The same named entity from different modules and/or program units cannot be referenced.   [SO2]
             ,SO2     &
-----------------------------^
compilation aborted for convert_edgar_to_aer.f90 (code 1)
make: *** [convert_edgar_to_aer.o] Error 1



Anyone found a solution for this issue?
Thanks in advance.
George K. Georgiou
PhD Candidate
The Cyprus Institute
Nicosia, Cyprus
georgeg
 
Posts: 8
Joined: Tue Apr 28, 2015 3:32 am

Re: PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby easy » Mon Jul 13, 2015 7:42 am

hello,georgeg, I got the same error with you. Have you solved it. Thanks. Could you tell me the solution pls? :cry:

Best regards,
Sincerely,

Zhen
easy
 
Posts: 10
Joined: Sun Jun 07, 2015 10:26 pm

Re: PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby s5t2a7 » Tue Aug 18, 2015 9:37 pm

Can i know where i could get the version 1.5? I can compile the code and check the error in my PC. Thank you very much.
s5t2a7
 
Posts: 1
Joined: Tue Aug 18, 2015 9:29 pm

Re: PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby georgeg » Fri Sep 11, 2015 4:33 am

You can get the new version form here:

ftp://aftp.fsl.noaa.gov/divisions/taq/global_emissions/

I managed to compile successfully version 1.5 using

Code: Select all
make OPT=intel.wrf CHEM=RADM_WRF_FIM


My include.mk.intel.wrf file:

Code: Select all
#Makefile include include.mk.opt
############################## Change Log ##################################
# 1.0.0.2
#
# 000908 MJB include.mk-mrc ##
#            Added MAKE environment varaible.
#            Added free format option to F_OPTS for some platforms. ##
# 000907 MJB include.mk-mrc ##
#            Changed the defualts to no NCAR Graphics and no parallel.
#            Also commented out the machine specifics to force the user to
#            select the appropriate machine for them. ##
# 000823 MJB include.mk-mrc ##
#            New - defines all make environment varaibles and is included
#            in all make files. ##
#
############################################################################

# Define make (gnu make works best).

MAKE=/usr/bin/make

# Activate appropriate parts below, comment out others.

# NCAR Graphics.

#---------------------------------------------------------------
# If you are using a standard installation of NCAR Graphics, set:
#       LOADER=ncargf90
# in the machine-dependent sections below
#LIBNCARG=
#---------------------------------------------------------------
# If you are using the NCAR dummy libraries...

NCARG_DIR=$(BASE)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION) -lncarg_c-$(UTILS_VERSION) \
#                        -lncarg_gks-$(UTILS_VERSION)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION)
LIBNCARG=$(BASE)/libncarg-$(UTILS_VERSION)-$(OPT).a
#---------------------------------------------------------------
# If you are using a real distribution of NCAR Graphics...
#NCARG_DIR=/usr/local/ncarg-4.3.0/lib
#LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------

# NETCDF libraries


NETCDF=/gpfs/buildsets/eb150518/software/netCDF/4.2.1.1-ictce-6.2.5

NETCDF_INC=-I$(NETCDFFORTRAN)/include
NETCDF_LIBS=-L$(NETCDF)/lib -L$(NETCDFFORTRAN)/lib -lnetcdf -lnetcdff


# HDF libraries


HDF5=/gpfs/buildsets/eb150518/software/HDF5/1.8.10-ictce-6.2.5-gpfs
HDF5_INC=-I$(HDF5)/include
HDF5_LIB=-L$(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -L/gpfs/buildsets/eb150518/software/zlib/1.2.7-ictce-6.2.5/lib -lz

# Machine-dependent options.

#-----------------  LINUX Portland Group pgf77/gcc ---------------
CMACH=PC_LINUX1
F_COMP=/gpfs/buildsets/eb150518/software/ifort/2013.5.192-GCC-4.8.3/bin/intel64/ifort
C_COMP=gcc
LOADER=/gpfs/buildsets/eb150518/software/ifort/2013.5.192-GCC-4.8.3/bin/intel64/ifort
C_LOADER=gcc
LIBS=
MOD_EXT=mod

F_OPTS=-fpp -D$(CHEM) -O2 -convert big_endian
C_OPTS= -O2
LOADER_OPTS= -O2

#-----------------------------------------------------------------


# If compiling for a single-CPU platform only (without MPI):

#-----------------------------------------------------------------
PAR_LIBS=
PAR_DEFS=
#-----------------------------------------------------------------


# For IBM,HP,SGI,ALPHA use these:
ARCHIVE=ar rs
# For NEC SX-6
#ARCHIVE=sxar rs
# For SUN,CONVEX
#ARCHIVE=ar r'
George K. Georgiou
PhD Candidate
The Cyprus Institute
Nicosia, Cyprus
georgeg
 
Posts: 8
Joined: Tue Apr 28, 2015 3:32 am

Re: PREP-CHEM-SRC-1.5 compilation intel.wrf error

Postby lrxwisdom » Fri Dec 04, 2015 11:43 am

The trick is in convert_edgar_to_RELACS_REAC.f90

Code: Select all
subroutine convert_edgar_to_relacs_reac(isp,iespc,ident,spc_name_dummy)  !kml
use chem1_list
!use chem1_list, only : alke, bio,ora2,aro,ket,alka,ald


use emiss_vars_emissions
use edgar_emissions, only:   edgar_nspecies=>nspecies&
                            ,edgar_spc_name=>spc_name&


Before "use chem1_list" "!" is missing, it leads to double cited vars from chem1_list and edgar_emissions.
So the solution is add "!" before "use chem1_list" to "!use chem1_list".
lrxwisdom
 
Posts: 1
Joined: Fri Dec 04, 2015 11:34 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 3 guests