allow arbitarily long fortran line of code
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 2 Apr 2012 18:32:56 +0000 (14:32 -0400)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 2 Apr 2012 18:32:56 +0000 (14:32 -0400)
src/arch/mpi-crayxe/conv-mach.sh

index e3b4b0e03f66a4a986e86ff60e2b7b7447b9568e..99f905f8d7319f066c974670721de541fb62fa14 100644 (file)
@@ -5,6 +5,7 @@ CMK_BUILD_CRAY=1
 
 PGCC=`CC -V 2>&1 | grep pgCC`
 ICPC=`CC -V 2>&1 | grep Intel`
 
 PGCC=`CC -V 2>&1 | grep pgCC`
 ICPC=`CC -V 2>&1 | grep Intel`
+GNU=`CC -V 2>&1 | grep 'g++'`
 
 CMK_CPP_CHARM="/lib/cpp -P"
 CMK_CPP_C="cc -E $CMK_DEFS "
 
 CMK_CPP_CHARM="/lib/cpp -P"
 CMK_CPP_C="cc -E $CMK_DEFS "
@@ -53,6 +54,11 @@ CMK_QT="generic64"
 # for F90 compiler
 CMK_CF77="ftn "
 CMK_CF90="ftn "
 # for F90 compiler
 CMK_CF77="ftn "
 CMK_CF90="ftn "
+if test -n "$GNU"
+then
+    CMK_CF77="$CMK_CF77 -ffree-line-length-none"
+    CMK_CF90="$CMK_CF90 -ffree-line-length-none"
+fi
 CMK_F90LIBS=""
 CMK_F90_USE_MODDIR=1
 CMK_F90_MODINC="-I"
 CMK_F90LIBS=""
 CMK_F90_USE_MODDIR=1
 CMK_F90_MODINC="-I"