#!/bin/csh # # Changing the contents of this file # may result in unexpected or incorrect performance. # National Geodetic Survey # 1315 East-West Highway # Suite 9113 # Silver Spring, MD 20910-1402 # USA # dru.smith@noaa.gov # as of February 2019, this code will compile correctly, # but issue many warnings, while compiling on ngs-vsu-rheldev; # the authors recommend ignoring the warnings and compiling # with compilers and flags as shown below # compiler set CC = /compilers/developerstudio12.5/bin/f95 # compiler flags used by Dru Smith for FinalRuns.20181201 production and release set CFLAGS = "-O5 -libmil -fsimple=0 -aligncommon=16 -xlibmopt -ftrap=%none -xvector=simd -xprefetch=yes -autopar -reduction -loopinfo -s -xopenmp=parallel -m64 -library=sunperf -xtarget=native -nofstore -fma=fused -xregs=frameptr" # ----------------------- # compile helper programs in BinSource set progs = ( b2xyz gabs gpull gfill gscale gsplat subtrc xyz2b gsqr gsqrt addem regrd2 ) foreach pgm ($progs) echo ... building $pgm #$CC BinSource/${pgm}.f -o ../${pgm} $CC $CFLAGS BinSource/${pgm}.f -o ../${pgm} end # ----------------------- # compile main programs in Fortran set progs =( checkgrid makeplotfiles01 makeplotfiles02 makeplotfiles03 makework mymedian5 myrms ) foreach pgm ($progs) echo ... building $pgm #$CC ${pgm}.f -o ../${pgm} $CC $CFLAGS ${pgm}.f -o ../${pgm} end