From 48a9104b7ed0b2760a05dbc996f05aafbdb187ed Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 5 Oct 2012 17:22:45 +0000 Subject: [PATCH] corrected fortran compile command and added comments on the compiler switches --- installation/mods_Abaqus/abaqus_v6.env | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/installation/mods_Abaqus/abaqus_v6.env b/installation/mods_Abaqus/abaqus_v6.env index 71a4a774e..c963a7f32 100644 --- a/installation/mods_Abaqus/abaqus_v6.env +++ b/installation/mods_Abaqus/abaqus_v6.env @@ -16,18 +16,22 @@ import os, re, glob, driverUtils # Use the version in $PATH fortCmd = "ifort" -# "-free" to use free-format FORTRAN 90 syntax -# "-O3" maximum optimization level -# "-fpp" use FORTRAN preprocessor on source code -# "-openmp" build with openMP support +# -free to use free-format FORTRAN 90 syntax +# -O <0-3> optimization level +# -fpp use FORTRAN preprocessor on source code +# -openmp build with openMP support +# -w90 -w95 suppress messages about use of non-standard Fortran (previous version of abaqus_v6.env only) +# -WB turn a compile-time bounts check into a warning (previous version of abaqus_v6.env only) +# -mP2OPT_hpo_vec_divbyzero=F inofficial compiler switch, proposed by abaqus but highly dubios (previous version of abaqus_v6.env only) +# -ftz flush underflow to zero +# -implicitnone assume no implicit types (e.g. i for integer) +# -assume byterecl count record length in bytes +# -real-size 64 -DFLOAT=8 assume size of real to be 8 bytes, matches our definition of pReal +# -integer-size 32 -DINT=4 assume size of integer to be 4 bytes, matches our definition of pInt -#compile_fortran = (fortCmd + " -c -fPIC -auto" + -# "-WB -I%I -free -O3 -fpp -openmp " + -# "-implicitnone -assume byterecl " + -# "-real-size 64 -integer-size 32 -DFLOAT=8 -DINT=4") - -compile_fortran = (fortCmd + " -c -fPIC -auto -mP2OPT_hpo_vec_divbyzero=F " + - "-WB -I%I -free -O3 -fpp -openmp "+ +compile_fortran = (fortCmd + " -c -fPIC -auto " + + "-I%I -free -O2 -fpp -openmp " + + "-ftz + "-implicitnone -assume byterecl " + "-real-size 64 -integer-size 32 -DFLOAT=8 -DINT=4")