From 656dc54f7131eb669119849855a47f21f167a401 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Wed, 28 Jan 2015 09:18:47 +0000
Subject: [PATCH] Icc support: added floating-point exception trapping and
 accurate maths Resolves bug-report
 http://www.openfoam.org/mantisbt/view.php?id=1432

---
 wmake/rules/linux64Icc/c++ | 2 +-
 wmake/rules/linuxIcc/c++   | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/wmake/rules/linux64Icc/c++ b/wmake/rules/linux64Icc/c++
index eb8edb90b68..ed1891d9063 100644
--- a/wmake/rules/linux64Icc/c++
+++ b/wmake/rules/linux64Icc/c++
@@ -2,7 +2,7 @@ SUFFIXES += .C
 
 c++WARN     = -wd327,525,654,819,1125,1476,1505,1572
 
-CC          = icpc -std=c++0x
+CC          = icpc -std=c++0x -fp-trap=common -fp-model precise
 
 include $(RULES)/c++$(WM_COMPILE_OPTION)
 
diff --git a/wmake/rules/linuxIcc/c++ b/wmake/rules/linuxIcc/c++
index 419d41682ba..bfbf8a10205 100644
--- a/wmake/rules/linuxIcc/c++
+++ b/wmake/rules/linuxIcc/c++
@@ -2,8 +2,7 @@ SUFFIXES += .C
 
 c++WARN     = -wd327,525,654,819,1125,1476,1505,1572
 
-#CC          = icpc -gcc-version=400
-CC          = icpc -std=c++0x
+CC          = icpc -std=c++0x -fp-trap=common -fp-model precise
 
 include $(RULES)/c++$(WM_COMPILE_OPTION)
 
@@ -16,7 +15,6 @@ cxxtoo      = $(Ctoo)
 cctoo       = $(Ctoo)
 cpptoo      = $(Ctoo)
 
-#LINK_LIBS   = $(c++DBUG) -lstdc++
 LINK_LIBS   = $(c++DBUG) -L$(IA32ROOT)/lib
 
 LINKLIBSO   = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
-- 
GitLab