Zoltan: Added configuration file for zoltanRenumber

This commit is contained in:
Henry Weller
2021-12-22 17:01:16 +00:00
parent 526b3840c7
commit 74917f80cc
4 changed files with 62 additions and 23 deletions

40
etc/config.sh/zoltan Normal file
View File

@ -0,0 +1,40 @@
#----------------------------------*-sh-*--------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2021 OpenFOAM Foundation
# \\/ 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 3 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, see <http://www.gnu.org/licenses/>.
#
# File
# etc/config.sh/zoltan
#
# Description
# Setup file for zoltan include/libraries.
# Sourced during wmake process only.
#
# Note
# A csh version is not needed, since the values here are only sourced
# during the wmake process
#
#------------------------------------------------------------------------------
export ZOLTAN_VERSION=Zoltan-3.90
export ZOLTAN_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/$ZOLTAN_VERSION
#------------------------------------------------------------------------------

View File

@ -8,11 +8,21 @@ cd ${0%/*} || exit 1 # Run from this directory
# installation problems on a range of legacy systems. # installation problems on a range of legacy systems.
# wmake $targetType SloanRenumber # wmake $targetType SloanRenumber
if [ -n "$ZOLTAN_ARCH_PATH" ] if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
then then
. $settings
echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
if [ -n "$ZOLTAN_ARCH_PATH" ]
then
wmake $targetType zoltanRenumber wmake $targetType zoltanRenumber
else else
echo " skipping zoltanRenumber" echo " skipping zoltanRenumber"
fi
else
echo
echo " Error: no config.sh/zoltan settings"
echo
fi fi
wmake $targetType renumberMethods wmake $targetType renumberMethods

View File

@ -4,9 +4,7 @@ EXE_INC = \
$(PFLAGS) $(PINC) \ $(PFLAGS) $(PINC) \
-I$(FOAM_SRC)/Pstream/mpi/lnInclude \ -I$(FOAM_SRC)/Pstream/mpi/lnInclude \
-I$(FOAM_SRC)/renumber/renumberMethods/lnInclude \ -I$(FOAM_SRC)/renumber/renumberMethods/lnInclude \
-I$(ZOLTAN_ARCH_PATH)/include/ \ -I$(ZOLTAN_ARCH_PATH)/include
-I$(LIB_SRC)/meshTools/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lmeshTools \ -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) -lzoltan
-L${ZOLTAN_ARCH_PATH}/lib64 -lzoltan

View File

@ -29,22 +29,13 @@ Description
Note: Zoltan methods do not support serial operation. Note: Zoltan methods do not support serial operation.
Zoltan install: Usage
- in your ~/.bashrc:
export ZOLTAN_ARCH_PATH=\ To select the Zoltan Hilbert space filling curves renumber method add the
$WM_THIRD_PARTY_DIR/platforms/linux64Gcc/Zoltan-XXX following entries to renumberMeshDict:
- unpack into $WM_THIRD_PARTY_DIR
- cd Zoltan_XXX method zoltan;
- mkdir build libs ("libzoltanRenumber.so");
- cd build
- export CCFLAGS="-fPIC"
- export CXXFLAGS="-fPIC"
- export CFLAGS="-fPIC"
- ../configure \
--prefix=$ZOLTAN_ARCH_PATH \
--with-ccflags=-fPIC --with-cxxflags=-fPIC
- make everything
- make install
SourceFiles SourceFiles
zoltanRenumber.C zoltanRenumber.C