[Dart-dev] DART/branches Revision: 11638

dart at ucar.edu dart at ucar.edu
Mon May 15 19:53:18 MDT 2017


thoar at ucar.edu
2017-05-15 19:53:13 -0600 (Mon, 15 May 2017)
175
Setting the svn properties correctl on cotr_mod.f90
Adding the block for the 'ftn' (aka cray) compiler in fixsystem
And restoring the mkmf.template appropriate for trillian.




Modified: DART/branches/rma_openggcm/assimilation_code/modules/utilities/fixsystem
===================================================================
--- DART/branches/rma_openggcm/assimilation_code/modules/utilities/fixsystem	2017-05-16 00:37:48 UTC (rev 11637)
+++ DART/branches/rma_openggcm/assimilation_code/modules/utilities/fixsystem	2017-05-16 01:53:13 UTC (rev 11638)
@@ -73,6 +73,8 @@
       echo "  or   $0 pgf90 "
       echo "  etc."
       exit 1
+    elif [ "$1" = ftn ]; then
+      export todo=out
     elif [ "$1" = gfortran ]; then
       export todo=out
     else

Modified: DART/branches/rma_openggcm/build_templates/mkmf.template
===================================================================
--- DART/branches/rma_openggcm/build_templates/mkmf.template	2017-05-16 00:37:48 UTC (rev 11637)
+++ DART/branches/rma_openggcm/build_templates/mkmf.template	2017-05-16 01:53:13 UTC (rev 11638)
@@ -1,7 +1,7 @@
-# Template for GNU gfortran on Linux or Mac OSX
+# template for gfortran f90 Compiler on Cray clusters
 #
-# DART software - Copyright UCAR. This open source software is provided
-# by UCAR, "as is", without charge, subject to all terms of use at
+# DART software - Copyright 2004 - 2013 UCAR. This open source software is
+# provided by UCAR, "as is", without charge, subject to all terms of use at
 # http://www.image.ucar.edu/DAReS/DART/DART_download
 #
 # DART $Id$
@@ -8,58 +8,11 @@
 
 # typical use with mkmf
 # mkmf -t mkmf.template.xxxx ...
-#
-# Suggested (perhaps required) flags:
-# -ffree-line-length-none   handles "long" lines - i.e. longer than 72 chars
-#
-# Suggested debugging flags:
-#  -g                  add debugging information to executable
-#  -Wuninitialized     catch uninitialized variables
-#  -Wunused            issue warning for unused variables - keeps code clean
-#  -fbacktrace         runtime errors try to print out a stack backtrace
-#  -fbounds-check      add runtime-checking for out-of-range array indices
-#  -ffpe-trap=invalid,zero,overflow
-#                      stop on floating point errors
-#
-#  earlier versions of this mkmf file listed 'precision' as one of the options on
-#  the fpe-trap line.  this is not recommended anymore as some of the gfortran internal
-#  routines will trap, as well as some perfectly valid DART computations.
-#
-# Generally not needed but possibly useful for non-DART code:
-#
-# -ffree-form          forces input file to be read as free format regardless
-#                      of what file extension it has.
-#
-# -fdefault-real-8     force all real variables to be real*8.  not needed for DART code
-#                      since all real variables in DART are declared with a size.
-#
-#    NOTE: Some previous versions of the gfortran compiler (including 4.1.2)
-#    changed the record marker size to 8 bytes, which made binary files written
-#    with the 'unformatted' option unreadable by programs compiled with other
-#    compilers.  Later versions of the compiler changed the default back to 4 bytes.
-#    If you have a version that defaults to 8 byte record markers, use this 
-#    compile time flag:
-#       -frecord-marker=4
-#    If you have files written by older versions of the gfortran compiler that
-#    cannot be read now, try this compile time flag:
-#       -frecord-marker=8 
-#
-# Convert big-endian or little-endian binary files at runtime:
-#
-# setenv GFORTRAN_CONVERT_UNIT 'big_endian'
-#    Treats ALL units as big_endian
-#
-# setenv GFORTRAN_CONVERT_UNIT 'big_endian;native:10-20'
-#    Treats units 10-20 as big_endian but the rest are 'native' 
-#
-# for more information on unit conversions:
-# http://gcc.gnu.org/onlinedocs/gfortran/GFORTRAN_005fCONVERT_005fUNIT.html#GFORTRAN_005fCONVERT_005fUNIT
-#
 
-MPIFC = mpif90
-MPILD = mpif90
-FC = gfortran
-LD = gfortran
+MPIFC = ftn
+MPILD = ftn
+FC = ftn
+LD = ftn
 
 # DISCUSSION ABOUT NETCDF. DART works with both V3 and V4 flavors of netCDF.
 # Some V4 installations also require the HDF5 libraries. Some don't.
@@ -84,14 +37,16 @@
 
 INCS = -I$(NETCDF)/include
 LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf
-#FFLAGS  = -O2 -ffree-line-length-none $(INCS)
-FFLAGS  = -ffree-line-length-none $(INCS)
-LDFLAGS = $(FFLAGS) $(LIBS)
+FFLAGS  = -O -ffree-line-length-none -ffixed-line-length-1024 $(INCS)
+LDFLAGS = $(INCS) $(LIBS)


More information about the Dart-dev mailing list