Merge branch 'master' of ssh://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
Conflicts: ThirdParty/AllMake.stage1 ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0 ThirdParty/rpmBuild/SPECS/ParaView-3.12.0.spec ThirdParty/rpmBuild/SPECS/libccmio-2.6.1.spec ThirdParty/rpmBuild/SPECS/qt-everywhere-opensource-src-4.7.4.spec etc/prefs.csh-EXAMPLE etc/prefs.sh-EXAMPLE etc/settings.sh testHarness/OSIG/Turbomachinery/README.txt testHarness/OpenFOAM/1.6-ext/CMakeFiles/CMakeLists.txt
This commit is contained in:
commit
02b41462e1
95 changed files with 1362 additions and 66 deletions
|
@ -24,7 +24,7 @@
|
|||
#
|
||||
# Description
|
||||
# CMakeLists.txt file for implementing a test harness for the compilation
|
||||
# and test of OpenFOAM-1.5-dev using Kitware CTest./CMake/CDash
|
||||
# and test of OpenFOAM-1.6-ext using Kitware CTest./CMake/CDash
|
||||
#
|
||||
# The results will be submitted to the CDash server identified by the file
|
||||
# CTestConfig.cmake
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
PROJECT(OpenFOAM_1.5-dev)
|
||||
PROJECT(OpenFOAM_1.6-ext)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Initialization of CTest specific variables
|
||||
|
@ -92,7 +92,7 @@ SET(BUILDNAME "${BUILDNAME}-$ENV{WM_CC}${COMPILER_VERSION}")
|
|||
# We will support more compilers eventually.
|
||||
#
|
||||
|
||||
# Timeout for running all this: 4 hours: 4 x 3600 seconds
|
||||
# Timeout for running every single test: 4 hours: 4 x 3600 seconds
|
||||
#SET(
|
||||
# DART_TESTING_TIMEOUT 14400
|
||||
# CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test."
|
||||
|
@ -133,7 +133,7 @@ if(GIT_FOUND)
|
|||
)
|
||||
message("Git branch (mercurial): ${GIT_BRANCH_NAME}")
|
||||
endif()
|
||||
SET(BUILDNAME "${BUILDNAME}-git-branch:${GIT_BRANCH_NAME}")
|
||||
SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}")
|
||||
endif()
|
||||
|
||||
# Some last minute cleanup
|
||||
|
|
3
ThirdParty/AllMake.stage1
vendored
3
ThirdParty/AllMake.stage1
vendored
|
@ -89,8 +89,7 @@ echo
|
|||
#( rpm_make -p flex-2.5.35 -s flex-2.5.35.spec -u http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz )
|
||||
|
||||
# cmake
|
||||
( rpm_make -p cmake-2.8.6 -s cmake-2.8.6.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz )
|
||||
|
||||
( rpm_make -p cmake-2.8.8 -s cmake-2.8.8.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz )
|
||||
|
||||
echo ========================================
|
||||
echo Done ThirdParty AllMake: Stage1
|
||||
|
|
12
ThirdParty/rpmBuild/SOURCES/ParaView-3.12.0.patch_darwin
vendored
Normal file
12
ThirdParty/rpmBuild/SOURCES/ParaView-3.12.0.patch_darwin
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -ruN ParaView-3.12.0_orig/Applications/ParaView-3.12.0_extra_install_Darwin.cmake ParaView-3.12.0/Applications/ParaView-3.12.0_extra_install_Darwin.cmake
|
||||
--- ParaView-3.12.0_orig/Applications/ParaView-3.12.0_extra_install_Darwin.cmake 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ ParaView-3.12.0/Applications/ParaView-3.12.0_extra_install_Darwin.cmake 2010-11-06 19:34:12.000000000 -0400
|
||||
@@ -0,0 +1,8 @@
|
||||
+#
|
||||
+# Additional install rules for Mac OS X platforms
|
||||
+#
|
||||
+INSTALL (DIRECTORY ../../buildObj/bin/paraview.app
|
||||
+ DESTINATION ${PV_INSTALL_BIN_DIR}
|
||||
+ USE_SOURCE_PERMISSIONS
|
||||
+ COMPONENT Runtime)
|
||||
+
|
|
@ -7,7 +7,15 @@ diff -ruN libccmio-2.6.1_orig/config/config.gnu.to.star libccmio-2.6.1/config/co
|
|||
|
||||
# $Id: config.gnu.to.star,v 1.4 2006/06/05 21:12:16 geoffp Exp $
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
@@ -24,6 +24,7 @@
|
||||
mips-sgi-irix64_6-null) echo irix64_6.5-mips4 ;;
|
||||
i586-unknown-linux_2.2-glibc-null) echo linux_2.2-x86-glibc_2.2.0 ;;
|
||||
i586-unknown-linux_2.4-glibc-null) echo linux_2.4-x86-glibc_2.3.2 ;;
|
||||
+ i586-unknown-linux-libc5-null) echo linux_2.4-x86-glibc_2.3.2 ;;
|
||||
ia64-unknown-linux-null) echo linux64_2.4-itanium-glibc_2.2.4 ;;
|
||||
alpha-dec-osf3-null) echo osf1_4.0-com ;;
|
||||
alpha-dec-osf5-null) echo osf1_5.1-com ;;
|
||||
@@ -34,6 +35,8 @@
|
||||
x86_64-unknown-linux-gnu-null) echo linux64_2.4-x86-glibc_2.2.5 ;;
|
||||
ppc64-unknown-linux-gnu-null) echo linux64_2.6-pwr4-glibc_2.3.3 ;;
|
||||
i386-apple-darwin8-null) echo i386-apple-darwin8 ;;
|
||||
|
@ -34,7 +42,7 @@ diff -ruN libccmio-2.6.1_orig/config/config.system libccmio-2.6.1/config/config.
|
|||
|
||||
# $Id: config.system,v 1.2 2005/09/29 22:19:19 geoffp Exp $
|
||||
|
||||
@@ -87,6 +87,12 @@
|
||||
@@ -87,6 +87,15 @@
|
||||
i386-apple-darwin8.11.1)
|
||||
echo i386-apple-darwin8 ;;
|
||||
|
||||
|
@ -43,6 +51,9 @@ diff -ruN libccmio-2.6.1_orig/config/config.system libccmio-2.6.1/config/config.
|
|||
+
|
||||
+ i386-apple-darwin11.2.0 )
|
||||
+ echo i386-apple-darwin11 ;;
|
||||
+
|
||||
+ i386-apple-darwin11.3.0 )
|
||||
+ echo i386-apple-darwin11 ;;
|
||||
+
|
||||
*)
|
||||
echo unknown
|
||||
|
|
11
ThirdParty/rpmBuild/SOURCES/mesquite-2.1.2_patch0
vendored
Normal file
11
ThirdParty/rpmBuild/SOURCES/mesquite-2.1.2_patch0
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -rupN mesquite-2.1.2/include/Mesquite.hpp mesquite-2.1.2_mod/include/Mesquite.hpp
|
||||
--- mesquite-2.1.2/include/Mesquite.hpp 2012-05-09 20:53:10.558214520 +0200
|
||||
+++ mesquite-2.1.2_mod/include/Mesquite.hpp 2012-04-30 10:24:48.000000000 +0200
|
||||
@@ -53,6 +53,7 @@
|
||||
#define MESQUITE_EXPORT
|
||||
#endif
|
||||
|
||||
+#include <cstddef>
|
||||
#include <cmath>
|
||||
#include <cfloat>
|
||||
#include <climits>
|
|
@ -39,7 +39,7 @@ diff -ruN scotch_5.1.10b_orig/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib sco
|
|||
-CCD = gcc
|
||||
-CFLAGS = -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DSCOTCH_PTHREAD -Drestrict=__restrict
|
||||
-CLIBFLAGS = -shared -fPIC
|
||||
+CCD = gcc -I$(MPI_HOME)/include
|
||||
+CCD = mpicc -I$(MPI_HOME)/include
|
||||
+CFLAGS = -O3 -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DSCOTCH_PTHREAD -Drestrict=__restrict
|
||||
+CLIBFLAGS = -shared
|
||||
LDFLAGS = -lz -lm -lrt
|
||||
|
|
13
ThirdParty/rpmBuild/SPECS/ParaView-3.12.0.spec
vendored
13
ThirdParty/rpmBuild/SPECS/ParaView-3.12.0.spec
vendored
|
@ -29,7 +29,7 @@
|
|||
# RPM spec file for creating a relocatable RPM
|
||||
#
|
||||
# Author:
|
||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
||||
# Martin Beaudoin, Hydro-Quebec, (2012)
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
@ -73,7 +73,7 @@ License: Unkown
|
|||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
URL: http://www.paraview.org/files/v3.12/
|
||||
URL: http://www.paraview.org/files/v3.12/
|
||||
Source: %url/%{name}-%{version}.tar.gz
|
||||
Prefix: %{_prefix}
|
||||
Group: Development/Tools
|
||||
|
@ -89,8 +89,8 @@ Patch0: ParaView-3.12.0.patch_darwin
|
|||
#
|
||||
%{!?_withVerbose: %define _withVerbose false}
|
||||
%{!?_withMesa: %define _withMesa false}
|
||||
%{!?_withMPI: %define _withMPI false}
|
||||
%{!?_withPython: %define _withPython false}
|
||||
%{!?_withMPI: %define _withMPI true}
|
||||
%{!?_withPython: %define _withPython true}
|
||||
%{!?_withQt: %define _withQt true}
|
||||
%{!?_qmakePath: %define _qmakePath Undefined}
|
||||
%{!?_mesaIncludePath: %define _mesaIncludePath Undefined}
|
||||
|
@ -266,7 +266,12 @@ DOT_CSH_EOF
|
|||
# as a non-root user might be a problem.
|
||||
(mkdir -p %{_topdir}/TGZS/%{_target_cpu}; cd $RPM_BUILD_ROOT/%{_prefix}; tar -zcvf %{_topdir}/TGZS/%{_target_cpu}/%{name}-%{version}.tgz packages/%{name}-%{version})
|
||||
|
||||
# Make sure we clean the installation directory. Somehow, make install generates files there. Need to revisit this eventually.
|
||||
(rm -rf %{_prefix}/packages/%{name}-%{version} )
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{_prefix}/packages/%{name}-%{version}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
|
151
ThirdParty/rpmBuild/SPECS/cmake-2.8.8.spec
vendored
Normal file
151
ThirdParty/rpmBuild/SPECS/cmake-2.8.8.spec
vendored
Normal file
|
@ -0,0 +1,151 @@
|
|||
#------------------------------------------------------------------------------
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright held by original author
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
#
|
||||
# OpenFOAM is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version.
|
||||
#
|
||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenFOAM; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# Script
|
||||
# RPM spec file for cmake-2.8.8
|
||||
#
|
||||
# Description
|
||||
# RPM spec file for creating a relocatable RPM
|
||||
#
|
||||
# Author:
|
||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# We grab the value of WM_THIRD_PARTY and WM_OPTIONS from the environment variable
|
||||
%{expand:%%define _WM_THIRD_PARTY_DIR %(echo $WM_THIRD_PARTY_DIR)}
|
||||
%{expand:%%define _WM_OPTIONS %(echo $WM_OPTIONS)}
|
||||
|
||||
# Disable the generation of debuginfo packages
|
||||
%define debug_package %{nil}
|
||||
|
||||
# The topdir needs to point to the $WM_THIRD_PARTY/rpmbuild directory
|
||||
%define _topdir %{_WM_THIRD_PARTY_DIR}/rpmBuild
|
||||
%define _tmppath %{_topdir}/tmp
|
||||
|
||||
# Will install the package directly $WM_THIRD_PARTY_DIR
|
||||
# Some comments about package relocation:
|
||||
# By using this prefix for the Prefix: parameter in thi file, you will make this
|
||||
# package relocatable.
|
||||
#
|
||||
# This is fine, as long as your software is itself relocatable.
|
||||
#
|
||||
# Simply take note that libraries built with libtool are not relocatable because the
|
||||
# prefix we specify will be hard-coded in the library .la files.
|
||||
# Ref: http://sourceware.org/autobook/autobook/autobook_80.html
|
||||
#
|
||||
# In that case, if you ever change the value of the $WM_THIRD_PARTY_DIR, you will
|
||||
# not be able to reutilize this RPM, even though it is relocatable. You will need to
|
||||
# regenerate the RPM.
|
||||
#
|
||||
%define _prefix %{_WM_THIRD_PARTY_DIR}
|
||||
|
||||
%define name cmake
|
||||
%define release %{_WM_OPTIONS}
|
||||
%define version 2.8.8
|
||||
|
||||
%define buildroot %{_topdir}/BUILD/%{name}-%{version}-root
|
||||
|
||||
BuildRoot: %{buildroot}
|
||||
Summary: cmake
|
||||
License: Unkown
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
URL: http://www.cmake.org/files/v2.8/
|
||||
Source: %url/%{name}-%{version}.tar.gz
|
||||
Prefix: %{_prefix}
|
||||
Group: Development/Tools
|
||||
|
||||
|
||||
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
# export WM settings in a form that GNU configure recognizes
|
||||
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
||||
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
||||
[ -n "$WM_CFLAGS" ] && export CFLAGS="$WM_CFLAGS"
|
||||
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
||||
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||
|
||||
./configure \
|
||||
--prefix=%{_installPrefix}
|
||||
|
||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||
make -j $WM_NCOMPPROCS
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
# Creation of OpenFOAM specific .csh and .sh files"
|
||||
|
||||
echo ""
|
||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
||||
echo ""
|
||||
#
|
||||
# Generate package specific .sh file for OpenFOAM
|
||||
#
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||
# Load %{name}-%{version} libraries and binaries if available
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export CMAKE_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||
export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||
|
||||
# Enable access to the runtime package applications
|
||||
[ -d \$CMAKE_BIN_DIR ] && _foamAddPath \$CMAKE_BIN_DIR
|
||||
DOT_SH_EOF
|
||||
|
||||
#
|
||||
# Generate package specific .csh file for OpenFOAM
|
||||
#
|
||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||
# Load %{name}-%{version} libraries and binaries if available
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
setenv CMAKE_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||
setenv CMAKE_BIN_DIR \$CMAKE_DIR/bin
|
||||
|
||||
if ( -e \$CMAKE_BIN_DIR ) then
|
||||
_foamAddPath \$CMAKE_BIN_DIR
|
||||
endif
|
||||
DOT_CSH_EOF
|
||||
|
||||
#finally, generate a .tgz file for systems where using rpm for installing packages
|
||||
# as a non-root user might be a problem.
|
||||
(mkdir -p %{_topdir}/TGZS/%{_target_cpu}; cd $RPM_BUILD_ROOT/%{_prefix}; tar -zcvf %{_topdir}/TGZS/%{_target_cpu}/%{name}-%{version}.tgz packages/%{name}-%{version})
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_installPrefix}
|
||||
|
9
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
9
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
|
@ -166,12 +166,5 @@ rm -rf %{buildroot}
|
|||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_installPrefix}/bin
|
||||
%{_installPrefix}/etc
|
||||
%{_installPrefix}/include
|
||||
%{_installPrefix}/info
|
||||
%{_installPrefix}/lib
|
||||
%{_installPrefix}/libexec
|
||||
%{_installPrefix}/man
|
||||
%{_installPrefix}/share
|
||||
%{_installPrefix}
|
||||
|
||||
|
|
|
@ -97,9 +97,9 @@ Patch0: libccmio-2.6.1.patch_0
|
|||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||
|
||||
%ifos darwin
|
||||
# Missing configuration for Mac OS X 10
|
||||
[ ! -d configi386-apple-darwin10 ] && cp -r config/i386-apple-darwin8 config/i386-apple-darwin10
|
||||
[ ! -d configi386-apple-darwin11 ] && cp -r config/i386-apple-darwin8 config/i386-apple-darwin11
|
||||
# Missing configuration files for Mac OS X
|
||||
[ ! -d config/i386-apple-darwin10 ] && cp -r config/i386-apple-darwin8 config/i386-apple-darwin10
|
||||
[ ! -d config/i386-apple-darwin11 ] && cp -r config/i386-apple-darwin8 config/i386-apple-darwin11
|
||||
%endif
|
||||
# Warning:
|
||||
# 1: The name of the ADF library will be renamed to libadf_ccmio since this
|
||||
|
|
27
ThirdParty/rpmBuild/SPECS/mesquite-2.1.2.spec
vendored
27
ThirdParty/rpmBuild/SPECS/mesquite-2.1.2.spec
vendored
|
@ -31,6 +31,9 @@
|
|||
# Author:
|
||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
||||
#
|
||||
# Contributor:
|
||||
# Philippose Rajan : patch0 for gcc 4.6.x
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# We grab the value of WM_THIRD_PARTY and WM_OPTIONS from the environment variable
|
||||
|
@ -77,6 +80,7 @@ URL: http://software.sandia.gov/~jakraft
|
|||
Source: %url/%{name}-%{version}.tar.gz
|
||||
Prefix: %{_prefix}
|
||||
Group: Development/Tools
|
||||
Patch0: mesquite-2.1.2_patch0
|
||||
|
||||
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
||||
|
||||
|
@ -86,6 +90,8 @@ Group: Development/Tools
|
|||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# export WM settings in a form that GNU configure recognizes
|
||||
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
||||
|
@ -95,15 +101,16 @@ Group: Development/Tools
|
|||
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||
|
||||
./configure \
|
||||
--prefix=%{_installPrefix} \
|
||||
--enable-release \
|
||||
--disable-debug-assertions \
|
||||
--disable-igeom \
|
||||
--disable-imesh \
|
||||
--disable-irel \
|
||||
--enable-shared \
|
||||
--without-cppunit \
|
||||
--enable-trap-fpe \
|
||||
--prefix=%{_installPrefix} \
|
||||
--libdir=%{_installPrefix}/lib \
|
||||
--enable-release \
|
||||
--disable-debug-assertions \
|
||||
--disable-igeom \
|
||||
--disable-imesh \
|
||||
--disable-irel \
|
||||
--enable-shared \
|
||||
--without-cppunit \
|
||||
--enable-trap-fpe \
|
||||
--disable-function-timers
|
||||
|
||||
# Remove the file include/Mesquite_all_headers.hpp
|
||||
|
@ -111,7 +118,7 @@ Group: Development/Tools
|
|||
[ -e include/Mesquite_all_headers.hpp ] && rm -f include/Mesquite_all_headers.hpp
|
||||
|
||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||
make -j $WM_NCOMPPROCS
|
||||
make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -mtune=native -fPIC"
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
# RPM spec file for creating a relocatable RPM
|
||||
#
|
||||
# Author:
|
||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
||||
# Martin Beaudoin, Hydro-Quebec, (2012)
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
@ -130,9 +130,11 @@ cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
|||
|
||||
export QT_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||
export QT_BIN_DIR=\$QT_DIR/bin
|
||||
export QT_LIB_DIR=\$QT_DIR/lib
|
||||
|
||||
# Enable access to the runtime package applications
|
||||
[ -d \$QT_BIN_DIR ] && _foamAddPath \$QT_BIN_DIR
|
||||
[ -d \$QT_LIB_DIR ] && _foamAddLib \$QT_LIB_DIR
|
||||
DOT_SH_EOF
|
||||
|
||||
#
|
||||
|
@ -143,10 +145,15 @@ cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.cs
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
setenv QT_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||
setenv QT_BIN_DIR \$QT_DIR/bin
|
||||
setenv QT_LIB_DIR \$QT_DIR/lib
|
||||
|
||||
if ( -e \$QT_BIN_DIR ) then
|
||||
_foamAddPath \$QT_BIN_DIR
|
||||
endif
|
||||
|
||||
if ( -e \$QT_LIB_DIR ) then
|
||||
_foamAddLib \$QT_LIB_DIR
|
||||
endif
|
||||
DOT_CSH_EOF
|
||||
|
||||
#finally, generate a .tgz file for systems where using rpm for installing packages
|
||||
|
|
|
@ -0,0 +1,164 @@
|
|||
Installation of OpenFOAM-1.6-ext on Centos 5.5 64-bit
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Network download and installation from:
|
||||
ftp://mirrors.usc.edu/pub/linux/distributions/centos/5.5/os/x86_64/
|
||||
|
||||
Basic configuration:
|
||||
Desktop - Gnome
|
||||
Packages from CentOS Extras: unchecked
|
||||
|
||||
Complete installation log: /root/install.log
|
||||
|
||||
Run Package updater to update your installation
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add your user as a valid user for the command 'sudo'.
|
||||
|
||||
You will need to use the command 'visudo' as the user root for this.
|
||||
|
||||
I won't go into the details for this, there is a lot of info all over the Net
|
||||
for doing this relatively minor adjustment.
|
||||
|
||||
In doubt, simply ask your local Unix guru.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Add the EPEL package repository:
|
||||
sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
|
||||
sudo yum install git-1.7.4.1-1.el5.x86_64
|
||||
sudo yum install gcc.x86_64 gcc-c++.x86_64
|
||||
sudo yum install bison.x86_64
|
||||
sudo yum install flex.x86_64
|
||||
sudo yum install rpm-build-4.4.2.3-22.el5.x86_64
|
||||
sudo yum install zlib-devel-1.2.3-3.x86_64
|
||||
sudo yum install libX11-devel.x86_64
|
||||
sudo yum install libXext-devel.x86_64
|
||||
sudo yum install libXrender-devel.x86_64
|
||||
sudo yum install libXt-devel-1.0.2-3.2.el5.x86_64
|
||||
|
||||
# You can also install everything at once:
|
||||
|
||||
sudo yum install \
|
||||
git-1.7.4.1-1.el5.x86_64 \
|
||||
gcc.x86_64 gcc-c++.x86_64 \
|
||||
bison.x86_64 \
|
||||
flex.x86_64 \
|
||||
rpm-build-4.4.2.3-22.el5.x86_64 \
|
||||
zlib-devel-1.2.3-3.x86_64 \
|
||||
libX11-devel.x86_64 \
|
||||
libXext-devel.x86_64 \
|
||||
libXrender-devel.x86_64 \
|
||||
libXt-devel-1.0.2-3.2.el5.x86_64
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We need to tweak our OpenFOAM setup using the prefs.sh file
|
||||
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE \
|
||||
~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use version 4.4.5 of gcc, provided by the ThirdParty packages
|
||||
#
|
||||
# The versions provided by Centos 5.5 are either too old, or a just a preview
|
||||
# version of gcc 4.4.0, which is a bit 'green'.
|
||||
#
|
||||
# So the system installed compiler will only serve to compile gcc 4.4.5.
|
||||
|
||||
# Modify the etc/prefs.sh file to switch to gcc 4.4.5
|
||||
sed -i s/"compilerInstall=System"/"compilerInstall=OpenFOAM\nWM_COMPILER=Gcc44"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# Activate the compilation of gcc 4.4.5 in the ThirdParty/AllMake.stage1 file
|
||||
sed -i 0,/"#( rpm_make -p gmp-5.0.1"/s//"( rpm_make -p gmp-5.0.1"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1
|
||||
sed -i 0,/"#( rpm_make -p mpfr-3.0.1"/s//"( rpm_make -p mpfr-3.0.1"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1
|
||||
sed -i 0,/"#( rpm_make -p gcc-4.4.5"/s//"( rpm_make -p gcc-4.4.5"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1
|
||||
|
||||
# Add the wmake rules set for Gcc44
|
||||
ln -s ~/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc ~/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc44
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# We are going to use the version of QT4 provided by the ThirdParty packages
|
||||
|
||||
# Uncomment and modify the initialization of the variables QT_THIRD_PARTY in the
|
||||
# file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_THIRD_PARTY=1"/"export QT_THIRD_PARTY=1"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
export QT_THIRD_PARTY=1
|
||||
#export QT_DIR=path_to_system_installed_qt
|
||||
#export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source this initial OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# You will get some warnings about missing file for gcc-4.4.5, and problem with
|
||||
# your compiler installation.
|
||||
# This is quite normal, your gcc-4.4.5 compiler is not even compiled and
|
||||
# installed yet. Patience patience...
|
||||
|
||||
# Compile the ThirdParty packages, including the gcc 4.4.5 compiler
|
||||
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake >& log.AllMake &
|
||||
tail -f log.AllMake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Execute Allwmake a second time because of a bad library building sequence for
|
||||
# the library -lfaceDecompositionMotionSolver
|
||||
|
||||
./Allwmake >& log.Allwmake2 &
|
||||
tail -f log.Allwmake2 # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
August 2011
|
|
@ -0,0 +1,112 @@
|
|||
Installation of OpenFOAM-1.6-ext on Ubuntu 10.04.3 32-bit
|
||||
|
||||
- Proceed with the installation of the OS
|
||||
- Update your OS installation using "Update Manager".
|
||||
- If asked to reboot your system, please do so.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
git: sudo apt-get install git-core
|
||||
flex: sudo apt-get install flex
|
||||
bison: sudo apt-get install bison
|
||||
rpm: sudo apt-get install rpm
|
||||
g++: sudo apt-get install g++
|
||||
libz: sudo apt-get install zlib1g-dev
|
||||
binutils-dev : sudo apt-get install binutils-dev
|
||||
qt4: sudo apt-get install libqt4-dev qt4-dev-tools
|
||||
|
||||
libxext: sudo apt-get install libxext-dev
|
||||
libxt : sudo apt-get install libxt-dev
|
||||
|
||||
# You can also install everything at once:
|
||||
sudo apt-get install git-core flex bison rpm g++ zlib1g-dev binutils-dev \
|
||||
libqt4-dev qt4-dev-tools libxext-dev libxt-dev
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Minor correction for make/gmake
|
||||
sudo ln -s /usr/bin/make /usr/bin/gmake
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of libstdc++.so.5:
|
||||
|
||||
For Ubuntu 32bit:
|
||||
-----------------
|
||||
Grab the package libstdc++5_3.3.6-24_i386.deb from one of the sites listed here:
|
||||
http://packages.debian.org/lenny/i386/libstdc++5/download
|
||||
|
||||
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-24_i386.deb
|
||||
dpkg-deb -x ./libstdc++5_3.3.6-24_i386.deb /tmp/tmp_dir
|
||||
|
||||
sudo cp /tmp/tmp_dir/usr/lib/libstdc++.so.5.0.7 /usr/lib/
|
||||
sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5
|
||||
rm -rf /tmp/tmp_dir
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use the system installed version of QT4
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
#Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
#export QT_THIRD_PARTY=1
|
||||
export QT_DIR=/usr
|
||||
export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source your OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile the ThirdParty packages
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake >& log.AllMake &
|
||||
tail -f log.AllMake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Execute Allwmake a second time because of a bad library building sequence for
|
||||
# the library -lfaceDecompositionMotionSolver
|
||||
|
||||
./Allwmake >& log.Allwmake2 &
|
||||
tail -f log.Allwmake2 # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
August 2011
|
|
@ -0,0 +1,112 @@
|
|||
Installation of OpenFOAM-1.6-ext on Ubuntu 10.04.3 64-bit
|
||||
|
||||
- Proceed with the installation of the OS
|
||||
- Update your OS installation using "Update Manager".
|
||||
- If asked to reboot your system, please do so.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
git: sudo apt-get install git-core
|
||||
flex: sudo apt-get install flex
|
||||
bison: sudo apt-get install bison
|
||||
rpm: sudo apt-get install rpm
|
||||
g++: sudo apt-get install g++
|
||||
libz: sudo apt-get install zlib1g-dev
|
||||
binutils-dev : sudo apt-get install binutils-dev
|
||||
qt4: sudo apt-get install libqt4-dev qt4-dev-tools
|
||||
|
||||
libxext: sudo apt-get install libxext-dev
|
||||
libxt : sudo apt-get install libxt-dev
|
||||
|
||||
# You can also install everything at once:
|
||||
sudo apt-get install git-core flex bison rpm g++ zlib1g-dev binutils-dev \
|
||||
libqt4-dev qt4-dev-tools libxext-dev libxt-dev
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Minor correction for make/gmake
|
||||
sudo ln -s /usr/bin/make /usr/bin/gmake
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of libstdc++.so.5:
|
||||
|
||||
For Ubuntu 64bit:
|
||||
-----------------
|
||||
Grab the package libstdc++5_3.3.6-24_amd64.deb from one of the sites listed here:
|
||||
http://packages.debian.org/lenny/amd64/Libstdc++5/download
|
||||
|
||||
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-24_amd64.deb
|
||||
dpkg-deb -x ./libstdc++5_3.3.6-24_amd64.deb /tmp/tmp_dir
|
||||
|
||||
sudo cp /tmp/tmp_dir/usr/lib/libstdc++.so.5.0.7 /usr/lib/
|
||||
sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5
|
||||
rm -rf /tmp/tmp_dir
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use the system installed version of QT4
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
#Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
#export QT_THIRD_PARTY=1
|
||||
export QT_DIR=/usr
|
||||
export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source your OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile the ThirdParty packages
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake >& log.AllMake &
|
||||
tail -f log.AllMake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Execute Allwmake a second time because of a bad library building sequence for
|
||||
# the library -lfaceDecompositionMotionSolver
|
||||
|
||||
./Allwmake >& log.Allwmake2 &
|
||||
tail -f log.Allwmake2 # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
August 2011
|
|
@ -0,0 +1,120 @@
|
|||
Installation of OpenFOAM-1.6-ext on Ubuntu 12.04 32-bit
|
||||
|
||||
- Proceed with the installation of the OS
|
||||
- Update your OS installation using "Update Manager".
|
||||
- If asked to reboot your system, please do so.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
git: sudo apt-get install git
|
||||
flex: sudo apt-get install flex
|
||||
bison: sudo apt-get install bison
|
||||
rpm: sudo apt-get install rpm
|
||||
g++: sudo apt-get install g++
|
||||
libz: sudo apt-get install zlib1g-dev
|
||||
binutils-dev : sudo apt-get install binutils-dev
|
||||
openmpi: sudo apt-get install openmpi-bin libopenmpi-dev
|
||||
libxext: sudo apt-get install libxext-dev
|
||||
libxt : sudo apt-get install libxt-dev
|
||||
libXrender: sudo apt-get install libxrender-dev
|
||||
libstdc++5: sudo apt-get install libstdc++5
|
||||
OpenGL: sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
|
||||
|
||||
# You can also install everything at once:
|
||||
sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \
|
||||
openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev \
|
||||
libstdc++5 libgl1-mesa-dev libglu1-mesa-dev
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# If you need to compile swak4Foam, it is a good idea to install Mercurial (hg)
|
||||
# sudo apt-get install mercurial
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Minor correction for make/gmake
|
||||
sudo ln -s /usr/bin/make /usr/bin/gmake
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Create the file etc/prefs.sh
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Use the system compiler
|
||||
sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Use the system installation of OpenMPI
|
||||
sed -i s/"#export WM_MPLIB=SYSTEMOPENMPI"/"export WM_MPLIB=SYSTEMOPENMPI"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_DIR=path_to_system_installed_openmpi"/"export OPENMPI_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/"export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# About QT4
|
||||
#
|
||||
# Ubuntu 12.04 comes with QT4 version 4.8.1
|
||||
# Even thoug ParaView will compile with this version of QT, ParaView will also generate a bunch of
|
||||
# warnings on the console at runtime. So we will be using the version of QT4 supplied with the
|
||||
# ThirdParty packages.
|
||||
|
||||
#Uncomment the variable QT_THIRD_PARTY in the file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_THIRD_PARTY=1"/"export QT_THIRD_PARTY=1"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
export QT_THIRD_PARTY=1
|
||||
#export QT_DIR=path_to_system_installed_qt
|
||||
#export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source your OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Compile the ThirdParty packages
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake.stage1 >& log.AllMake.stage1
|
||||
#./AllMake.stage2 >& log.AllMake.stage2 # No need for this one
|
||||
./AllMake.stage3 >& log.AllMake.stage3
|
||||
./AllMake.stage4 >& log.AllMake.stage4
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
May 2012
|
|
@ -0,0 +1,119 @@
|
|||
Installation of OpenFOAM-1.6-ext on Ubuntu 12.04 64-bit
|
||||
|
||||
- Proceed with the installation of the OS
|
||||
- Update your OS installation using "Update Manager".
|
||||
- If asked to reboot your system, please do so.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
git: sudo apt-get install git
|
||||
flex: sudo apt-get install flex
|
||||
bison: sudo apt-get install bison
|
||||
rpm: sudo apt-get install rpm
|
||||
g++: sudo apt-get install g++
|
||||
libz: sudo apt-get install zlib1g-dev
|
||||
binutils-dev : sudo apt-get install binutils-dev
|
||||
openmpi: sudo apt-get install openmpi-bin libopenmpi-dev
|
||||
libxext: sudo apt-get install libxext-dev
|
||||
libxt : sudo apt-get install libxt-dev
|
||||
libXrender: sudo apt-get install libxrender-dev
|
||||
OpenGL: sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
|
||||
|
||||
# You can also install everything at once:
|
||||
sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \
|
||||
openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev \
|
||||
libgl1-mesa-dev libglu1-mesa-dev
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# If you need to compile swak4Foam, it is a good idea to install Mercurial (hg)
|
||||
# sudo apt-get install mercurial
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Minor correction for make/gmake
|
||||
sudo ln -s /usr/bin/make /usr/bin/gmake
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Create the file etc/prefs.sh
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Use the system compiler
|
||||
sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Use the system installation of OpenMPI
|
||||
sed -i s/"#export WM_MPLIB=SYSTEMOPENMPI"/"export WM_MPLIB=SYSTEMOPENMPI"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_DIR=path_to_system_installed_openmpi"/"export OPENMPI_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/"export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# About QT4
|
||||
#
|
||||
# Ubuntu 12.04 comes with QT4 version 4.8.1
|
||||
# Even thoug ParaView will compile with this version of QT, ParaView will also generate a bunch of
|
||||
# warnings on the console at runtime. So we will be using the version of QT4 supplied with the
|
||||
# ThirdParty packages.
|
||||
|
||||
#Uncomment the variable QT_THIRD_PARTY in the file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_THIRD_PARTY=1"/"export QT_THIRD_PARTY=1"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
export QT_THIRD_PARTY=1
|
||||
#export QT_DIR=/usr
|
||||
#export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source your OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Compile the ThirdParty packages
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake.stage1 >& log.AllMake.stage1
|
||||
#./AllMake.stage2 >& log.AllMake.stage2 # No need for this one
|
||||
./AllMake.stage3 >& log.AllMake.stage3
|
||||
./AllMake.stage4 >& log.AllMake.stage4
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
May 2012
|
|
@ -0,0 +1,124 @@
|
|||
Installation of OpenFOAM-1.6-ext on openSUSE 12.1 64-bit
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
We assume you have a fresh installation of openSUSE 12.1 64-bit, with all the
|
||||
necessary updates already applied
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Installation of additional system packages:
|
||||
|
||||
sudo zypper install git
|
||||
sudo zypper install openmpi-devel
|
||||
sudo zypper install gnuplot
|
||||
sudo zypper install -t pattern devel_qt4
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Download OpenFOAM-1.6-ext
|
||||
|
||||
mkdir ~/OpenFOAM
|
||||
cd ~/OpenFOAM
|
||||
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We need to tweak our OpenFOAM setup using the prefs.sh file
|
||||
|
||||
cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE \
|
||||
~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use version system installed version of gcc 4.6.2
|
||||
|
||||
# Modify the etc/prefs.sh file to switch to gcc 4.6.2
|
||||
sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use the system installed version of openmpi-1.4.3
|
||||
#
|
||||
# No need to run AllMake.stage2
|
||||
sed -i s/"#export WM_MPLIB=SYSTEMOPENMPI"/"export WM_MPLIB=SYSTEMOPENMPI"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_DIR=path_to_system_installed_openmpi"/"export OPENMPI_DIR=\/usr\/lib64\/mpi\/gcc\/openmpi"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/"export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# We are going to use the system installed development version of Qt (Version: 4.7.4-19.6.1)
|
||||
|
||||
# Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the
|
||||
# file prefs.sh
|
||||
|
||||
sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
|
||||
|
||||
# This section of the prefs.sh file should now look like this:
|
||||
|
||||
#export QT_THIRD_PARTY=1
|
||||
export QT_DIR=/usr
|
||||
export QT_BIN_DIR=$QT_DIR/bin
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# ParaView:
|
||||
#
|
||||
# Version 3.8.1 of ParaView does not compile with gcc 4.6.2 on openSUSE 12.1
|
||||
#
|
||||
# I suggest you switch to ParaView 12.1
|
||||
#
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Source this initial OpenFOAM environment to get the basic configuration for
|
||||
# compilation
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile the ThirdParty packages
|
||||
|
||||
cd $WM_PROJECT_DIR/ThirdParty
|
||||
./AllMake.stage1 >& log.AllMake.stage1
|
||||
./AllMake.stage3 >& log.AllMake.stage3
|
||||
./AllMake.stage4 >& log.AllMake.stage4
|
||||
|
||||
# You can keep an eye on the compilation process with the command tail e.g:
|
||||
# tail -f log.AllMake.stage1
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Update your OpenFOAM environment to get the basic configuration from the newly
|
||||
# compiled ThirdParty packages
|
||||
|
||||
. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
|
||||
|
||||
# Compile OpenFOAM-1.6-ext
|
||||
|
||||
cd $WM_PROJECT_DIR
|
||||
./Allwmake >& log.Allwmake &
|
||||
tail -f log.Allwmake # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Execute Allwmake a second time because of a bad library building sequence for
|
||||
# the library -lfaceDecompositionMotionSolver
|
||||
# Warning: Not sure if this is still necessary... MB 05/2012
|
||||
|
||||
./Allwmake >& log.Allwmake2 &
|
||||
tail -f log.Allwmake2 # To keep an eye on the compilation process
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Run a tutorial to check the basic functionality
|
||||
|
||||
cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily
|
||||
blockMesh >& log.blockMesh
|
||||
simpleFoam >& log.simpleFoam
|
||||
paraFoam
|
||||
|
||||
# You are done!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Martin Beaudoin
|
||||
May 2012
|
|
@ -101,6 +101,13 @@ case OpenFOAM:
|
|||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||
breaksw
|
||||
case Gcc45:
|
||||
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.csh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.csh
|
||||
breaksw
|
||||
case Gcc44:
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
||||
|
@ -425,8 +432,8 @@ endif
|
|||
|
||||
# cmake
|
||||
# ~~~~~
|
||||
if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.5/platforms/$WM_OPTIONS ) then
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS/etc/cmake-2.8.5.csh
|
||||
if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.8/platforms/$WM_OPTIONS ) then
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.8/platforms/$WM_OPTIONS/etc/cmake-2.8.8.csh
|
||||
endif
|
||||
|
||||
# Python
|
||||
|
@ -443,8 +450,8 @@ endif
|
|||
|
||||
# QT
|
||||
# ~~~~~
|
||||
if ( $?QT_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS )then
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.0.csh
|
||||
if ( $?QT_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS )then
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.4.csh
|
||||
endif
|
||||
|
||||
# PARAVIEW
|
||||
|
|
|
@ -70,7 +70,7 @@ _foamSource()
|
|||
}
|
||||
|
||||
# location of the jobControl directory
|
||||
export FOAM_JOB_DIR=$WM_PROJECT_INST_DIR/jobControl
|
||||
export FOAM_JOB_DIR=$HOME/$WM_PROJECT/jobControl
|
||||
|
||||
# wmake configuration
|
||||
export WM_DIR=$WM_PROJECT_DIR/wmake
|
||||
|
@ -136,11 +136,18 @@ OpenFOAM)
|
|||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||
;;
|
||||
Gcc45)
|
||||
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.sh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.sh
|
||||
;;
|
||||
Gcc44)
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS/etc/gcc-4.4.5.sh
|
||||
;;
|
||||
;;
|
||||
Gcc43)
|
||||
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH
|
||||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||
|
@ -480,8 +487,8 @@ export MPI_BUFFER_SIZE
|
|||
|
||||
# Load cmake
|
||||
# ~~~~~~~~~~
|
||||
[ -z "$CMAKE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.6/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.6/platforms/$WM_OPTIONS/etc/cmake-2.8.6.sh
|
||||
[ -z "$CMAKE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS/etc/cmake-2.8.5.sh
|
||||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " CMAKE_DIR is initialized to: $CMAKE_DIR"
|
||||
|
||||
|
@ -509,8 +516,8 @@ export MPI_BUFFER_SIZE
|
|||
|
||||
# Load zoltan
|
||||
# ~~~~~~~~~~
|
||||
[ -z "$ZOLTAN_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/zoltan-3.5/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan-3.5/platforms/$WM_OPTIONS/etc/zoltan-3.5.sh
|
||||
[ -z "$ZOLTAN_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/zoltan_3.5 ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan_3.5/platforms/$WM_OPTIONS/etc/zoltan_3.5.sh
|
||||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " ZOLTAN_DIR is initialized to: $ZOLTAN_DIR"
|
||||
|
||||
|
@ -522,18 +529,11 @@ export MPI_BUFFER_SIZE
|
|||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYTHON_DIR is initialized to: $PYTHON_DIR"
|
||||
|
||||
# Load PyFoam
|
||||
# ~~~~~~~~~~~
|
||||
[ -z "$PYFOAM_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/PyFoam-0.5.7/platforms/noarch ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.5.7/platforms/noarch/etc/PyFoam-0.5.7.sh
|
||||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PYFOAM_DIR is initialized to: $PYFOAM_DIR"
|
||||
|
||||
|
||||
# Load QT
|
||||
# ~~~~~~~
|
||||
[ ! -z "$QT_THIRD_PARTY" ] && [ -e $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.4.sh
|
||||
[ ! -z "$QT_THIRD_PARTY" ] && [ -e $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.0.sh
|
||||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " QT_DIR is initialized to: $QT_DIR"
|
||||
|
||||
|
@ -542,6 +542,8 @@ export MPI_BUFFER_SIZE
|
|||
# ~~~~~~~~~~~~~
|
||||
[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.12.0/platforms/$WM_OPTIONS ] && {
|
||||
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.12.0/platforms/$WM_OPTIONS/etc/ParaView-3.12.0.sh
|
||||
#[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ] && {
|
||||
# _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.sh
|
||||
}
|
||||
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo " PARAVIEW_DIR is initialized to: $PARAVIEW_DIR"
|
||||
|
||||
|
|
|
@ -2,7 +2,13 @@ EXE_INC = \
|
|||
-I$(SCOTCH_INCLUDE_DIR) \
|
||||
-I../decompositionMethods/lnInclude
|
||||
|
||||
ifeq ($(WM_ARCH_BASE), darwin)
|
||||
/* No librt for Mac OS X */
|
||||
LIB_LIBS = \
|
||||
-L$(SCOTCH_LIB_DIR) -lscotch \
|
||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit \
|
||||
-lrt
|
||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit
|
||||
else
|
||||
LIB_LIBS = \
|
||||
-L$(SCOTCH_LIB_DIR) -lscotch \
|
||||
-L$(SCOTCH_LIB_DIR) -lscotcherrexit -lrt
|
||||
endif
|
||||
|
|
|
@ -32,12 +32,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
MAJOR WARNING: THIS TEST HARNESS IS NOT READY YET FOR OPENFOAM-1.6-EXT
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Warning #1: Make sure your OpenFOAM environment is properly initialized before
|
||||
running the test harness.
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#
|
||||
# Description
|
||||
# CMakeLists.txt file for implementing a test harness for the compilation
|
||||
# and test of OpenFOAM-1.5-dev using Kitware CTest./CMake/CDash
|
||||
# and test of OpenFOAM-1.6-ext using Kitware CTest./CMake/CDash
|
||||
#
|
||||
# The results will be submitted to the CDash server identified by the file
|
||||
# CTestConfig.cmake
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
PROJECT(OpenFOAM_1.5-dev)
|
||||
PROJECT(OpenFOAM_1.6-ext)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Initialization of CTest specific variables
|
||||
|
@ -92,7 +92,7 @@ SET(BUILDNAME "${BUILDNAME}-$ENV{WM_CC}${COMPILER_VERSION}")
|
|||
# We will support more compilers eventually.
|
||||
#
|
||||
|
||||
# Timeout for running all this: 4 hours: 4 x 3600 seconds
|
||||
# Timeout for running every single test: 4 hours: 4 x 3600 seconds
|
||||
#SET(
|
||||
# DART_TESTING_TIMEOUT 14400
|
||||
# CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test."
|
||||
|
|
2
wmake/rules/linux64Gcc45/ARCHITECTURE_TESTED
Normal file
2
wmake/rules/linux64Gcc45/ARCHITECTURE_TESTED
Normal file
|
@ -0,0 +1,2 @@
|
|||
by bgschaid. 2010-10-06 on Centos 5.5 with gcc 4.1
|
||||
|
3
wmake/rules/linux64Gcc45/X
Normal file
3
wmake/rules/linux64Gcc45/X
Normal file
|
@ -0,0 +1,3 @@
|
|||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
16
wmake/rules/linux64Gcc45/c
Normal file
16
wmake/rules/linux64Gcc45/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/linux64Gcc45/c++
Normal file
21
wmake/rules/linux64Gcc45/c++
Normal file
|
@ -0,0 +1,21 @@
|
|||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||
|
||||
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/linux64Gcc45/c++Debug
Normal file
2
wmake/rules/linux64Gcc45/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/linux64Gcc45/c++Opt
Normal file
4
wmake/rules/linux64Gcc45/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/linux64Gcc45/c++Prof
Normal file
2
wmake/rules/linux64Gcc45/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linux64Gcc45/cDebug
Normal file
2
wmake/rules/linux64Gcc45/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linux64Gcc45/cOpt
Normal file
2
wmake/rules/linux64Gcc45/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linux64Gcc45/cProf
Normal file
2
wmake/rules/linux64Gcc45/cProf
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linux64Gcc45/general
Normal file
10
wmake/rules/linux64Gcc45/general
Normal file
|
@ -0,0 +1,10 @@
|
|||
CPP = cpp -traditional-cpp
|
||||
LD = ld
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
3
wmake/rules/linux64Gcc45/mplib
Normal file
3
wmake/rules/linux64Gcc45/mplib
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
3
wmake/rules/linux64Gcc45/mplibGAMMA
Normal file
3
wmake/rules/linux64Gcc45/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linux64Gcc45/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc45/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/linux64Gcc45/mplibMPICH
Normal file
3
wmake/rules/linux64Gcc45/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linux64Gcc45/mplibMPICH-GM
Normal file
3
wmake/rules/linux64Gcc45/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linux64Gcc45/mplibOPENMPI
Normal file
3
wmake/rules/linux64Gcc45/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
4
wmake/rules/linux64Gcc45/mplibQSMPI
Normal file
4
wmake/rules/linux64Gcc45/mplibQSMPI
Normal file
|
@ -0,0 +1,4 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||
|
1
wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
2
wmake/rules/linux64Gcc46/ARCHITECTURE_TESTED
Normal file
2
wmake/rules/linux64Gcc46/ARCHITECTURE_TESTED
Normal file
|
@ -0,0 +1,2 @@
|
|||
by bgschaid. 2010-10-06 on Centos 5.5 with gcc 4.1
|
||||
|
3
wmake/rules/linux64Gcc46/X
Normal file
3
wmake/rules/linux64Gcc46/X
Normal file
|
@ -0,0 +1,3 @@
|
|||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
16
wmake/rules/linux64Gcc46/c
Normal file
16
wmake/rules/linux64Gcc46/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/linux64Gcc46/c++
Normal file
21
wmake/rules/linux64Gcc46/c++
Normal file
|
@ -0,0 +1,21 @@
|
|||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||
|
||||
CC = g++ -m64
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||
|
||||
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/linux64Gcc46/c++Debug
Normal file
2
wmake/rules/linux64Gcc46/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/linux64Gcc46/c++Opt
Normal file
4
wmake/rules/linux64Gcc46/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/linux64Gcc46/c++Prof
Normal file
2
wmake/rules/linux64Gcc46/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linux64Gcc46/cDebug
Normal file
2
wmake/rules/linux64Gcc46/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linux64Gcc46/cOpt
Normal file
2
wmake/rules/linux64Gcc46/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linux64Gcc46/cProf
Normal file
2
wmake/rules/linux64Gcc46/cProf
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linux64Gcc46/general
Normal file
10
wmake/rules/linux64Gcc46/general
Normal file
|
@ -0,0 +1,10 @@
|
|||
CPP = cpp -traditional-cpp
|
||||
LD = ld
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
3
wmake/rules/linux64Gcc46/mplib
Normal file
3
wmake/rules/linux64Gcc46/mplib
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
3
wmake/rules/linux64Gcc46/mplibGAMMA
Normal file
3
wmake/rules/linux64Gcc46/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linux64Gcc46/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc46/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/linux64Gcc46/mplibMPICH
Normal file
3
wmake/rules/linux64Gcc46/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linux64Gcc46/mplibMPICH-GM
Normal file
3
wmake/rules/linux64Gcc46/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linux64Gcc46/mplibOPENMPI
Normal file
3
wmake/rules/linux64Gcc46/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
4
wmake/rules/linux64Gcc46/mplibQSMPI
Normal file
4
wmake/rules/linux64Gcc46/mplibQSMPI
Normal file
|
@ -0,0 +1,4 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||
|
1
wmake/rules/linux64Gcc46/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linux64Gcc46/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
3
wmake/rules/linuxGcc45/X
Normal file
3
wmake/rules/linuxGcc45/X
Normal file
|
@ -0,0 +1,3 @@
|
|||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib -lXext -lX11
|
16
wmake/rules/linuxGcc45/c
Normal file
16
wmake/rules/linuxGcc45/c
Normal file
|
@ -0,0 +1,16 @@
|
|||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m32
|
||||
|
||||
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/linuxGcc45/c++
Normal file
21
wmake/rules/linuxGcc45/c++
Normal file
|
@ -0,0 +1,21 @@
|
|||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m32
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||
|
||||
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/linuxGcc45/c++Debug
Normal file
2
wmake/rules/linuxGcc45/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
2
wmake/rules/linuxGcc45/c++Opt
Normal file
2
wmake/rules/linuxGcc45/c++Opt
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG =
|
||||
c++OPT = -O3
|
2
wmake/rules/linuxGcc45/c++Prof
Normal file
2
wmake/rules/linuxGcc45/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linuxGcc45/cDebug
Normal file
2
wmake/rules/linuxGcc45/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linuxGcc45/cOpt
Normal file
2
wmake/rules/linuxGcc45/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linuxGcc45/cProf
Normal file
2
wmake/rules/linuxGcc45/cProf
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linuxGcc45/general
Normal file
10
wmake/rules/linuxGcc45/general
Normal file
|
@ -0,0 +1,10 @@
|
|||
CPP = cpp -traditional-cpp
|
||||
LD = ld -melf_i386
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
3
wmake/rules/linuxGcc45/mplib
Normal file
3
wmake/rules/linuxGcc45/mplib
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
3
wmake/rules/linuxGcc45/mplibGAMMA
Normal file
3
wmake/rules/linuxGcc45/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linuxGcc45/mplibHPMPI
Normal file
3
wmake/rules/linuxGcc45/mplibHPMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_ia32 -lmpi
|
3
wmake/rules/linuxGcc45/mplibMPICH
Normal file
3
wmake/rules/linuxGcc45/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linuxGcc45/mplibMPICH-GM
Normal file
3
wmake/rules/linuxGcc45/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linuxGcc45/mplibOPENMPI
Normal file
3
wmake/rules/linuxGcc45/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
1
wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
3
wmake/rules/linuxGcc46/X
Normal file
3
wmake/rules/linuxGcc46/X
Normal file
|
@ -0,0 +1,3 @@
|
|||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib -lXext -lX11
|
16
wmake/rules/linuxGcc46/c
Normal file
16
wmake/rules/linuxGcc46/c
Normal file
|
@ -0,0 +1,16 @@
|
|||
.SUFFIXES: .c .h
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m32
|
||||
|
||||
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/linuxGcc46/c++
Normal file
21
wmake/rules/linuxGcc46/c++
Normal file
|
@ -0,0 +1,21 @@
|
|||
.SUFFIXES: .C .cxx .cc .cpp
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m32
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||
|
||||
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/linuxGcc46/c++Debug
Normal file
2
wmake/rules/linuxGcc46/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
2
wmake/rules/linuxGcc46/c++Opt
Normal file
2
wmake/rules/linuxGcc46/c++Opt
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG =
|
||||
c++OPT = -O3
|
2
wmake/rules/linuxGcc46/c++Prof
Normal file
2
wmake/rules/linuxGcc46/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
|||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linuxGcc46/cDebug
Normal file
2
wmake/rules/linuxGcc46/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linuxGcc46/cOpt
Normal file
2
wmake/rules/linuxGcc46/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linuxGcc46/cProf
Normal file
2
wmake/rules/linuxGcc46/cProf
Normal file
|
@ -0,0 +1,2 @@
|
|||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linuxGcc46/general
Normal file
10
wmake/rules/linuxGcc46/general
Normal file
|
@ -0,0 +1,10 @@
|
|||
CPP = cpp -traditional-cpp
|
||||
LD = ld -melf_i386
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
3
wmake/rules/linuxGcc46/mplib
Normal file
3
wmake/rules/linuxGcc46/mplib
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC =
|
||||
PLIBS =
|
3
wmake/rules/linuxGcc46/mplibGAMMA
Normal file
3
wmake/rules/linuxGcc46/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linuxGcc46/mplibHPMPI
Normal file
3
wmake/rules/linuxGcc46/mplibHPMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_ia32 -lmpi
|
3
wmake/rules/linuxGcc46/mplibMPICH
Normal file
3
wmake/rules/linuxGcc46/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linuxGcc46/mplibMPICH-GM
Normal file
3
wmake/rules/linuxGcc46/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linuxGcc46/mplibOPENMPI
Normal file
3
wmake/rules/linuxGcc46/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||
PINC = -I$(MPI_ARCH_PATH)/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
1
wmake/rules/linuxGcc46/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linuxGcc46/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
|||
PFLAGS = -DOMPI_SKIP_MPICXX
|
Reference in a new issue