Thanks.I am using 64 bit compiler:$nagfor -VNAG Fortran Compiler Release 5.3.1(907)
Product NPL6A53NA for x86-64 Linux
Copyright 1990-2012 The Numerical Algorithms Group Ltd., Oxford, U.K.
My log file entry for compiling "calcdisplace_mod.F90" is:/home/scicons/cascade/apps/mpi/mvapich2-1.9/build_nag5.3.1/bin/mpif90 -DNO_C_SIZEOF -DNO_MPIMOD -DUSEMPIIO -D_NETCDF -D_NETCDF4 -D_NOPNETCDF -D_NOUSEMCT -D_USEBOX -kind=byt
e -wmismatch=mpi_send,mpi_recv,mpi_bcast,mpi_allreduce,mpi_reduce,mpi_isend,mpi_irecv,mpi_irsend,mpi_rsend,mpi_gatherv,mpi_gather,mpi_scatterv,mpi_allgather,mpi_alltoallv,mp
i_file_read_all,mpi_file_write_all,mpibcast,mpiscatterv -ieee=full -O2 -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_CRAY_POINTERS -DNO_SHR_VMATH
-DLINUX -DCPRNAG -DHAVE_SLASHPROC -I. -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/nodebug/nothreads/include -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/
bld/NAG/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/scicons/cascade/apps/netcdf-4.3.0/build_nag5.3.1/mvapich2/lib/../include -I/dtemp/sing201/csmruns
/cesm1220_def_run_nag/bld/NAG/mpich/nodebug/nothreads/include -I/home/sing201/cesm_collections/cesm1_2_2/models/csm_share/shr -I/home/sing201/cesm_collections/cesm1_2_2/mode
ls/utils/pio -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/nodebug/nothreads/pio -I/home/scicons/cascade/apps/netcdf-4.3.0/build_nag5.3.1/mvapich2/include -
c /home/sing201/cesm_collections/cesm1_2_2/models/utils/pio/calcdisplace_mod.F90 -o CMakeFiles/pio.dir/calcdisplace_mod.F90.o
This is quite similar to what you have except that I have debug set to false in my xml file (so some flags are different). When I use the debug option, the code fails to compile MCT and I get the following error:configure: creating ./config.status
config.status: creating Makefile.conf
config.status: creating config.h
Please check the Makefile.conf
Have a nice day!
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
gmake
gmake[1]: Entering directory `/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/debug/nothreads/mct/mpeu'
gcc -c -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_CRAY_POINTERS -DNO_SHR_VMATH -DLINUX -DCPRNAG -DHAVE_SLASHPROC -DSYSLINUX -DCPRNAG -g -DLINUX -DMC
T_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_CRAY_POINTERS -DNO_SHR_VMATH -DLINUX -DCPRNAG -DHAVE_SLASHPROC -I.. -I. -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/
NAG/mpich/debug/nothreads/include -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/debug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/scicons/cascade/app
s/netcdf-4.3.0/build_nag5.3.1/mvapich2/lib/../include -I/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/debug/nothreads/include -I/home/sing201/cesm_collections/ce
sm1_2_2/models/csm_share/shr -I. -I../ /home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:37: error: âFC_FUNCâ declared as function returning a function
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:37: warning: parameter names (without types) in function declaration
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:38: error: âFC_FUNCâ declared as function returning a function
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:38: warning: parameter names (without types) in function declaration
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:48: warning: parameter names (without types) in function declaration
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:48: error: âFC_FUNCâ declared as function returning a function
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c: In function âFC_FUNCâ:
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:48: error: declaration for parameter âztsâ but no such parameter
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c: At top level:
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:72: warning: parameter names (without types) in function declaration
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:72: error: âFC_FUNCâ declared as function returning a function
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:71: error: redefinition of âFC_FUNCâ
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:47: note: previous definition of âFC_FUNCâ was here
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c: In function âFC_FUNCâ:
/home/sing201/cesm_collections/cesm1_2_2/models/utils/mct/mpeu/get_zeits.c:72: error: declaration for parameter âticâ but no such parameter
gmake[1]: *** [get_zeits.o] Error 1
gmake[1]: Leaving directory `/dtemp/sing201/csmruns/cesm1220_def_run_nag/bld/NAG/mpich/debug/nothreads/mct/mpeu'
gmake: *** [subdirs] Error 2
exit -Balwinder