← Back to team overview

dolfin team mailing list archive

Fwd: [Branch ~dolfin-core/dolfin/main] Rev 5540: Minor fix for OpenMP on Windows.

 

Related to this, can we extract the version of OpenMP that a compiler
supports? We use loops over unsigned int, but I think that older OpenMP
version only support loops over int. I think that Marie hit this problem.

Garth

-------- Original Message --------
Subject: [Branch ~dolfin-core/dolfin/main] Rev 5540: Minor fix for
OpenMP on	Windows.
Date: Wed, 19 Jan 2011 11:46:32 -0000
From: noreply@xxxxxxxxxxxxx
Reply-To: noreply@xxxxxxxxxxxxx
To: Garth Wells <gnw20@xxxxxxxxx>

------------------------------------------------------------
revno: 5540
committer: Johannes Ring <johannr@xxxxxxxxx>
branch nick: dolfin
timestamp: Wed 2011-01-19 12:44:10 +0100
message:
  Minor fix for OpenMP on Windows.
modified:
  dolfin/CMakeLists.txt


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to
https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription

=== modified file 'dolfin/CMakeLists.txt'
--- dolfin/CMakeLists.txt	2011-01-18 13:40:47 +0000
+++ dolfin/CMakeLists.txt	2011-01-19 11:44:10 +0000
@@ -184,6 +184,9 @@
 
   # FIXME: Is this linker flag required?
   #list(APPEND DOLFIN_LINK_FLAGS ${MPI_LINK_FLAGS})
+  if (MINGW)
+    list(APPEND DOLFIN_LINK_FLAGS "${OpenMP_CXX_FLAGS}")
+  endif()
 
   # Necessary flag for MPICH2
   list(APPEND DOLFIN_CXX_DEFINITIONS "-DMPICH_IGNORE_CXX_SEEK")



Follow ups