Error while compiling **combine** program in CMAQv5.0.2

Dear @lizadams, @lizadams_3, @hogrefe.christian, @cjcoats, @tlspero,

Please, I am having problems in compiling combine program of CMAQv5.0.2. I am using gfortran compiler.
The makefile is below and I don’t know what should be for the FC_FLAGS for gfortran:

make file to build combine program

RCS file, release, date & time of last delta, author, state, [and locker]

Header: /nas01/depts/ie/cempd/apps/CMAQ/v5.0.1/CMAQv5.0.1/models/TOOLS/src/combine/Makefile,v 1.1.1.1 2012/04/19 19:48:37 sjr Exp

PROGRAM = combine.exe

FC = mpifort
#FC_FLAGS = -c -FI -O2 -132 -WB -I /home/wdx/lib/src/ioapi_3.1/Linux2_x86_64ifort
FC_FLAGS = -g -02 -132
#CC = cc

#IOAPI = -L$(LIB)/ioapi_3.2/Linux2_x86_64gfort -lioapi

NETCDF = -L$(LIB)/netcdf/lib -lnetcdff -lnetcdf

LIBRARIES = (IOAPI) (NETCDF)

#FC_FLAGS = -g -02 -132 -I /home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/ioapi/fixed_src -I /home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/Linux2_x86_64gfort

#LIBRARIES = -L /home/wdx/lib/src/ioapi_3.1/Linux2_x86_64ifort -lioapi \

-L /share/linux86_64/wdx/lib/x86_64i/ifc/netcdf/lib -lnetcdf

IOAPI = -L /home/catalyst/Desktop/Build_WRF/LIBRARIES/ioapi-3.2/Linux2_x86_64gfort -lioapi
NETCDF = -L /home/catalyst/Desktop/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf
LIBRARIES = (IOAPI) (NETCDF)

OBJS =
module_specdef.o
module_file.o
module_evaluator.o
utils.o
combine.o

(PROGRAM): (OBJS)
(FC) (OBJS) (LIBRARIES) -o (PROGRAM)

.F.o:
(FC) (FC_FLAGS) $<

Your help and guide would be urgently really appreciated.

Thanks and regards,

Catalyst

I don’t know what should be for the FC_FLAGS for gfortran…

Look in ioapi/Makeinclude.Linux2_x86_64gfort

I have compiled it successfully.

Thanks and regards,

Catalyst