# compiler options for hector CRAY XT6 # 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 # PGI prgenv (default for hector) # use "module load netcdf" to setup system netcdf %NCDF_HOME $CRAY_NETCDF_DIR/netcdf-pgi %HDF5_HOME $CRAY_HDF5_DIR/hdf5-pgi %NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include %NCDF_LIB -L%HDF5_HOME/lib -L%NCDF_HOME/lib -lnetcdf -lhdf5_fortran -lhdf5_hl -lhdf5 -lz %FC ftn %FCFLAGS -i4 -r8 -O3 %FFLAGS -i4 -r8 -O3 %LD ftn %FPPFLAGS -P -C -traditional %LDFLAGS %AR ar %ARFLAGS -r %MK gmake %USER_INC %NCDF_INC %USER_LIB %NCDF_LIB # replacement options for GNU prgenv # %NCDF_HOME $CRAY_NETCDF_DIR/netcdf-gnu # %HDF5_HOME $CRAY_HDF5_DIR/hdf5-gnu # %FCFLAGS -fdefault-real-8 -O3 # %FFLAGS -fdefault-real-8 -O3