# ifort compiler options for NOCS ALTIX cluster nautilus using NetCDF4 libraries # NCDF_HOME root directory containing lib and include subdirectories for netcdf4 # HDF5_HOME root directory containing lib and include subdirectories for HDF5 # NCDF_INC netcdf include file # NCDF_LIB netcdf library # FC Fortran compiler command # FCFLAGS Fortran compiler flags # FFLAGS Fortran 77 compiler flags # LD linker # LDFLAGS linker flags, e.g. -L if you have libraries in a # FPPFLAGS pre-processing flags # AR assembler # ARFLAGS assembler flags # MK make # USER_INC additional include files for the compiler, e.g. -I # USER_LIB additional libraries to pass to the linker, e.g. -l %NCDF_HOME /noc/users/jeff/packages/netcdf4/netcdf-4.1.1/x86_64/intel10.1 %HDF5_HOME /noc/users/jeff/packages/hdf5/hdf5-1.8.4-patch1/x86_64/intel10.1 %NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include # Note use of -Bstatic because the library root directories are not accessible to the back-end compute nodes %NCDF_LIB -L%HDF5_HOME/lib -L%NCDF_HOME/lib -Bstatic -lnetcdf -lhdf5_fortran -lhdf5_hl -lhdf5 -Bdynamic -lz %FC ifort %FCFLAGS -r8 -O3 -xT -ip -vec-report0 %FFLAGS -r8 -O3 -xT -ip -vec-report0 %LD ifort %FPPFLAGS -P -C -traditional %LDFLAGS -lmpi %AR ar %ARFLAGS -r %MK gmake %USER_INC %NCDF_INC %USER_LIB %NCDF_LIB # - if debugging use these flags #FCFLAGS -g -traceback -r8 -O0 -xT -ip -vec-report0 #FFLAGS -g -traceback -r8 -O0 -xT -ip -vec-report0