[cam-users] what is the mistake here?

Ananth ananth_mg at yahoo.co.in
Tue Jul 13 16:18:44 MDT 2004


Hi,
I tried compiling CAM 3.0 using icc & ifort(intel
fortran 8) compilers.I've noted the compilation
process 
& its like this(for a f90 & c file resp.):

ifort -c  -I.
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/physics/cam1
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/dynamics/eul
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/control
-I/home16/ananth/cam3/camsrc/models/csm_share/shr
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/utils
-I/home16/ananth/cam3/camsrc/models/utils/timing
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/advection/slt
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/ocnsice/dom
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/main
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/biogeophys
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/biogeochem
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/mksrfdata
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/riverroute
-I/home16/ananth/cam3/camsrc/models/ice/csim4
-I/home16/ananth/netcdf-3.5.1/include
-I/usr/local/include 
-I/home16/ananth/cam3/camtemp/camrun/bld/esmf/mod/modg/linux_intel
-I/home16/ananth/netcdf-3.5.1/lib -DCAM -DNO_SHR_VMATH
-DHIDE_SHR_MSG  -DLINUX -r8 -i4 -align commons -DLINUX
-g -DHIDE_MPI -save
/home16/ananth/cam3/camsrc/models/atm/cam/src/control/time_manager.F90



icc -c -I.
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/physics/cam1
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/dynamics/eul
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/control
-I/home16/ananth/cam3/camsrc/models/csm_share/shr
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/utils
-I/home16/ananth/cam3/camsrc/models/utils/timing
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/advection/slt
-I/home16/ananth/cam3/camsrc/models/atm/cam/src/ocnsice/dom
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/main
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/biogeophys
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/biogeochem
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/mksrfdata
-I/home16/ananth/cam3/camsrc/models/lnd/clm2/src/riverroute
-I/home16/ananth/cam3/camsrc/models/ice/csim4
-I/home16/ananth/netcdf-3.5.1/include
-I/usr/local/include  -DCAM -DNO_SHR_VMATH
-DHIDE_SHR_MSG  -DLINUX -openmp
/home16/ananth/cam3/camsrc/models/utils/timing/t_initialize.c

It compiles except a few warnings & gives me cam
executable.While running segmentation fault occurs
during execution & it's due to inidat.F90 file at line
1176(where a call is being made to qneg3 function;I
found this out using gdb).I've set stacksize,max
memory etc unlimited.I've actually compiled & run CAM
succesively using pgf90 compiler without modifying
source.
I'm not exposed to Fortran programming.Please can
anyone who is good at it,look at files
inidat.F90(under dynamics/eul folder;line 1176) &
qneg3.F90(under physics/cam1) & tell me if calling
convention is consistent with fortran syntax.Are the
variables declared & allocated properly?Is argument
passing(especially arr3d) causing a problem?Also,if
anyone using intel compilers has some solution to
overcome this problem,please let me know.
Thanks in advance,



________________________________________________________________________
Yahoo! India Careers: Over 65,000 jobs online
Go to: http://yahoo.naukri.com/


More information about the cam-users mailing list