# -*- mode: makefile -*- # # hao # 64-bit Linux workstations at NCAR. Typical specs are: # One 4-core CPU: Intel(R) Core(TM) i5 CPU 670 @ 3.47 GHz # 4 gigs of RAM # using PGI compilers # # # Compilers # # MPI C Compiler MPICC = mpicc # MPI C++ Compiler MPICXX = mpicxx # MPI F90 Compiler MPIF90 = mpif90 # MPI F77 Compiler MPIF77 = mpif77 # F90 Compiler F90 = pgf90 # F77 Compiler F77 = pgf77 # F90 compiler used for unit testing with funit FC = ${F90} # C Compiler CC = pgcc # C++ compiler CXX = pgCC # C Preprocessor # note: It's easier to use gnu c preprocessor (cpp) than to muck around with # using the portland group preprocessor since the portland # preprocessor commands require different formatting than cpp. CPP = cpp -P # Archive command (for making static libraries): AR = ar # # Compiler flags # #Cross language flag CROSS = -DLC_UNSC # Arch flag (IBM,T3E,NULL) # Also use -DPGI (if you're using the pgi compiler) ARCH = -DNULL # Optimtization Level #OPTLVL = -g OPTLVL = -O3 # Trapping flags #TRAP = -DMPICH_IGNORE_CXX_SEEK -DMPICH_SKIP_MPICXX -DNEWCC TRAP = -DNEWCC #TRAP += -C -Mchkstk -Mpgicoff -traceback # Machine specific opts MACHOPT = -w # Extra compiler flags EXTRA_C_FLAGS = -DPT8BYTE EXTRA_F_FLAGS = # Extra libraries for Fortran, C & C++ code EXTRA_LIBS = -lrt # Fortran libraries # to build MIX: FLIBS = -L/opt/local/pgi-9.04/linux86-64/9.0/lib -lpgf90 -L${PVM_ROOT}/lib/${PVM_ARCH} -lpvm3 -lpghpf_rpm1 -lpghpf2 -lpgftnrtl -lpgf90rtl # MPI Libraries MPILIBS = # Machine-specific libraries: MACHLIB = -lpgf90rtl # TIEGCM-specific libraries: TIEGCM_FFLAGS = -r8 TIEGCM_LDFLAGS = -lcurl # common/src/geopack.F ***requires*** 8-byte reals in order to work with CMIT. # This is a compiler-dependent flag! GEOPACK_FFLAGS = -r8 # # External Library information # A++ = /home/schmitt/opt/64/LTR-pgi-9.04/A++ P++ = /home/schmitt/opt/64/LTR-pgi-9.04/P++ HDF = /home/schmitt/opt/64/LTR-pgi-9.04 MPI = /opt/local/pgi-9.04/linux86-64/9.0/mpi/mpich PVM_ROOT = /home/schmitt/opt/64/LTR-pgi-9.04/pvm3 PVM_ARCH = LINUX64 INTERCOMM = /home/schmitt/opt/64/LTR-pgi-9.04/InterComm-1.6 Overture = /home/schmitt/opt/64/LTR-pgi-9.04/overture # TIEGCM requires netcdf: NETCDF = /home/schmitt/opt/64/LTR-pgi-9.04/netcdf-4.1.1