Skip to content

Commit

Permalink
Update deal.II parameter files (#175)
Browse files Browse the repository at this point in the history
* Centralize dealii run scripts

* Add new deal.II directory option to parameter files

* Update clean_dealii according to default directory

* Replace prefix by executable
  • Loading branch information
davidscn authored Mar 26, 2021
1 parent 9ccd365 commit e472e9e
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 122 deletions.
Empty file.
3 changes: 3 additions & 0 deletions multiple-perpendicular-flaps/solid-left-dealii/parameters.prm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ subsection Time

# Write results every x timesteps
set Output interval = 10

# Output folder
set Output folder = dealii-output
end

subsection Discretization
Expand Down
30 changes: 0 additions & 30 deletions multiple-perpendicular-flaps/solid-left-dealii/run.sh

This file was deleted.

1 change: 1 addition & 0 deletions multiple-perpendicular-flaps/solid-left-dealii/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ subsection Time

# Write results every x timesteps
set Output interval = 10

# Output folder
set Output folder = dealii-output
end

subsection Discretization
Expand Down
30 changes: 0 additions & 30 deletions multiple-perpendicular-flaps/solid-right-dealii/run.sh

This file was deleted.

1 change: 1 addition & 0 deletions multiple-perpendicular-flaps/solid-right-dealii/run.sh
Empty file.
3 changes: 3 additions & 0 deletions perpendicular-flap/solid-dealii/parameters.prm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ subsection Time

# Write results every x timesteps
set Output interval = 10

# Output folder
set Output folder = dealii-output
end

subsection Discretization
Expand Down
30 changes: 0 additions & 30 deletions perpendicular-flap/solid-dealii/run.sh

This file was deleted.

1 change: 1 addition & 0 deletions perpendicular-flap/solid-dealii/run.sh
2 changes: 1 addition & 1 deletion tools/cleaning-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ clean_dealii() {
(
cd "$1"
echo "--- Cleaning up deal.II case in $(pwd)"
rm -fv ./dealii_output/solution-*.vtk ./solution-*.vtk
rm -fv ./dealii-output/solution-*.vtk
clean_precice_logs .
)
}
Expand Down
37 changes: 37 additions & 0 deletions tools/run-dealii.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh
set -e -u

EXE=""

for i in "$@"
do
case $i in
-e=*|--exec=*)
EXE="${i#*=}"
shift # past argument=value
;;
*)
# unknown option
;;
esac
done

# If the executable has been defined
if [ -n "${EXE}" ]; then
"${EXE}" parameters.prm
exit 0;
fi

EXE="elasticity"
# If it is in the global path
if [ -n "$(command -v "${EXE}")" ]; then
"${EXE}" parameters.prm
exit 0;
fi

# If it has been copied to the local directory
if test -f "elasticity"; then
./"${EXE}" parameters.prm
else
echo "Unable to find the executable ${EXE}. Either specify the executable explicitly (-e=/path/to/elasticity) or make it discoverable at runtime (e.g. export PATH)"
fi
5 changes: 4 additions & 1 deletion turek-hron-fsi3/solid-dealii/parameters.prm
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ subsection Time

# Write results every x timesteps
set Output interval = 100

# Output folder
set Output folder = dealii-output
end

subsection Discretization
# Polynomial degree of the FE system
set Polynomial degree = 4
set Polynomial degree = 1
end

subsection System properties
Expand Down
30 changes: 0 additions & 30 deletions turek-hron-fsi3/solid-dealii/run.sh

This file was deleted.

1 change: 1 addition & 0 deletions turek-hron-fsi3/solid-dealii/run.sh

0 comments on commit e472e9e

Please sign in to comment.