mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: harmonize adios1, adios2 config files. Add to setup.
This commit is contained in:
committed by
Andrew Heather
parent
59b867b7af
commit
1b4b127af5
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -10,18 +10,18 @@
|
|||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/config.csh/ADIOS
|
# etc/config.csh/adios1
|
||||||
# - sourced by OpenFOAM-*/etc/cshrc
|
# - sourced by OpenFOAM-*/etc/cshrc
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Setup for ADIOS include/libraries (usually ThirdParty installation).
|
# Setup for ADIOS include/libraries (usually ThirdParty installation).
|
||||||
#
|
#
|
||||||
# To disable its use: adios_version=adios-none
|
# To disable its use: adios1_version=adios-none
|
||||||
# For system-wide installations: adios_version=adios-system
|
# For system-wide installations: adios1_version=adios-system
|
||||||
#
|
#
|
||||||
# For central installations not located under ThirdParty:
|
# For central installations not located under ThirdParty:
|
||||||
# 1. use adios-system
|
# 1. use adios-system
|
||||||
# 2. and provide full path for ADIOS_ARCH_PATH
|
# 2. and provide full path for ADIOS1_ARCH_PATH
|
||||||
#
|
#
|
||||||
# Note
|
# Note
|
||||||
# Changes made here MUST be made in the equivalent config.sh version too,
|
# Changes made here MUST be made in the equivalent config.sh version too,
|
||||||
@ -33,25 +33,21 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
|
|
||||||
set adios_version=ADIOS-1.13.0
|
set adios1_version=ADIOS-1.13.1
|
||||||
setenv ADIOS_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios_version
|
setenv ADIOS1_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios1_version
|
||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
if ($?FOAM_VERBOSE && $?prompt) then
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
echo "Using adios ($adios_version) -> $ADIOS_ARCH_PATH"
|
echo "Using adios ($adios1_version) -> $ADIOS1_ARCH_PATH"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If ADIOS_ARCH_PATH does not end with '-system' or '-none',
|
# - only add if the directory really exists
|
||||||
# it is located within ThirdParty, or a central installation
|
_foamAddLibAuto $ADIOS1_ARCH_PATH
|
||||||
# outside of ThirdParty and should be added to the path.
|
if ($status == 0) then
|
||||||
|
_foamAddPath $ADIOS1_ARCH_PATH/bin
|
||||||
set ending="${ADIOS_ARCH_PATH:t}"
|
|
||||||
if ( "$ending" != "adios-none" && "$ending" != "adios-system" ) then
|
|
||||||
# PATH was already cleaned by etc/cshrc caller
|
|
||||||
_foamAddPath $ADIOS_ARCH_PATH/bin
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
unset adios_version ending
|
unset adios1_version
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -10,7 +10,7 @@
|
|||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/config.csh/ADIOS2
|
# etc/config.csh/adios2
|
||||||
# - sourced by OpenFOAM-*/etc/cshrc
|
# - sourced by OpenFOAM-*/etc/cshrc
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
@ -19,7 +19,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
|
|
||||||
set adios2_version=ADIOS2-git
|
set adios2_version=ADIOS2-2.4.0
|
||||||
setenv ADIOS2_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios2_version
|
setenv ADIOS2_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios2_version
|
||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
@ -139,8 +139,7 @@ _foamEtc -config settings
|
|||||||
_foamEtc -config mpi
|
_foamEtc -config mpi
|
||||||
_foamEtc -config paraview -- "$FOAM_SETTINGS" # Pass through for evaluation
|
_foamEtc -config paraview -- "$FOAM_SETTINGS" # Pass through for evaluation
|
||||||
_foamEtc -config vtk
|
_foamEtc -config vtk
|
||||||
## _foamEtc -config ADIOS
|
_foamEtc -config adios2
|
||||||
## _foamEtc -config ADIOS2
|
|
||||||
_foamEtc -config CGAL
|
_foamEtc -config CGAL
|
||||||
_foamEtc -config FFTW
|
_foamEtc -config FFTW
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -10,18 +10,18 @@
|
|||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/config.sh/ADIOS
|
# etc/config.sh/adios1
|
||||||
# - sourced by OpenFOAM-*/etc/bashrc
|
# - sourced by OpenFOAM-*/etc/bashrc
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Setup for ADIOS include/libraries (usually ThirdParty installation).
|
# Setup for ADIOS include/libraries (usually ThirdParty installation).
|
||||||
#
|
#
|
||||||
# To disable its use: adios_version=adios-none
|
# To disable its use: adios1_version=adios-none
|
||||||
# For system-wide installations: adios_version=adios-system
|
# For system-wide installations: adios1_version=adios-system
|
||||||
#
|
#
|
||||||
# For central installations not located under ThirdParty:
|
# For central installations not located under ThirdParty:
|
||||||
# 1. use adios-system
|
# 1. use adios-system
|
||||||
# 2. and provide full path for ADIOS_ARCH_PATH
|
# 2. and provide full path for ADIOS1_ARCH_PATH
|
||||||
#
|
#
|
||||||
# Note
|
# Note
|
||||||
# Since ADIOS is a static library build, the libraries are renamed
|
# Since ADIOS is a static library build, the libraries are renamed
|
||||||
@ -32,31 +32,39 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
|
|
||||||
adios_version=ADIOS-1.13.0
|
adios1_version=ADIOS-1.13.1
|
||||||
export ADIOS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios_version
|
export ADIOS1_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios1_version
|
||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
if [ -n "$FOAM_VERBOSE" ] && [ -n "$PS1" ]
|
if [ -n "$FOAM_VERBOSE" ] && [ -n "$PS1" ]
|
||||||
then
|
then
|
||||||
echo "Using adios ($adios_version) -> $ADIOS_ARCH_PATH" 1>&2
|
echo "Using adios ($adios1_version) -> $ADIOS1_ARCH_PATH" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v _foamAddPath >/dev/null 2>&1 # Normal sourcing
|
if command -v _foamAddLibAuto > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
# If ADIOS_ARCH_PATH does not end with '-system' or '-none',
|
# Normal sourcing (not makeADIOS)
|
||||||
# it is located within ThirdParty, or a central installation
|
# - but only add if the directory really exists
|
||||||
# outside of ThirdParty and should be added to the path.
|
|
||||||
|
|
||||||
ending="${ADIOS_ARCH_PATH##*-}"
|
if _foamAddLibAuto $ADIOS1_ARCH_PATH
|
||||||
if [ "$ending" != none ] && [ "$ending" != system ]
|
|
||||||
then
|
then
|
||||||
# PATH was already cleaned by etc/bashrc caller
|
_foamAddPath $ADIOS1_ARCH_PATH/bin
|
||||||
_foamAddPath $ADIOS_ARCH_PATH/bin
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset adios_version ending
|
unset adios1_version
|
||||||
|
|
||||||
|
elif [ "$1" = "-force" ]
|
||||||
|
then
|
||||||
|
# Forced command-line sourcing
|
||||||
|
|
||||||
|
if output="$($WM_PROJECT_DIR/bin/tools/lib-dir -sh $ADIOS1_ARCH_PATH 2>/dev/null)"
|
||||||
|
then
|
||||||
|
eval "$output"
|
||||||
|
PATH="$ADIOS1_ARCH_PATH/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset adios1_version output
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -10,7 +10,7 @@
|
|||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/config.sh/ADIOS2
|
# etc/config.sh/adios2
|
||||||
# - sourced by OpenFOAM-*/etc/bashrc
|
# - sourced by OpenFOAM-*/etc/bashrc
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
@ -20,7 +20,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
|
|
||||||
adios2_version=ADIOS2-git
|
adios2_version=ADIOS2-2.4.0
|
||||||
export ADIOS2_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios2_version
|
export ADIOS2_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios2_version
|
||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
@ -120,8 +120,7 @@ _foamEtc -config mpi
|
|||||||
_foamEtc -config paraview -- "$@" # Pass through for evaluation
|
_foamEtc -config paraview -- "$@" # Pass through for evaluation
|
||||||
_foamEtc -config vtk
|
_foamEtc -config vtk
|
||||||
_foamEtc -config gperftools
|
_foamEtc -config gperftools
|
||||||
## _foamEtc -config ADIOS
|
_foamEtc -config adios2
|
||||||
## _foamEtc -config ADIOS2
|
|
||||||
_foamEtc -config CGAL
|
_foamEtc -config CGAL
|
||||||
_foamEtc -config scotch
|
_foamEtc -config scotch
|
||||||
_foamEtc -config FFTW
|
_foamEtc -config FFTW
|
||||||
|
|||||||
@ -5,7 +5,7 @@ sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
|||||||
sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB)
|
sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB)
|
||||||
|
|
||||||
# Obtain compile/link flags via adios_config
|
# Obtain compile/link flags via adios_config
|
||||||
ADIOS_INC := $(shell $(ADIOS_ARCH_PATH)/bin/adios_config -c)
|
ADIOS_INC := $(shell $(ADIOS1_ARCH_PATH)/bin/adios_config -c)
|
||||||
ADIOS_LIBS := $(shell $(ADIOS_ARCH_PATH)/bin/adios_config -l)
|
ADIOS_LIBS := $(shell $(ADIOS1_ARCH_PATH)/bin/adios_config -l)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -58,11 +58,11 @@ have_adios2()
|
|||||||
# warn="==> skip adios2"
|
# warn="==> skip adios2"
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
if settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ADIOS2)
|
if settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/adios2)
|
||||||
then
|
then
|
||||||
. "$settings"
|
. "$settings"
|
||||||
else
|
else
|
||||||
[ -n "$warn" ] && echo "$warn (no config.sh/ADIOS2 settings)"
|
[ -n "$warn" ] && echo "$warn (no config.sh/adios2 settings)"
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user