mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
# Flags for compiling/linking openmp
|
||||
# The USE_OMP is for OpenFOAM-specific use (general use is _OPENMP)
|
||||
# -
|
||||
# Clang provides 'omp' and a link for 'gomp'.
|
||||
# With 'gomp' we can use system libs.
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lgomp
|
||||
1
wmake/rules/General/Clang/openmp
Symbolic link
1
wmake/rules/General/Clang/openmp
Symbolic link
@ -0,0 +1 @@
|
||||
openmp-gomp
|
||||
8
wmake/rules/General/Clang/openmp-gomp
Normal file
8
wmake/rules/General/Clang/openmp-gomp
Normal file
@ -0,0 +1,8 @@
|
||||
# Flags for compiling/linking openmp
|
||||
# The USE_OMP is for OpenFOAM-specific use (general use is _OPENMP)
|
||||
# -
|
||||
# Clang provides 'omp' and a link for 'gomp'.
|
||||
# With 'gomp' we can also use system libs.
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lgomp
|
||||
5
wmake/rules/General/Clang/openmp-omp
Normal file
5
wmake/rules/General/Clang/openmp-omp
Normal file
@ -0,0 +1,5 @@
|
||||
# Flags for compiling/linking openmp
|
||||
# The USE_OMP is for OpenFOAM-specific use (general use is _OPENMP)
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lomp
|
||||
@ -14,25 +14,29 @@ GLIBS = -lm
|
||||
GLIB_LIBS =
|
||||
|
||||
|
||||
COMPILER_FAMILY = $(shell echo "$(WM_COMPILER)" | sed -e 's/[0-9].*//')
|
||||
DEFAULT_RULES = $(WM_DIR)/rules/$(WM_ARCH)$(COMPILER_FAMILY)
|
||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||
ARCHITECTURE_RULES = $(WM_DIR)/rules/$(WM_ARCH)
|
||||
COMPILER_FAMILY = $(shell echo "$(WM_COMPILER)" | sed -e 's/[-+.0-9~].*//')
|
||||
DEFAULT_RULES = $(ARCHITECTURE_RULES)$(COMPILER_FAMILY)
|
||||
RULES = $(ARCHITECTURE_RULES)$(WM_COMPILER)
|
||||
WMAKE_BIN = $(WM_PROJECT_DIR)/platforms/tools/$(WM_ARCH)$(WM_COMPILER)
|
||||
|
||||
# Default compilation is 'Opt' - never permit an empty value
|
||||
ifeq ($(WM_COMPILE_OPTION),)
|
||||
ifeq (,$(WM_COMPILE_OPTION))
|
||||
WM_COMPILE_OPTION = Opt
|
||||
endif
|
||||
|
||||
ifeq ($(WM_SCHEDULER),)
|
||||
ifeq (,$(WM_SCHEDULER))
|
||||
AND = &&
|
||||
else
|
||||
AND = '&&'
|
||||
endif
|
||||
|
||||
include $(DEFAULT_RULES)/general
|
||||
sinclude $(DEFAULT_RULES)/override
|
||||
ifneq ("$(COMPILER_FAMILY)","$(WM_COMPILER)")
|
||||
sinclude $(RULES)/general
|
||||
sinclude $(RULES)/c++
|
||||
endif
|
||||
include $(GENERAL_RULES)/transform
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
||||
1
wmake/rules/General/mplib
Symbolic link
1
wmake/rules/General/mplib
Symbolic link
@ -0,0 +1 @@
|
||||
no-mpi
|
||||
7
wmake/rules/General/no-mpi
Normal file
7
wmake/rules/General/no-mpi
Normal file
@ -0,0 +1,7 @@
|
||||
# Empty flags for not compiling/linking MPI
|
||||
|
||||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
6
wmake/rules/General/no-openmp
Normal file
6
wmake/rules/General/no-openmp
Normal file
@ -0,0 +1,6 @@
|
||||
# Empty flags for not compiling/linking OPENMP
|
||||
|
||||
COMP_OPENMP =
|
||||
LINK_OPENMP =
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user