-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from precice/develop
Release v202404.0.0
- Loading branch information
Showing
18 changed files
with
133 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.vagrant | ||
vagrant | ||
vagrant | ||
|
||
# Editors | ||
settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# preCICE config visualizer | ||
function preciceToPNG(){ | ||
cat "${1:-precice-config.xml}" | precice-config-visualizer | dot -Tpng > precice-config.png | ||
precice-config-visualizer -o precice-config.png "${1:-precice-config.xml}" | ||
} | ||
|
||
function preciceToPDF(){ | ||
cat "${1:-precice-config.xml}" | precice-config-visualizer | dot -Tpdf > precice-config.pdf | ||
precice-config-visualizer -o precice-config.pdf "${1:-precice-config.xml}" | ||
} | ||
|
||
function preciceToSVG(){ | ||
cat "${1:-precice-config.xml}" | precice-config-visualizer | dot -Tsvg > precice-config.svg | ||
precice-config-visualizer -o precice-config.svg "${1:-precice-config.xml}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
# Get the config-visualizer from GitHub | ||
if [ ! -d "config-visualizer/" ]; then | ||
git clone --depth=1 --branch master https://github.com/precice/config-visualizer.git | ||
fi | ||
pip3 install --user -e config-visualizer | ||
# Install CLI dependencies | ||
sudo apt-get install -y graphviz | ||
# Install GUI depedencies | ||
sudo apt-get install -y build-essential pkg-config python3-dev libcairo2-dev libgirepository1.0-dev gir1.2-gtk-3.0 | ||
|
||
# Get the config-visualizer from PIP | ||
PRECICE_CONFIG_VISUALIZER_VERSION=1.1.3 | ||
PRECICE_CONFIG_VISUALIZER_GUI_VERSION=0.1.0 | ||
pipx install --force precice-config-visualizer==${PRECICE_CONFIG_VISUALIZER_VERSION} | ||
pipx install --force precice-config-visualizer-gui==${PRECICE_CONFIG_VISUALIZER_GUI_VERSION} | ||
|
||
# Add the config-visualizer to PATH | ||
echo "export PATH=\"\${HOME}/config-visualizer/bin:\${PATH}\"" >>~/.bashrc | ||
# shellcheck disable=SC2016 | ||
echo 'export PATH="${HOME}/.local/bin:${PATH}"' >> ~/.bashrc | ||
|
||
# By default, there is no `python` executable, there is only `python3`, | ||
# which causes issues to the config-visualizer | ||
sudo apt-get install -y python-is-python3 | ||
# Add the GUI in the apps menu | ||
mkdir -p ~/.local/share/applications ~/.local/share/icons | ||
|
||
# Install graphviz, which provides dot, an almost required package to make this useful | ||
sudo apt-get install -y graphviz | ||
CV_LOC_SHARE=~/.local/pipx/venvs/precice-config-visualizer-gui==${PRECICE_CONFIG_VISUALIZER_GUI_VERSION}/share | ||
cp $CV_LOC_SHARE/applications/org.precice.config_visualizer.desktop ~/.local/share/applications/ | ||
cp $CV_LOC_SHARE/icons/hicolor/scalable/apps/org.precice.config_visualizer.svg ~/.local/share/icons/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,89 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
# Make a folder to collect all DUNE-related code (-p to allow re-provisioning) | ||
mkdir -p dune && cd dune | ||
# Make a folder to collect all DUNE-related code | ||
mkdir -p dune-dumux && cd dune-dumux | ||
|
||
# Get required DUNE modules | ||
# Modules used by DUNE and DuMux | ||
# While the installdumux.py script clones these as well, | ||
# we explicitly clone them to control the versions. | ||
if [ ! -d "dune-common/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/core/dune-common.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/core/dune-common.git | ||
fi | ||
|
||
if [ ! -d "dune-istl/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/core/dune-istl.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/core/dune-istl.git | ||
fi | ||
|
||
if [ ! -d "dune-localfunctions/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/core/dune-localfunctions.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/core/dune-localfunctions.git | ||
fi | ||
|
||
if [ ! -d "dune-grid/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/core/dune-grid.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/core/dune-grid.git | ||
fi | ||
|
||
if [ ! -d "dune-geometry/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/core/dune-geometry.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/core/dune-geometry.git | ||
fi | ||
|
||
if [ ! -d "dune-functions/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/staging/dune-functions.git | ||
if [ ! -d "dune-foamgrid/" ]; then | ||
# The missing v in the tag in this module originates from the project itself | ||
git clone --depth 1 --branch 2.9.1 https://gitlab.dune-project.org/extensions/dune-foamgrid.git | ||
fi | ||
|
||
if [ ! -d "dune-uggrid/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/staging/dune-uggrid.git | ||
if [ ! -d "dune-functions/" ]; then | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/staging/dune-functions.git | ||
fi | ||
|
||
if [ ! -d "dune-typetree/" ]; then | ||
git clone --branch v2.8.0 --depth=1 https://gitlab.dune-project.org/staging/dune-typetree.git | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/staging/dune-typetree.git | ||
fi | ||
|
||
if [ ! -d "dune-foamgrid/" ]; then | ||
git clone --branch releases/2.8 --depth=1 https://gitlab.dune-project.org/extensions/dune-foamgrid.git | ||
if [ ! -d "dune-uggrid/" ]; then | ||
git clone --depth 1 --branch v2.9.1 https://gitlab.dune-project.org/staging/dune-uggrid.git | ||
fi | ||
|
||
# Get the dune-elastodynamics module (solid solver) | ||
# Get the dune-elastodynamics module (solid solver for the plain dune adapter) | ||
if [ ! -d "dune-elastodynamics/" ]; then | ||
git clone --branch master --depth=1 https://github.com/maxfirmbach/dune-elastodynamics.git | ||
git clone --depth 1 --branch master https://github.com/maxfirmbach/dune-elastodynamics.git | ||
fi | ||
( | ||
cd dune-elastodynamics | ||
git pull | ||
) | ||
|
||
# Get the DUNE-preCICE adapter | ||
# Get the plain DUNE-preCICE adapter | ||
if [ ! -d "dune-adapter/" ]; then | ||
git clone --branch main --depth=1 https://github.com/precice/dune-adapter.git | ||
git clone --depth 1 --branch main https://github.com/precice/dune-adapter.git | ||
fi | ||
( | ||
cd dune-adapter/dune-precice | ||
git pull | ||
) | ||
|
||
# Build all the DUNE and DUNE-preCICE related modules | ||
DUNE_CONTROL_PATH=~/dune ./dune-common/bin/dunecontrol all | ||
./dune-common/bin/dunecontrol all | ||
|
||
# Set the DUNE_CONTROL_PATH (DUNE recursively finds modules in this directory) | ||
echo "export DUNE_CONTROL_PATH=\"\${HOME}/dune\"" >> ~/.bashrc | ||
# Get DuMux and the DuMux-preCICE adapter | ||
if [ ! -d "dumux/" ]; then | ||
git clone --depth 1 --branch releases/3.8 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git | ||
fi | ||
|
||
# Copy the built example code to the tutorials | ||
cp ~/dune/dune-adapter/dune-precice-howto/build-cmake/examples/dune-perpendicular-flap ~/tutorials/perpendicular-flap/solid-dune | ||
# Build DuMux | ||
CMAKE_FLAGS="$CMAKE_FLAGS -DCMAKE_DISABLE_FIND_PACKAGE_Kokkos=TRUE" ./dune-common/bin/dunecontrol --only=dumux all | ||
|
||
if [ ! -d "dumux-adapter/" ]; then | ||
git clone --depth 1 --branch v2.0.0 https://github.com/precice/dumux-adapter.git | ||
fi | ||
|
||
# Install dune-fem from PIP | ||
# Build the DuMux-preCICE adapter | ||
CMAKE_FLAGS="$CMAKE_FLAGS -DCMAKE_DISABLE_FIND_PACKAGE_Kokkos=TRUE" ./dune-common/bin/dunecontrol --only=dumux-precice all | ||
|
||
pip3 install --user dune-fem==2.8 | ||
# Set the DUNE_CONTROL_PATH (DUNE recursively finds modules in this directory) | ||
echo "export DUNE_CONTROL_PATH=\"\${HOME}/dune-dumux\"" >> ~/.bashrc | ||
|
||
# Copy the built example code to the tutorials | ||
cp ~/dune-dumux/dune-adapter/dune-precice-howto/build-cmake/examples/dune-perpendicular-flap ~/tutorials/perpendicular-flap/solid-dune | ||
|
||
# We are done with DUNE, let's do back home | ||
cd ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
# Install the FMI runner from PIP | ||
pip3 install --user fmiprecice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
pip install --user micro-manager-precice |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.