Skip to content

Commit 83a28d7

Browse files
authored
adjust ifort floating point options (MITgcm#408)
* adjust ifort floating point options - remove unused flag "-mp" - replace by recommended flag "-fp-model"
1 parent 32ce3e9 commit 83a28d7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

doc/tag-index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Notes on tags used in MITgcmUV
22
==============================
33

4+
o tools/build_options/linux_ia64_ifort_ollie: adjust floating point options
45
o pkg/ctrl:
56
- fix two bugs related to writing and reading control variables and
67
corresponding gradients:

tools/build_options/linux_ia64_ifort_ollie

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ if test "x$IEEE" = x ; then #- with optimisation:
5959
NOOPTFILES='obcs_init_fixed.F'
6060
else
6161
if test "x$DEVEL" = x ; then #- no optimisation + IEEE :
62-
# "-mp" is for ieee "maintain precision"
63-
FOPTIM='-O0 -noalign -xHost -ip -mp'
62+
# "-fp-model [keyword]" is the recommended method of controlling precision
63+
FOPTIM='-O0 -noalign -xHost -ip -fp-model consistent'
64+
# alternatives, see man pages for details
65+
# FOPTIM='-O0 -noalign -xHost -ip -mp1'
66+
# FOPTIM='-O0 -noalign -xHost -ip -fp-model precise'
67+
# FOPTIM='-O0 -noalign -xHost -ip -mieee-fp'
6468
else #- development/check options:
6569
# FFLAGS="$FFLAGS -warn all -warn nounused"
6670
FFLAGS="$FFLAGS -warn unused"
67-
FOPTIM="-fpe0 -check all -ftrapuv"
71+
FOPTIM="-fpe0 -check all -ftrapuv -fp-model precise"
6872
FOPTIM="$FOPTIM -O0 -noalign -g -traceback"
6973
fi
7074
fi

0 commit comments

Comments
 (0)