diff --git a/aste-turbine/clean.sh b/aste-turbine/clean.sh index 7daccec54..124bd5f79 100755 --- a/aste-turbine/clean.sh +++ b/aste-turbine/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../tools/cleaning-tools.sh clean_aste . diff --git a/breaking-dam-2d/fluid-openfoam/clean.sh b/breaking-dam-2d/fluid-openfoam/clean.sh index be0e8894e..ab053d34f 100755 --- a/breaking-dam-2d/fluid-openfoam/clean.sh +++ b/breaking-dam-2d/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/breaking-dam-2d/solid-calculix/clean.sh b/breaking-dam-2d/solid-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/breaking-dam-2d/solid-calculix/clean.sh +++ b/breaking-dam-2d/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/changelog-entries/729.md b/changelog-entries/729.md new file mode 100644 index 000000000..2af309e3c --- /dev/null +++ b/changelog-entries/729.md @@ -0,0 +1 @@ +- Allow running case-level `clean.sh` scripts from any directory by resolving paths relative to the script location. diff --git a/channel-transport-particles/fluid-nutils/clean.sh b/channel-transport-particles/fluid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/channel-transport-particles/fluid-nutils/clean.sh +++ b/channel-transport-particles/fluid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/channel-transport-particles/fluid-openfoam/clean.sh b/channel-transport-particles/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/channel-transport-particles/fluid-openfoam/clean.sh +++ b/channel-transport-particles/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/channel-transport-particles/particles-mercurydpm/clean.sh b/channel-transport-particles/particles-mercurydpm/clean.sh index e20a8de81..6ce7a1f09 100755 --- a/channel-transport-particles/particles-mercurydpm/clean.sh +++ b/channel-transport-particles/particles-mercurydpm/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_mercurydpm . diff --git a/channel-transport-reaction/chemical-fenics/clean.sh b/channel-transport-reaction/chemical-fenics/clean.sh index cbd679c4a..cdca3b3a8 100755 --- a/channel-transport-reaction/chemical-fenics/clean.sh +++ b/channel-transport-reaction/chemical-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport-reaction/fluid-fenics/clean.sh b/channel-transport-reaction/fluid-fenics/clean.sh index cbd679c4a..cdca3b3a8 100755 --- a/channel-transport-reaction/fluid-fenics/clean.sh +++ b/channel-transport-reaction/fluid-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport/fluid-nutils/clean.sh b/channel-transport/fluid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/channel-transport/fluid-nutils/clean.sh +++ b/channel-transport/fluid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/channel-transport/fluid-openfoam/clean.sh b/channel-transport/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/channel-transport/fluid-openfoam/clean.sh +++ b/channel-transport/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/channel-transport/transport-nutils/clean.sh b/channel-transport/transport-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/channel-transport/transport-nutils/clean.sh +++ b/channel-transport/transport-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/elastic-tube-1d/fluid-cpp/clean.sh b/elastic-tube-1d/fluid-cpp/clean.sh index 8d5d37784..488d02fde 100755 --- a/elastic-tube-1d/fluid-cpp/clean.sh +++ b/elastic-tube-1d/fluid-cpp/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rvf ./output/*.vtk diff --git a/elastic-tube-1d/fluid-fortran-module/clean.sh b/elastic-tube-1d/fluid-fortran-module/clean.sh index 8d5d37784..488d02fde 100755 --- a/elastic-tube-1d/fluid-fortran-module/clean.sh +++ b/elastic-tube-1d/fluid-fortran-module/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rvf ./output/*.vtk diff --git a/elastic-tube-1d/fluid-fortran/clean.sh b/elastic-tube-1d/fluid-fortran/clean.sh index 8d5d37784..488d02fde 100755 --- a/elastic-tube-1d/fluid-fortran/clean.sh +++ b/elastic-tube-1d/fluid-fortran/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rvf ./output/*.vtk diff --git a/elastic-tube-1d/fluid-python/clean.sh b/elastic-tube-1d/fluid-python/clean.sh index 8d5d37784..488d02fde 100755 --- a/elastic-tube-1d/fluid-python/clean.sh +++ b/elastic-tube-1d/fluid-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rvf ./output/*.vtk diff --git a/elastic-tube-1d/fluid-rust/clean.sh b/elastic-tube-1d/fluid-rust/clean.sh index 8d5d37784..488d02fde 100755 --- a/elastic-tube-1d/fluid-rust/clean.sh +++ b/elastic-tube-1d/fluid-rust/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rvf ./output/*.vtk diff --git a/elastic-tube-1d/solid-cpp/clean.sh b/elastic-tube-1d/solid-cpp/clean.sh index 494c80414..768c4ff6f 100755 --- a/elastic-tube-1d/solid-cpp/clean.sh +++ b/elastic-tube-1d/solid-cpp/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-1d/solid-fortran-module/clean.sh b/elastic-tube-1d/solid-fortran-module/clean.sh index ae7a54924..66b1a8219 100755 --- a/elastic-tube-1d/solid-fortran-module/clean.sh +++ b/elastic-tube-1d/solid-fortran-module/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-1d/solid-fortran/clean.sh b/elastic-tube-1d/solid-fortran/clean.sh index ae7a54924..66b1a8219 100755 --- a/elastic-tube-1d/solid-fortran/clean.sh +++ b/elastic-tube-1d/solid-fortran/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-1d/solid-python/clean.sh b/elastic-tube-1d/solid-python/clean.sh index 494c80414..768c4ff6f 100755 --- a/elastic-tube-1d/solid-python/clean.sh +++ b/elastic-tube-1d/solid-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-1d/solid-rust/clean.sh b/elastic-tube-1d/solid-rust/clean.sh index 494c80414..768c4ff6f 100755 --- a/elastic-tube-1d/solid-rust/clean.sh +++ b/elastic-tube-1d/solid-rust/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-3d/fluid-openfoam/clean.sh b/elastic-tube-3d/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/elastic-tube-3d/fluid-openfoam/clean.sh +++ b/elastic-tube-3d/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/elastic-tube-3d/solid-calculix/clean.sh b/elastic-tube-3d/solid-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/elastic-tube-3d/solid-calculix/clean.sh +++ b/elastic-tube-3d/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/elastic-tube-3d/solid-fenics/clean.sh b/elastic-tube-3d/solid-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/elastic-tube-3d/solid-fenics/clean.sh +++ b/elastic-tube-3d/solid-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh b/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh index 932e33b85..a7e94d6ff 100755 --- a/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh +++ b/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fmi . diff --git a/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh b/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh index 3cdd23300..9fe71989a 100755 --- a/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh +++ b/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh # since we work with a 0_orig folder here diff --git a/flow-around-controlled-moving-cylinder/solid-python/clean.sh b/flow-around-controlled-moving-cylinder/solid-python/clean.sh index 8211cc2a6..768c4ff6f 100755 --- a/flow-around-controlled-moving-cylinder/solid-python/clean.sh +++ b/flow-around-controlled-moving-cylinder/solid-python/clean.sh @@ -1,4 +1,8 @@ #!/usr/bin/env sh +set -e -u + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" . ../../tools/cleaning-tools.sh diff --git a/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh b/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh b/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh +++ b/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh b/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh b/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh b/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh b/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh b/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh index 871a51a63..4bbf4651b 100755 --- a/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh +++ b/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_codeaster . diff --git a/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh b/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh b/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh index b7d019c0e..47ec1a7c0 100755 --- a/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh +++ b/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/flow-over-heated-plate/fluid-openfoam/clean.sh b/flow-over-heated-plate/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate/fluid-su2/clean.sh b/flow-over-heated-plate/fluid-su2/clean.sh index ecab06b44..bb3d9a40b 100755 --- a/flow-over-heated-plate/fluid-su2/clean.sh +++ b/flow-over-heated-plate/fluid-su2/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_su2 . diff --git a/flow-over-heated-plate/solid-dunefem/clean.sh b/flow-over-heated-plate/solid-dunefem/clean.sh index 2d972a3d4..fde51b3ba 100755 --- a/flow-over-heated-plate/solid-dunefem/clean.sh +++ b/flow-over-heated-plate/solid-dunefem/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dune . diff --git a/flow-over-heated-plate/solid-fenics/clean.sh b/flow-over-heated-plate/solid-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/flow-over-heated-plate/solid-fenics/clean.sh +++ b/flow-over-heated-plate/solid-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/flow-over-heated-plate/solid-nutils/clean.sh b/flow-over-heated-plate/solid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/flow-over-heated-plate/solid-nutils/clean.sh +++ b/flow-over-heated-plate/solid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/flow-over-heated-plate/solid-openfoam/clean.sh b/flow-over-heated-plate/solid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/flow-over-heated-plate/solid-openfoam/clean.sh +++ b/flow-over-heated-plate/solid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/free-flow-over-porous-media/free-flow-dumux/clean.sh b/free-flow-over-porous-media/free-flow-dumux/clean.sh index 3e9fd4e51..5fc4c56ea 100755 --- a/free-flow-over-porous-media/free-flow-dumux/clean.sh +++ b/free-flow-over-porous-media/free-flow-dumux/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/free-flow-over-porous-media/porous-media-dumux/clean.sh b/free-flow-over-porous-media/porous-media-dumux/clean.sh index 3e9fd4e51..5fc4c56ea 100755 --- a/free-flow-over-porous-media/porous-media-dumux/clean.sh +++ b/free-flow-over-porous-media/porous-media-dumux/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger-simplified/fluid-top-openfoam/clean.sh b/heat-exchanger-simplified/fluid-top-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/heat-exchanger-simplified/fluid-top-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-top-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger-simplified/solid-calculix/clean.sh b/heat-exchanger-simplified/solid-calculix/clean.sh index b7d019c0e..47ec1a7c0 100755 --- a/heat-exchanger-simplified/solid-calculix/clean.sh +++ b/heat-exchanger-simplified/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/heat-exchanger/fluid-inner-openfoam/clean.sh b/heat-exchanger/fluid-inner-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/heat-exchanger/fluid-inner-openfoam/clean.sh +++ b/heat-exchanger/fluid-inner-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger/fluid-outer-openfoam/clean.sh b/heat-exchanger/fluid-outer-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/heat-exchanger/fluid-outer-openfoam/clean.sh +++ b/heat-exchanger/fluid-outer-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger/solid-calculix/clean.sh b/heat-exchanger/solid-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/heat-exchanger/solid-calculix/clean.sh +++ b/heat-exchanger/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh +++ b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh b/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh index 4fc364450..5c90613e0 100755 --- a/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh b/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh index 4fc364450..5c90613e0 100755 --- a/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/oscillator-overlap/mass-left-python/clean.sh b/oscillator-overlap/mass-left-python/clean.sh index d25a78518..8ade36955 100755 --- a/oscillator-overlap/mass-left-python/clean.sh +++ b/oscillator-overlap/mass-left-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator-overlap/mass-right-python/clean.sh b/oscillator-overlap/mass-right-python/clean.sh index d25a78518..8ade36955 100755 --- a/oscillator-overlap/mass-right-python/clean.sh +++ b/oscillator-overlap/mass-right-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/mass-left-fmi/clean.sh b/oscillator/mass-left-fmi/clean.sh index d25a78518..8ade36955 100755 --- a/oscillator/mass-left-fmi/clean.sh +++ b/oscillator/mass-left-fmi/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/mass-left-python/clean.sh b/oscillator/mass-left-python/clean.sh index 932e33b85..a7e94d6ff 100755 --- a/oscillator/mass-left-python/clean.sh +++ b/oscillator/mass-left-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fmi . diff --git a/oscillator/mass-right-fmi/clean.sh b/oscillator/mass-right-fmi/clean.sh index 3d9d13df6..7de5b01e9 100755 --- a/oscillator/mass-right-fmi/clean.sh +++ b/oscillator/mass-right-fmi/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/mass-right-python/clean.sh b/oscillator/mass-right-python/clean.sh index 3d9d13df6..7de5b01e9 100755 --- a/oscillator/mass-right-python/clean.sh +++ b/oscillator/mass-right-python/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh index 3b61b2dc8..a49565665 100755 --- a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . \ No newline at end of file diff --git a/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh b/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh index 3b61b2dc8..a49565665 100755 --- a/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . \ No newline at end of file diff --git a/partitioned-elastic-beam/dirichlet-calculix/clean.sh b/partitioned-elastic-beam/dirichlet-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/partitioned-elastic-beam/dirichlet-calculix/clean.sh +++ b/partitioned-elastic-beam/dirichlet-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/partitioned-elastic-beam/neumann-calculix/clean.sh b/partitioned-elastic-beam/neumann-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/partitioned-elastic-beam/neumann-calculix/clean.sh +++ b/partitioned-elastic-beam/neumann-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction-complex/neumann-fenics/clean.sh b/partitioned-heat-conduction-complex/neumann-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction-complex/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/neumann-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction-direct/clean-tutorial.sh b/partitioned-heat-conduction-direct/clean-tutorial.sh index 1852efa74..1230bc6bc 100755 --- a/partitioned-heat-conduction-direct/clean-tutorial.sh +++ b/partitioned-heat-conduction-direct/clean-tutorial.sh @@ -1,6 +1,10 @@ #!/usr/bin/env sh set -e -u +# Determine the tutorial directory (where the symlink is located) +TUTORIAL_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$TUTORIAL_DIR" + # shellcheck disable=SC1091 . ../tools/cleaning-tools.sh diff --git a/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh b/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction-direct/neumann-nutils/clean.sh b/partitioned-heat-conduction-direct/neumann-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/partitioned-heat-conduction-direct/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/neumann-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction-overlap/left-fenics/clean.sh b/partitioned-heat-conduction-overlap/left-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction-overlap/left-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/left-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction-overlap/right-fenics/clean.sh b/partitioned-heat-conduction-overlap/right-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction-overlap/right-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/right-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction/dirichlet-fenics/clean.sh b/partitioned-heat-conduction/dirichlet-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction/dirichlet-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction/dirichlet-nutils/clean.sh b/partitioned-heat-conduction/dirichlet-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/partitioned-heat-conduction/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction/dirichlet-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction/dirichlet-openfoam/clean.sh b/partitioned-heat-conduction/dirichlet-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-heat-conduction/dirichlet-openfoam/clean.sh +++ b/partitioned-heat-conduction/dirichlet-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-heat-conduction/neumann-fenics/clean.sh b/partitioned-heat-conduction/neumann-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/partitioned-heat-conduction/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction/neumann-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction/neumann-nutils/clean.sh b/partitioned-heat-conduction/neumann-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/partitioned-heat-conduction/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction/neumann-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction/neumann-openfoam/clean.sh b/partitioned-heat-conduction/neumann-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-heat-conduction/neumann-openfoam/clean.sh +++ b/partitioned-heat-conduction/neumann-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-heat-conduction/solver-openfoam/clean.sh b/partitioned-heat-conduction/solver-openfoam/clean.sh index 2ca6224c6..194d32293 100755 --- a/partitioned-heat-conduction/solver-openfoam/clean.sh +++ b/partitioned-heat-conduction/solver-openfoam/clean.sh @@ -1,4 +1,7 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + wclean diff --git a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh index 5120c1355..368319ccc 100755 --- a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh b/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh index 5120c1355..368319ccc 100755 --- a/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe-two-phase/monolithic/clean.sh b/partitioned-pipe-two-phase/monolithic/clean.sh index 5120c1355..368319ccc 100755 --- a/partitioned-pipe-two-phase/monolithic/clean.sh +++ b/partitioned-pipe-two-phase/monolithic/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh b/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh b/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh b/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap-stress/fluid-openfoam/clean.sh b/perpendicular-flap-stress/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/perpendicular-flap-stress/fluid-openfoam/clean.sh +++ b/perpendicular-flap-stress/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap-stress/solid-gismo/clean.sh b/perpendicular-flap-stress/solid-gismo/clean.sh index 5249e1586..ed706c12f 100755 --- a/perpendicular-flap-stress/solid-gismo/clean.sh +++ b/perpendicular-flap-stress/solid-gismo/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_gismo . diff --git a/perpendicular-flap/fluid-nutils/clean.sh b/perpendicular-flap/fluid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/perpendicular-flap/fluid-nutils/clean.sh +++ b/perpendicular-flap/fluid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/fluid-openfoam/clean.sh b/perpendicular-flap/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/perpendicular-flap/fluid-openfoam/clean.sh +++ b/perpendicular-flap/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/fluid-su2/clean.sh b/perpendicular-flap/fluid-su2/clean.sh index ecab06b44..bb3d9a40b 100755 --- a/perpendicular-flap/fluid-su2/clean.sh +++ b/perpendicular-flap/fluid-su2/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_su2 . diff --git a/perpendicular-flap/solid-calculix/clean.sh b/perpendicular-flap/solid-calculix/clean.sh index 32856eac1..7ec5aa838 100755 --- a/perpendicular-flap/solid-calculix/clean.sh +++ b/perpendicular-flap/solid-calculix/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/perpendicular-flap/solid-dealii/clean.sh b/perpendicular-flap/solid-dealii/clean.sh index 4fc364450..5c90613e0 100755 --- a/perpendicular-flap/solid-dealii/clean.sh +++ b/perpendicular-flap/solid-dealii/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/perpendicular-flap/solid-dune/clean.sh b/perpendicular-flap/solid-dune/clean.sh index 2d972a3d4..fde51b3ba 100755 --- a/perpendicular-flap/solid-dune/clean.sh +++ b/perpendicular-flap/solid-dune/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dune . diff --git a/perpendicular-flap/solid-fenics/clean.sh b/perpendicular-flap/solid-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/perpendicular-flap/solid-fenics/clean.sh +++ b/perpendicular-flap/solid-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/perpendicular-flap/solid-nutils/clean.sh b/perpendicular-flap/solid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/perpendicular-flap/solid-nutils/clean.sh +++ b/perpendicular-flap/solid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/solid-openfoam/clean.sh b/perpendicular-flap/solid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/perpendicular-flap/solid-openfoam/clean.sh +++ b/perpendicular-flap/solid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/solid-solids4foam/clean.sh b/perpendicular-flap/solid-solids4foam/clean.sh index b64fc5101..5195151d2 100755 --- a/perpendicular-flap/solid-solids4foam/clean.sh +++ b/perpendicular-flap/solid-solids4foam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/fluid-openfoam/clean.sh b/quickstart/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/quickstart/fluid-openfoam/clean.sh +++ b/quickstart/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/solid-cpp/clean.sh b/quickstart/solid-cpp/clean.sh index 494c80414..768c4ff6f 100755 --- a/quickstart/solid-cpp/clean.sh +++ b/quickstart/solid-cpp/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/resonant-circuit/capacitor-matlab/clean.sh b/resonant-circuit/capacitor-matlab/clean.sh index 6a77c6d6c..7559030c5 100755 --- a/resonant-circuit/capacitor-matlab/clean.sh +++ b/resonant-circuit/capacitor-matlab/clean.sh @@ -1,6 +1,9 @@ #!/bin/sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + rm ./*.png ./*.mat . ../../tools/cleaning-tools.sh diff --git a/resonant-circuit/coil-matlab/clean.sh b/resonant-circuit/coil-matlab/clean.sh index 5c6294dfa..1a5d2dbfc 100755 --- a/resonant-circuit/coil-matlab/clean.sh +++ b/resonant-circuit/coil-matlab/clean.sh @@ -1,6 +1,9 @@ #!/bin/sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_matlab . diff --git a/turek-hron-fsi3/fluid-nutils/clean.sh b/turek-hron-fsi3/fluid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/turek-hron-fsi3/fluid-nutils/clean.sh +++ b/turek-hron-fsi3/fluid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/turek-hron-fsi3/fluid-openfoam/clean.sh b/turek-hron-fsi3/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/turek-hron-fsi3/fluid-openfoam/clean.sh +++ b/turek-hron-fsi3/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/turek-hron-fsi3/solid-dealii/clean.sh b/turek-hron-fsi3/solid-dealii/clean.sh index 4fc364450..5c90613e0 100755 --- a/turek-hron-fsi3/solid-dealii/clean.sh +++ b/turek-hron-fsi3/solid-dealii/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/turek-hron-fsi3/solid-nutils/clean.sh b/turek-hron-fsi3/solid-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/turek-hron-fsi3/solid-nutils/clean.sh +++ b/turek-hron-fsi3/solid-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/two-scale-heat-conduction/macro-dumux/clean.sh b/two-scale-heat-conduction/macro-dumux/clean.sh index 3e9fd4e51..5fc4c56ea 100755 --- a/two-scale-heat-conduction/macro-dumux/clean.sh +++ b/two-scale-heat-conduction/macro-dumux/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/two-scale-heat-conduction/macro-nutils/clean.sh b/two-scale-heat-conduction/macro-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/two-scale-heat-conduction/macro-nutils/clean.sh +++ b/two-scale-heat-conduction/macro-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/two-scale-heat-conduction/micro-dumux/clean.sh b/two-scale-heat-conduction/micro-dumux/clean.sh index 3e9fd4e51..5fc4c56ea 100755 --- a/two-scale-heat-conduction/micro-dumux/clean.sh +++ b/two-scale-heat-conduction/micro-dumux/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/two-scale-heat-conduction/micro-nutils/clean.sh b/two-scale-heat-conduction/micro-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/two-scale-heat-conduction/micro-nutils/clean.sh +++ b/two-scale-heat-conduction/micro-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/volume-coupled-diffusion/drain-fenics/clean.sh b/volume-coupled-diffusion/drain-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/volume-coupled-diffusion/drain-fenics/clean.sh +++ b/volume-coupled-diffusion/drain-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/volume-coupled-diffusion/source-fenics/clean.sh b/volume-coupled-diffusion/source-fenics/clean.sh index d3f3318b4..c314a402f 100755 --- a/volume-coupled-diffusion/source-fenics/clean.sh +++ b/volume-coupled-diffusion/source-fenics/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/volume-coupled-flow/fluid-openfoam/clean.sh b/volume-coupled-flow/fluid-openfoam/clean.sh index b64fc5101..5195151d2 100755 --- a/volume-coupled-flow/fluid-openfoam/clean.sh +++ b/volume-coupled-flow/fluid-openfoam/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/volume-coupled-flow/source-nutils/clean.sh b/volume-coupled-flow/source-nutils/clean.sh index 0d1c2d23d..6d739c605 100755 --- a/volume-coupled-flow/source-nutils/clean.sh +++ b/volume-coupled-flow/source-nutils/clean.sh @@ -1,6 +1,9 @@ #!/usr/bin/env sh set -e -u +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" + . ../../tools/cleaning-tools.sh clean_nutils .