mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Added support for gcc-4.7.0
This commit is contained in:
@ -233,7 +233,13 @@ case "${foamCompiler}" in
|
|||||||
OpenFOAM | ThirdParty)
|
OpenFOAM | ThirdParty)
|
||||||
case "$WM_COMPILER" in
|
case "$WM_COMPILER" in
|
||||||
Gcc | Gcc++0x | Gcc46 | Gcc46++0x)
|
Gcc | Gcc++0x | Gcc46 | Gcc46++0x)
|
||||||
gcc_version=gcc-4.6.2
|
gcc_version=gcc-4.6.1
|
||||||
|
gmp_version=gmp-5.0.4
|
||||||
|
mpfr_version=mpfr-3.1.0
|
||||||
|
mpc_version=mpc-0.9
|
||||||
|
;;
|
||||||
|
Gcc47 | Gcc47++0x)
|
||||||
|
gcc_version=gcc-4.7.0
|
||||||
gmp_version=gmp-5.0.4
|
gmp_version=gmp-5.0.4
|
||||||
mpfr_version=mpfr-3.1.0
|
mpfr_version=mpfr-3.1.0
|
||||||
mpc_version=mpc-0.9
|
mpc_version=mpc-0.9
|
||||||
|
|||||||
@ -32,6 +32,7 @@ License
|
|||||||
#include "regIOobject.H" // for fileModificationSkew symbol
|
#include "regIOobject.H" // for fileModificationSkew symbol
|
||||||
|
|
||||||
#ifdef FOAM_USE_INOTIFY
|
#ifdef FOAM_USE_INOTIFY
|
||||||
|
# include <unistd.h>
|
||||||
# include <sys/inotify.h>
|
# include <sys/inotify.h>
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
|
|||||||
@ -53,7 +53,7 @@ template<class Type, class DType, class LUType>
|
|||||||
void Foam::SmoothSolver<Type, DType, LUType>::readControls()
|
void Foam::SmoothSolver<Type, DType, LUType>::readControls()
|
||||||
{
|
{
|
||||||
LduMatrix<Type, DType, LUType>::solver::readControls();
|
LduMatrix<Type, DType, LUType>::solver::readControls();
|
||||||
readControl(this->controlDict_, nSweeps_, "nSweeps");
|
this->readControl(this->controlDict_, nSweeps_, "nSweeps");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
16
wmake/rules/linux64Gcc47/c
Normal file
16
wmake/rules/linux64Gcc47/c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc -m64
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||||
21
wmake/rules/linux64Gcc47/c++
Normal file
21
wmake/rules/linux64Gcc47/c++
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
CC = g++ -m64
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
|
||||||
2
wmake/rules/linux64Gcc47/c++Debug
Normal file
2
wmake/rules/linux64Gcc47/c++Debug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
||||||
4
wmake/rules/linux64Gcc47/c++Opt
Normal file
4
wmake/rules/linux64Gcc47/c++Opt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
|
#c++OPT = -march=nocona -O3
|
||||||
|
# -ftree-vectorize -ftree-vectorizer-verbose=3
|
||||||
2
wmake/rules/linux64Gcc47/c++Prof
Normal file
2
wmake/rules/linux64Gcc47/c++Prof
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
||||||
2
wmake/rules/linux64Gcc47/cDebug
Normal file
2
wmake/rules/linux64Gcc47/cDebug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
||||||
2
wmake/rules/linux64Gcc47/cOpt
Normal file
2
wmake/rules/linux64Gcc47/cOpt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
||||||
2
wmake/rules/linux64Gcc47/cProf
Normal file
2
wmake/rules/linux64Gcc47/cProf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
||||||
8
wmake/rules/linux64Gcc47/general
Normal file
8
wmake/rules/linux64Gcc47/general
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
CPP = cpp -traditional-cpp
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
||||||
3
wmake/rules/linux64Gcc47/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc47/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||||
3
wmake/rules/linux64Gcc47/mplibINTELMPI
Normal file
3
wmake/rules/linux64Gcc47/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include64
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||||
Reference in New Issue
Block a user