From 705a46a8352112a91e4559eb5c99db566e34dd02 Mon Sep 17 00:00:00 2001 From: Pranjal Date: Sat, 21 Feb 2026 10:50:13 +0530 Subject: [PATCH 1/6] Fix system test counter to start from 1 instead of 0 Co-authored-by: Cursor --- tools/tests/build_docker_images.py | 2 +- tools/tests/generate_reference_results.py | 2 +- tools/tests/systemtests.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tests/build_docker_images.py b/tools/tests/build_docker_images.py index 89b9a3041..4cb34e252 100644 --- a/tools/tests/build_docker_images.py +++ b/tools/tests/build_docker_images.py @@ -69,7 +69,7 @@ def main(): logging.info(f"About to build the images for the following systemtests:\n {systemtests_to_run}") results = [] - for number, systemtest in enumerate(systemtests_to_run): + for number, systemtest in enumerate(systemtests_to_run, start=1): logging.info(f"Started building {systemtest}, {number}/{len(systemtests_to_run)}") t = time.perf_counter() result = systemtest.run_only_build(run_directory) diff --git a/tools/tests/generate_reference_results.py b/tools/tests/generate_reference_results.py index b72258cac..f43866745 100644 --- a/tools/tests/generate_reference_results.py +++ b/tools/tests/generate_reference_results.py @@ -118,7 +118,7 @@ def main(): current_time_string = datetime.now().strftime('%Y-%m-%d %H:%M:%S') logging.info(f"About to run the following tests {systemtests_to_run}") - for number, systemtest in enumerate(systemtests_to_run): + for number, systemtest in enumerate(systemtests_to_run, start=1): logging.info(f"Started running {systemtest}, {number}/{len(systemtests_to_run)}") t = time.perf_counter() result = systemtest.run_for_reference_results(run_directory) diff --git a/tools/tests/systemtests.py b/tools/tests/systemtests.py index 363cd88f3..8a37670eb 100644 --- a/tools/tests/systemtests.py +++ b/tools/tests/systemtests.py @@ -69,7 +69,7 @@ def main(): logging.info(f"About to run the following systemtest in the directory {run_directory}:\n {systemtests_to_run}") results = [] - for number, systemtest in enumerate(systemtests_to_run): + for number, systemtest in enumerate(systemtests_to_run, start=1): logging.info(f"Started running {systemtest}, {number}/{len(systemtests_to_run)}") t = time.perf_counter() result = systemtest.run(run_directory) From a009b83c89917bfce31f8059e835f723e778c5be Mon Sep 17 00:00:00 2001 From: Pranjal Date: Sat, 21 Feb 2026 11:21:18 +0530 Subject: [PATCH 2/6] Make cleaning scripts callable from repository root Co-authored-by: Cursor --- aste-turbine/clean-tutorial.sh | 1 + aste-turbine/clean.sh | 1 + breaking-dam-2d/clean-tutorial.sh | 1 + breaking-dam-2d/fluid-openfoam/clean.sh | 1 + breaking-dam-2d/solid-calculix/clean.sh | 1 + channel-transport-particles/clean-tutorial.sh | 1 + channel-transport-particles/fluid-nutils/clean.sh | 1 + channel-transport-particles/fluid-openfoam/clean.sh | 1 + channel-transport-particles/particles-mercurydpm/clean.sh | 1 + channel-transport-reaction/chemical-fenics/clean.sh | 1 + channel-transport-reaction/clean-tutorial.sh | 2 ++ channel-transport-reaction/fluid-fenics/clean.sh | 1 + channel-transport/clean-tutorial.sh | 1 + channel-transport/fluid-nutils/clean.sh | 1 + channel-transport/fluid-openfoam/clean.sh | 1 + channel-transport/transport-nutils/clean.sh | 1 + clean-all.sh | 2 ++ elastic-tube-1d/clean-tutorial.sh | 1 + elastic-tube-1d/fluid-cpp/clean.sh | 1 + elastic-tube-1d/fluid-fortran-module/clean.sh | 1 + elastic-tube-1d/fluid-fortran/clean.sh | 1 + elastic-tube-1d/fluid-python/clean.sh | 1 + elastic-tube-1d/fluid-rust/clean.sh | 1 + elastic-tube-1d/solid-cpp/clean.sh | 1 + elastic-tube-1d/solid-fortran-module/clean.sh | 1 + elastic-tube-1d/solid-fortran/clean.sh | 1 + elastic-tube-1d/solid-python/clean.sh | 1 + elastic-tube-1d/solid-rust/clean.sh | 1 + elastic-tube-3d/clean-tutorial.sh | 1 + elastic-tube-3d/fluid-openfoam/clean.sh | 1 + elastic-tube-3d/solid-calculix/clean.sh | 1 + elastic-tube-3d/solid-fenics/clean.sh | 1 + flow-around-controlled-moving-cylinder/controller-fmi/clean.sh | 1 + flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh | 1 + flow-over-heated-plate-nearest-projection/clean-tutorial.sh | 1 + .../fluid-openfoam/clean.sh | 1 + .../solid-openfoam/clean.sh | 1 + flow-over-heated-plate-partitioned-flow/clean-tutorial.sh | 1 + .../fluid1-openfoam/clean.sh | 1 + .../fluid2-openfoam/clean.sh | 1 + flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh | 1 + flow-over-heated-plate-steady-state/clean-tutorial.sh | 1 + flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh | 1 + flow-over-heated-plate-steady-state/solid-codeaster/clean.sh | 1 + flow-over-heated-plate-two-meshes/clean-tutorial.sh | 1 + flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh | 1 + flow-over-heated-plate-two-meshes/solid-calculix/clean.sh | 1 + flow-over-heated-plate/clean-tutorial.sh | 1 + flow-over-heated-plate/fluid-openfoam/clean.sh | 1 + flow-over-heated-plate/fluid-su2/clean.sh | 1 + flow-over-heated-plate/solid-dunefem/clean.sh | 1 + flow-over-heated-plate/solid-fenics/clean.sh | 1 + flow-over-heated-plate/solid-nutils/clean.sh | 1 + flow-over-heated-plate/solid-openfoam/clean.sh | 1 + free-flow-over-porous-media/clean-tutorial.sh | 1 + free-flow-over-porous-media/free-flow-dumux/clean.sh | 1 + free-flow-over-porous-media/porous-media-dumux/clean.sh | 1 + heat-exchanger-simplified/clean-tutorial.sh | 1 + heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh | 1 + heat-exchanger-simplified/fluid-top-openfoam/clean.sh | 1 + heat-exchanger-simplified/solid-calculix/clean.sh | 1 + heat-exchanger/clean-tutorial.sh | 1 + heat-exchanger/fluid-inner-openfoam/clean.sh | 1 + heat-exchanger/fluid-outer-openfoam/clean.sh | 1 + heat-exchanger/solid-calculix/clean.sh | 1 + multiple-perpendicular-flaps/clean-tutorial.sh | 1 + multiple-perpendicular-flaps/fluid-openfoam/clean.sh | 1 + multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh | 1 + multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh | 1 + oscillator-overlap/clean-tutorial.sh | 1 + oscillator-overlap/mass-left-python/clean.sh | 1 + oscillator-overlap/mass-right-python/clean.sh | 1 + oscillator/clean-tutorial.sh | 1 + oscillator/mass-left-fmi/clean.sh | 1 + oscillator/mass-left-python/clean.sh | 1 + oscillator/mass-right-fmi/clean.sh | 1 + oscillator/mass-right-python/clean.sh | 1 + partitioned-backwards-facing-step/clean-tutorial.sh | 1 + partitioned-backwards-facing-step/fluid1-openfoam/clean.sh | 1 + partitioned-backwards-facing-step/fluid2-openfoam/clean.sh | 1 + partitioned-elastic-beam/clean-tutorial.sh | 1 + partitioned-elastic-beam/dirichlet-calculix/clean.sh | 1 + partitioned-elastic-beam/neumann-calculix/clean.sh | 1 + partitioned-heat-conduction-complex/clean-tutorial.sh | 1 + partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh | 1 + partitioned-heat-conduction-complex/neumann-fenics/clean.sh | 1 + partitioned-heat-conduction-direct/clean-tutorial.sh | 2 ++ partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh | 1 + partitioned-heat-conduction-direct/neumann-nutils/clean.sh | 1 + partitioned-heat-conduction-overlap/clean-tutorial.sh | 1 + partitioned-heat-conduction-overlap/left-fenics/clean.sh | 1 + partitioned-heat-conduction-overlap/right-fenics/clean.sh | 1 + partitioned-heat-conduction/clean-tutorial.sh | 1 + partitioned-heat-conduction/dirichlet-fenics/clean.sh | 1 + partitioned-heat-conduction/dirichlet-nutils/clean.sh | 1 + partitioned-heat-conduction/dirichlet-openfoam/clean.sh | 1 + partitioned-heat-conduction/neumann-fenics/clean.sh | 1 + partitioned-heat-conduction/neumann-nutils/clean.sh | 1 + partitioned-heat-conduction/neumann-openfoam/clean.sh | 1 + partitioned-heat-conduction/solver-openfoam/clean.sh | 1 + partitioned-pipe-two-phase/clean-tutorial.sh | 1 + partitioned-pipe-two-phase/fluid1-openfoam/clean.sh | 1 + partitioned-pipe-two-phase/fluid2-openfoam/clean.sh | 1 + partitioned-pipe-two-phase/monolithic/clean.sh | 1 + partitioned-pipe/clean-tutorial.sh | 1 + partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh | 1 + partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh | 1 + partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh | 1 + partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh | 1 + perpendicular-flap-stress/clean-tutorial.sh | 1 + perpendicular-flap-stress/fluid-openfoam/clean.sh | 1 + perpendicular-flap-stress/solid-gismo/clean.sh | 1 + perpendicular-flap/clean-tutorial.sh | 1 + perpendicular-flap/fluid-nutils/clean.sh | 1 + perpendicular-flap/fluid-openfoam/clean.sh | 1 + perpendicular-flap/fluid-su2/clean.sh | 1 + perpendicular-flap/solid-calculix/clean.sh | 1 + perpendicular-flap/solid-dealii/clean.sh | 1 + perpendicular-flap/solid-dune/clean.sh | 1 + perpendicular-flap/solid-fenics/clean.sh | 1 + perpendicular-flap/solid-nutils/clean.sh | 1 + perpendicular-flap/solid-openfoam/clean.sh | 1 + perpendicular-flap/solid-solids4foam/clean.sh | 1 + quickstart/clean-tutorial.sh | 1 + quickstart/fluid-openfoam/clean.sh | 1 + quickstart/solid-cpp/clean.sh | 1 + resonant-circuit/clean-tutorial.sh | 1 + resonant-circuit/coil-matlab/clean.sh | 1 + turek-hron-fsi3/clean-tutorial.sh | 1 + turek-hron-fsi3/fluid-nutils/clean.sh | 1 + turek-hron-fsi3/fluid-openfoam/clean.sh | 1 + turek-hron-fsi3/solid-dealii/clean.sh | 1 + turek-hron-fsi3/solid-nutils/clean.sh | 1 + two-scale-heat-conduction/clean-tutorial.sh | 1 + two-scale-heat-conduction/macro-dumux/clean.sh | 1 + two-scale-heat-conduction/macro-nutils/clean.sh | 1 + two-scale-heat-conduction/micro-dumux/clean.sh | 1 + two-scale-heat-conduction/micro-nutils/clean.sh | 1 + volume-coupled-diffusion/clean-tutorial.sh | 1 + volume-coupled-diffusion/drain-fenics/clean.sh | 1 + volume-coupled-diffusion/source-fenics/clean.sh | 1 + volume-coupled-flow/clean-tutorial.sh | 1 + volume-coupled-flow/fluid-openfoam/clean.sh | 1 + volume-coupled-flow/source-nutils/clean.sh | 1 + 144 files changed, 147 insertions(+) diff --git a/aste-turbine/clean-tutorial.sh b/aste-turbine/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/aste-turbine/clean-tutorial.sh +++ b/aste-turbine/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/aste-turbine/clean.sh b/aste-turbine/clean.sh index 7daccec54..bb97d16a9 100755 --- a/aste-turbine/clean.sh +++ b/aste-turbine/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../tools/cleaning-tools.sh clean_aste . diff --git a/breaking-dam-2d/clean-tutorial.sh b/breaking-dam-2d/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/breaking-dam-2d/clean-tutorial.sh +++ b/breaking-dam-2d/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/breaking-dam-2d/fluid-openfoam/clean.sh b/breaking-dam-2d/fluid-openfoam/clean.sh index be0e8894e..d33ffa419 100755 --- a/breaking-dam-2d/fluid-openfoam/clean.sh +++ b/breaking-dam-2d/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..74239da78 100755 --- a/breaking-dam-2d/solid-calculix/clean.sh +++ b/breaking-dam-2d/solid-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/channel-transport-particles/clean-tutorial.sh b/channel-transport-particles/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/channel-transport-particles/clean-tutorial.sh +++ b/channel-transport-particles/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/channel-transport-particles/fluid-nutils/clean.sh b/channel-transport-particles/fluid-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/channel-transport-particles/fluid-nutils/clean.sh +++ b/channel-transport-particles/fluid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/channel-transport-particles/fluid-openfoam/clean.sh +++ b/channel-transport-particles/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..a1141149e 100755 --- a/channel-transport-particles/particles-mercurydpm/clean.sh +++ b/channel-transport-particles/particles-mercurydpm/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..a7238c2d7 100755 --- a/channel-transport-reaction/chemical-fenics/clean.sh +++ b/channel-transport-reaction/chemical-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport-reaction/clean-tutorial.sh b/channel-transport-reaction/clean-tutorial.sh index 5dbb6c639..1c756a836 100755 --- a/channel-transport-reaction/clean-tutorial.sh +++ b/channel-transport-reaction/clean-tutorial.sh @@ -1,6 +1,8 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" + # shellcheck disable=SC1091 . ../tools/cleaning-tools.sh diff --git a/channel-transport-reaction/fluid-fenics/clean.sh b/channel-transport-reaction/fluid-fenics/clean.sh index cbd679c4a..a7238c2d7 100755 --- a/channel-transport-reaction/fluid-fenics/clean.sh +++ b/channel-transport-reaction/fluid-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport/clean-tutorial.sh b/channel-transport/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/channel-transport/clean-tutorial.sh +++ b/channel-transport/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/channel-transport/fluid-nutils/clean.sh b/channel-transport/fluid-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/channel-transport/fluid-nutils/clean.sh +++ b/channel-transport/fluid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/channel-transport/fluid-openfoam/clean.sh b/channel-transport/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/channel-transport/fluid-openfoam/clean.sh +++ b/channel-transport/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/channel-transport/transport-nutils/clean.sh b/channel-transport/transport-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/channel-transport/transport-nutils/clean.sh +++ b/channel-transport/transport-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/clean-all.sh b/clean-all.sh index db75b0df0..fee04b485 100755 --- a/clean-all.sh +++ b/clean-all.sh @@ -1,6 +1,8 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" + echo "Cleaning up all tutorials..." find . -maxdepth 2 -mindepth 2 -name clean-tutorial.sh -execdir sh -c './clean-tutorial.sh' \; diff --git a/elastic-tube-1d/clean-tutorial.sh b/elastic-tube-1d/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/elastic-tube-1d/clean-tutorial.sh +++ b/elastic-tube-1d/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/elastic-tube-1d/fluid-cpp/clean.sh b/elastic-tube-1d/fluid-cpp/clean.sh index 8d5d37784..2e1b7997a 100755 --- a/elastic-tube-1d/fluid-cpp/clean.sh +++ b/elastic-tube-1d/fluid-cpp/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..2e1b7997a 100755 --- a/elastic-tube-1d/fluid-fortran-module/clean.sh +++ b/elastic-tube-1d/fluid-fortran-module/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..2e1b7997a 100755 --- a/elastic-tube-1d/fluid-fortran/clean.sh +++ b/elastic-tube-1d/fluid-fortran/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..2e1b7997a 100755 --- a/elastic-tube-1d/fluid-python/clean.sh +++ b/elastic-tube-1d/fluid-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..2e1b7997a 100755 --- a/elastic-tube-1d/fluid-rust/clean.sh +++ b/elastic-tube-1d/fluid-rust/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..fc5d3a04f 100755 --- a/elastic-tube-1d/solid-cpp/clean.sh +++ b/elastic-tube-1d/solid-cpp/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..1c29c8588 100755 --- a/elastic-tube-1d/solid-fortran-module/clean.sh +++ b/elastic-tube-1d/solid-fortran-module/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..1c29c8588 100755 --- a/elastic-tube-1d/solid-fortran/clean.sh +++ b/elastic-tube-1d/solid-fortran/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..fc5d3a04f 100755 --- a/elastic-tube-1d/solid-python/clean.sh +++ b/elastic-tube-1d/solid-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..fc5d3a04f 100755 --- a/elastic-tube-1d/solid-rust/clean.sh +++ b/elastic-tube-1d/solid-rust/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-3d/clean-tutorial.sh b/elastic-tube-3d/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/elastic-tube-3d/clean-tutorial.sh +++ b/elastic-tube-3d/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/elastic-tube-3d/fluid-openfoam/clean.sh b/elastic-tube-3d/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/elastic-tube-3d/fluid-openfoam/clean.sh +++ b/elastic-tube-3d/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..74239da78 100755 --- a/elastic-tube-3d/solid-calculix/clean.sh +++ b/elastic-tube-3d/solid-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/elastic-tube-3d/solid-fenics/clean.sh +++ b/elastic-tube-3d/solid-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..0d12e914e 100755 --- a/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh +++ b/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..061349c6c 100755 --- a/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh +++ b/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh # since we work with a 0_orig folder here diff --git a/flow-over-heated-plate-nearest-projection/clean-tutorial.sh b/flow-over-heated-plate-nearest-projection/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/flow-over-heated-plate-nearest-projection/clean-tutorial.sh +++ b/flow-over-heated-plate-nearest-projection/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh b/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh +++ b/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-steady-state/clean-tutorial.sh b/flow-over-heated-plate-steady-state/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/flow-over-heated-plate-steady-state/clean-tutorial.sh +++ b/flow-over-heated-plate-steady-state/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..df4a407ef 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_codeaster . diff --git a/flow-over-heated-plate-two-meshes/clean-tutorial.sh b/flow-over-heated-plate-two-meshes/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/flow-over-heated-plate-two-meshes/clean-tutorial.sh +++ b/flow-over-heated-plate-two-meshes/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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..aed8e6e7a 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..8b2dc766f 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/flow-over-heated-plate/clean-tutorial.sh b/flow-over-heated-plate/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/flow-over-heated-plate/clean-tutorial.sh +++ b/flow-over-heated-plate/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/flow-over-heated-plate/fluid-openfoam/clean.sh b/flow-over-heated-plate/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/flow-over-heated-plate/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..16d7b6ef0 100755 --- a/flow-over-heated-plate/fluid-su2/clean.sh +++ b/flow-over-heated-plate/fluid-su2/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..c2226bff8 100755 --- a/flow-over-heated-plate/solid-dunefem/clean.sh +++ b/flow-over-heated-plate/solid-dunefem/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/flow-over-heated-plate/solid-fenics/clean.sh +++ b/flow-over-heated-plate/solid-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/flow-over-heated-plate/solid-nutils/clean.sh +++ b/flow-over-heated-plate/solid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/flow-over-heated-plate/solid-openfoam/clean.sh +++ b/flow-over-heated-plate/solid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/free-flow-over-porous-media/clean-tutorial.sh b/free-flow-over-porous-media/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/free-flow-over-porous-media/clean-tutorial.sh +++ b/free-flow-over-porous-media/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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..553fab5ac 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..553fab5ac 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,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/heat-exchanger-simplified/clean-tutorial.sh b/heat-exchanger-simplified/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/heat-exchanger-simplified/clean-tutorial.sh +++ b/heat-exchanger-simplified/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/heat-exchanger-simplified/fluid-top-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-top-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..8b2dc766f 100755 --- a/heat-exchanger-simplified/solid-calculix/clean.sh +++ b/heat-exchanger-simplified/solid-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/heat-exchanger/clean-tutorial.sh b/heat-exchanger/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/heat-exchanger/clean-tutorial.sh +++ b/heat-exchanger/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/heat-exchanger/fluid-inner-openfoam/clean.sh b/heat-exchanger/fluid-inner-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/heat-exchanger/fluid-inner-openfoam/clean.sh +++ b/heat-exchanger/fluid-inner-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/heat-exchanger/fluid-outer-openfoam/clean.sh +++ b/heat-exchanger/fluid-outer-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger/solid-calculix/clean.sh b/heat-exchanger/solid-calculix/clean.sh index 32856eac1..74239da78 100755 --- a/heat-exchanger/solid-calculix/clean.sh +++ b/heat-exchanger/solid-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/multiple-perpendicular-flaps/clean-tutorial.sh b/multiple-perpendicular-flaps/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/multiple-perpendicular-flaps/clean-tutorial.sh +++ b/multiple-perpendicular-flaps/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh +++ b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..5ff34a803 100755 --- a/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..5ff34a803 100755 --- a/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/oscillator-overlap/clean-tutorial.sh b/oscillator-overlap/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/oscillator-overlap/clean-tutorial.sh +++ b/oscillator-overlap/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/oscillator-overlap/mass-left-python/clean.sh b/oscillator-overlap/mass-left-python/clean.sh index d25a78518..cb9fefe11 100755 --- a/oscillator-overlap/mass-left-python/clean.sh +++ b/oscillator-overlap/mass-left-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..cb9fefe11 100755 --- a/oscillator-overlap/mass-right-python/clean.sh +++ b/oscillator-overlap/mass-right-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/clean-tutorial.sh b/oscillator/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/oscillator/clean-tutorial.sh +++ b/oscillator/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/oscillator/mass-left-fmi/clean.sh b/oscillator/mass-left-fmi/clean.sh index d25a78518..cb9fefe11 100755 --- a/oscillator/mass-left-fmi/clean.sh +++ b/oscillator/mass-left-fmi/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..0d12e914e 100755 --- a/oscillator/mass-left-python/clean.sh +++ b/oscillator/mass-left-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fmi . diff --git a/oscillator/mass-right-fmi/clean.sh b/oscillator/mass-right-fmi/clean.sh index 3d9d13df6..e6da324a7 100755 --- a/oscillator/mass-right-fmi/clean.sh +++ b/oscillator/mass-right-fmi/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..e6da324a7 100755 --- a/oscillator/mass-right-python/clean.sh +++ b/oscillator/mass-right-python/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/partitioned-backwards-facing-step/clean-tutorial.sh b/partitioned-backwards-facing-step/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-backwards-facing-step/clean-tutorial.sh +++ b/partitioned-backwards-facing-step/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh index 3b61b2dc8..b0bc83598 100755 --- a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..b0bc83598 100755 --- a/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . \ No newline at end of file diff --git a/partitioned-elastic-beam/clean-tutorial.sh b/partitioned-elastic-beam/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-elastic-beam/clean-tutorial.sh +++ b/partitioned-elastic-beam/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ 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..74239da78 100755 --- a/partitioned-elastic-beam/dirichlet-calculix/clean.sh +++ b/partitioned-elastic-beam/dirichlet-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..74239da78 100755 --- a/partitioned-elastic-beam/neumann-calculix/clean.sh +++ b/partitioned-elastic-beam/neumann-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/partitioned-heat-conduction-complex/clean-tutorial.sh b/partitioned-heat-conduction-complex/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-heat-conduction-complex/clean-tutorial.sh +++ b/partitioned-heat-conduction-complex/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh index d3f3318b4..ea20da10f 100755 --- a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/partitioned-heat-conduction-complex/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/neumann-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..11e0fb019 100755 --- a/partitioned-heat-conduction-direct/clean-tutorial.sh +++ b/partitioned-heat-conduction-direct/clean-tutorial.sh @@ -1,6 +1,8 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" + # 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..9db506127 100755 --- a/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/partitioned-heat-conduction-direct/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/neumann-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction-overlap/clean-tutorial.sh b/partitioned-heat-conduction-overlap/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-heat-conduction-overlap/clean-tutorial.sh +++ b/partitioned-heat-conduction-overlap/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction-overlap/left-fenics/clean.sh b/partitioned-heat-conduction-overlap/left-fenics/clean.sh index d3f3318b4..ea20da10f 100755 --- a/partitioned-heat-conduction-overlap/left-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/left-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/partitioned-heat-conduction-overlap/right-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/right-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction/clean-tutorial.sh b/partitioned-heat-conduction/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-heat-conduction/clean-tutorial.sh +++ b/partitioned-heat-conduction/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction/dirichlet-fenics/clean.sh b/partitioned-heat-conduction/dirichlet-fenics/clean.sh index d3f3318b4..ea20da10f 100755 --- a/partitioned-heat-conduction/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction/dirichlet-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/partitioned-heat-conduction/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction/dirichlet-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/partitioned-heat-conduction/dirichlet-openfoam/clean.sh +++ b/partitioned-heat-conduction/dirichlet-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/partitioned-heat-conduction/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction/neumann-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/partitioned-heat-conduction/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction/neumann-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/partitioned-heat-conduction/neumann-openfoam/clean.sh +++ b/partitioned-heat-conduction/neumann-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..29e45f0b4 100755 --- a/partitioned-heat-conduction/solver-openfoam/clean.sh +++ b/partitioned-heat-conduction/solver-openfoam/clean.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" wclean diff --git a/partitioned-pipe-two-phase/clean-tutorial.sh b/partitioned-pipe-two-phase/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-pipe-two-phase/clean-tutorial.sh +++ b/partitioned-pipe-two-phase/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh index 5120c1355..eff07d41b 100755 --- a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..eff07d41b 100755 --- a/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..eff07d41b 100755 --- a/partitioned-pipe-two-phase/monolithic/clean.sh +++ b/partitioned-pipe-two-phase/monolithic/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/clean-tutorial.sh b/partitioned-pipe/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/partitioned-pipe/clean-tutorial.sh +++ b/partitioned-pipe/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap-stress/clean-tutorial.sh b/perpendicular-flap-stress/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/perpendicular-flap-stress/clean-tutorial.sh +++ b/perpendicular-flap-stress/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/perpendicular-flap-stress/fluid-openfoam/clean.sh b/perpendicular-flap-stress/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/perpendicular-flap-stress/fluid-openfoam/clean.sh +++ b/perpendicular-flap-stress/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9f873af30 100755 --- a/perpendicular-flap-stress/solid-gismo/clean.sh +++ b/perpendicular-flap-stress/solid-gismo/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_gismo . diff --git a/perpendicular-flap/clean-tutorial.sh b/perpendicular-flap/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/perpendicular-flap/clean-tutorial.sh +++ b/perpendicular-flap/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/perpendicular-flap/fluid-nutils/clean.sh b/perpendicular-flap/fluid-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/perpendicular-flap/fluid-nutils/clean.sh +++ b/perpendicular-flap/fluid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/fluid-openfoam/clean.sh b/perpendicular-flap/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/perpendicular-flap/fluid-openfoam/clean.sh +++ b/perpendicular-flap/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/fluid-su2/clean.sh b/perpendicular-flap/fluid-su2/clean.sh index ecab06b44..16d7b6ef0 100755 --- a/perpendicular-flap/fluid-su2/clean.sh +++ b/perpendicular-flap/fluid-su2/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_su2 . diff --git a/perpendicular-flap/solid-calculix/clean.sh b/perpendicular-flap/solid-calculix/clean.sh index 32856eac1..74239da78 100755 --- a/perpendicular-flap/solid-calculix/clean.sh +++ b/perpendicular-flap/solid-calculix/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/perpendicular-flap/solid-dealii/clean.sh b/perpendicular-flap/solid-dealii/clean.sh index 4fc364450..5ff34a803 100755 --- a/perpendicular-flap/solid-dealii/clean.sh +++ b/perpendicular-flap/solid-dealii/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/perpendicular-flap/solid-dune/clean.sh b/perpendicular-flap/solid-dune/clean.sh index 2d972a3d4..c2226bff8 100755 --- a/perpendicular-flap/solid-dune/clean.sh +++ b/perpendicular-flap/solid-dune/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dune . diff --git a/perpendicular-flap/solid-fenics/clean.sh b/perpendicular-flap/solid-fenics/clean.sh index d3f3318b4..ea20da10f 100755 --- a/perpendicular-flap/solid-fenics/clean.sh +++ b/perpendicular-flap/solid-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/perpendicular-flap/solid-nutils/clean.sh b/perpendicular-flap/solid-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/perpendicular-flap/solid-nutils/clean.sh +++ b/perpendicular-flap/solid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/solid-openfoam/clean.sh b/perpendicular-flap/solid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/perpendicular-flap/solid-openfoam/clean.sh +++ b/perpendicular-flap/solid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/solid-solids4foam/clean.sh b/perpendicular-flap/solid-solids4foam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/perpendicular-flap/solid-solids4foam/clean.sh +++ b/perpendicular-flap/solid-solids4foam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/clean-tutorial.sh b/quickstart/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/quickstart/clean-tutorial.sh +++ b/quickstart/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/quickstart/fluid-openfoam/clean.sh b/quickstart/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/quickstart/fluid-openfoam/clean.sh +++ b/quickstart/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/solid-cpp/clean.sh b/quickstart/solid-cpp/clean.sh index 494c80414..fc5d3a04f 100755 --- a/quickstart/solid-cpp/clean.sh +++ b/quickstart/solid-cpp/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/resonant-circuit/clean-tutorial.sh b/resonant-circuit/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/resonant-circuit/clean-tutorial.sh +++ b/resonant-circuit/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/resonant-circuit/coil-matlab/clean.sh b/resonant-circuit/coil-matlab/clean.sh index 5c6294dfa..3753683e5 100755 --- a/resonant-circuit/coil-matlab/clean.sh +++ b/resonant-circuit/coil-matlab/clean.sh @@ -1,6 +1,7 @@ #!/bin/sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_matlab . diff --git a/turek-hron-fsi3/clean-tutorial.sh b/turek-hron-fsi3/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/turek-hron-fsi3/clean-tutorial.sh +++ b/turek-hron-fsi3/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/turek-hron-fsi3/fluid-nutils/clean.sh b/turek-hron-fsi3/fluid-nutils/clean.sh index 0d1c2d23d..9db506127 100755 --- a/turek-hron-fsi3/fluid-nutils/clean.sh +++ b/turek-hron-fsi3/fluid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..aed8e6e7a 100755 --- a/turek-hron-fsi3/fluid-openfoam/clean.sh +++ b/turek-hron-fsi3/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..5ff34a803 100755 --- a/turek-hron-fsi3/solid-dealii/clean.sh +++ b/turek-hron-fsi3/solid-dealii/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/turek-hron-fsi3/solid-nutils/clean.sh +++ b/turek-hron-fsi3/solid-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/two-scale-heat-conduction/clean-tutorial.sh b/two-scale-heat-conduction/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/two-scale-heat-conduction/clean-tutorial.sh +++ b/two-scale-heat-conduction/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/two-scale-heat-conduction/macro-dumux/clean.sh b/two-scale-heat-conduction/macro-dumux/clean.sh index 3e9fd4e51..553fab5ac 100755 --- a/two-scale-heat-conduction/macro-dumux/clean.sh +++ b/two-scale-heat-conduction/macro-dumux/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/two-scale-heat-conduction/macro-nutils/clean.sh +++ b/two-scale-heat-conduction/macro-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..553fab5ac 100755 --- a/two-scale-heat-conduction/micro-dumux/clean.sh +++ b/two-scale-heat-conduction/micro-dumux/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/two-scale-heat-conduction/micro-nutils/clean.sh +++ b/two-scale-heat-conduction/micro-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/volume-coupled-diffusion/clean-tutorial.sh b/volume-coupled-diffusion/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/volume-coupled-diffusion/clean-tutorial.sh +++ b/volume-coupled-diffusion/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/volume-coupled-diffusion/drain-fenics/clean.sh b/volume-coupled-diffusion/drain-fenics/clean.sh index d3f3318b4..ea20da10f 100755 --- a/volume-coupled-diffusion/drain-fenics/clean.sh +++ b/volume-coupled-diffusion/drain-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..ea20da10f 100755 --- a/volume-coupled-diffusion/source-fenics/clean.sh +++ b/volume-coupled-diffusion/source-fenics/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/volume-coupled-flow/clean-tutorial.sh b/volume-coupled-flow/clean-tutorial.sh index 4713f5092..267a63624 120000 --- a/volume-coupled-flow/clean-tutorial.sh +++ b/volume-coupled-flow/clean-tutorial.sh @@ -1 +1,2 @@ +cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/volume-coupled-flow/fluid-openfoam/clean.sh b/volume-coupled-flow/fluid-openfoam/clean.sh index b64fc5101..aed8e6e7a 100755 --- a/volume-coupled-flow/fluid-openfoam/clean.sh +++ b/volume-coupled-flow/fluid-openfoam/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../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..9db506127 100755 --- a/volume-coupled-flow/source-nutils/clean.sh +++ b/volume-coupled-flow/source-nutils/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -e -u +cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . From 850dc3aa0b69faa2c9670253f877b086c460d413 Mon Sep 17 00:00:00 2001 From: Pranjal Date: Mon, 23 Feb 2026 20:10:38 +0530 Subject: [PATCH 3/6] Refactor cleaning fix to centralize path handling Co-authored-by: Cursor --- aste-turbine/clean-tutorial.sh | 1 - aste-turbine/clean.sh | 1 - breaking-dam-2d/clean-tutorial.sh | 1 - breaking-dam-2d/fluid-openfoam/clean.sh | 1 - breaking-dam-2d/solid-calculix/clean.sh | 1 - channel-transport-particles/clean-tutorial.sh | 1 - channel-transport-particles/fluid-nutils/clean.sh | 1 - channel-transport-particles/fluid-openfoam/clean.sh | 1 - channel-transport-particles/particles-mercurydpm/clean.sh | 1 - channel-transport-reaction/chemical-fenics/clean.sh | 1 - channel-transport-reaction/clean-tutorial.sh | 2 -- channel-transport-reaction/fluid-fenics/clean.sh | 1 - channel-transport/clean-tutorial.sh | 1 - channel-transport/fluid-nutils/clean.sh | 1 - channel-transport/fluid-openfoam/clean.sh | 1 - channel-transport/transport-nutils/clean.sh | 1 - clean-all.sh | 4 +++- elastic-tube-1d/clean-tutorial.sh | 1 - elastic-tube-1d/fluid-cpp/clean.sh | 1 - elastic-tube-1d/fluid-fortran-module/clean.sh | 1 - elastic-tube-1d/fluid-fortran/clean.sh | 1 - elastic-tube-1d/fluid-python/clean.sh | 1 - elastic-tube-1d/fluid-rust/clean.sh | 1 - elastic-tube-1d/solid-cpp/clean.sh | 1 - elastic-tube-1d/solid-fortran-module/clean.sh | 1 - elastic-tube-1d/solid-fortran/clean.sh | 1 - elastic-tube-1d/solid-python/clean.sh | 1 - elastic-tube-1d/solid-rust/clean.sh | 1 - elastic-tube-3d/clean-tutorial.sh | 1 - elastic-tube-3d/fluid-openfoam/clean.sh | 1 - elastic-tube-3d/solid-calculix/clean.sh | 1 - elastic-tube-3d/solid-fenics/clean.sh | 1 - .../controller-fmi/clean.sh | 1 - .../fluid-openfoam/clean.sh | 1 - flow-over-heated-plate-nearest-projection/clean-tutorial.sh | 1 - .../fluid-openfoam/clean.sh | 1 - .../solid-openfoam/clean.sh | 1 - flow-over-heated-plate-partitioned-flow/clean-tutorial.sh | 1 - .../fluid1-openfoam/clean.sh | 1 - .../fluid2-openfoam/clean.sh | 1 - .../solid-openfoam/clean.sh | 1 - flow-over-heated-plate-steady-state/clean-tutorial.sh | 1 - flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh | 1 - flow-over-heated-plate-steady-state/solid-codeaster/clean.sh | 1 - flow-over-heated-plate-two-meshes/clean-tutorial.sh | 1 - flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh | 1 - flow-over-heated-plate-two-meshes/solid-calculix/clean.sh | 1 - flow-over-heated-plate/clean-tutorial.sh | 1 - flow-over-heated-plate/fluid-openfoam/clean.sh | 1 - flow-over-heated-plate/fluid-su2/clean.sh | 1 - flow-over-heated-plate/solid-dunefem/clean.sh | 1 - flow-over-heated-plate/solid-fenics/clean.sh | 1 - flow-over-heated-plate/solid-nutils/clean.sh | 1 - flow-over-heated-plate/solid-openfoam/clean.sh | 1 - free-flow-over-porous-media/clean-tutorial.sh | 1 - free-flow-over-porous-media/free-flow-dumux/clean.sh | 1 - free-flow-over-porous-media/porous-media-dumux/clean.sh | 1 - heat-exchanger-simplified/clean-tutorial.sh | 1 - heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh | 1 - heat-exchanger-simplified/fluid-top-openfoam/clean.sh | 1 - heat-exchanger-simplified/solid-calculix/clean.sh | 1 - heat-exchanger/clean-tutorial.sh | 1 - heat-exchanger/fluid-inner-openfoam/clean.sh | 1 - heat-exchanger/fluid-outer-openfoam/clean.sh | 1 - heat-exchanger/solid-calculix/clean.sh | 1 - multiple-perpendicular-flaps/clean-tutorial.sh | 1 - multiple-perpendicular-flaps/fluid-openfoam/clean.sh | 1 - multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh | 1 - multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh | 1 - oscillator-overlap/clean-tutorial.sh | 1 - oscillator-overlap/mass-left-python/clean.sh | 1 - oscillator-overlap/mass-right-python/clean.sh | 1 - oscillator/clean-tutorial.sh | 1 - oscillator/mass-left-fmi/clean.sh | 1 - oscillator/mass-left-python/clean.sh | 1 - oscillator/mass-right-fmi/clean.sh | 1 - oscillator/mass-right-python/clean.sh | 1 - partitioned-backwards-facing-step/clean-tutorial.sh | 1 - partitioned-backwards-facing-step/fluid1-openfoam/clean.sh | 1 - partitioned-backwards-facing-step/fluid2-openfoam/clean.sh | 1 - partitioned-elastic-beam/clean-tutorial.sh | 1 - partitioned-elastic-beam/dirichlet-calculix/clean.sh | 1 - partitioned-elastic-beam/neumann-calculix/clean.sh | 1 - partitioned-heat-conduction-complex/clean-tutorial.sh | 1 - partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh | 1 - partitioned-heat-conduction-complex/neumann-fenics/clean.sh | 1 - partitioned-heat-conduction-direct/clean-tutorial.sh | 2 -- partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh | 1 - partitioned-heat-conduction-direct/neumann-nutils/clean.sh | 1 - partitioned-heat-conduction-overlap/clean-tutorial.sh | 1 - partitioned-heat-conduction-overlap/left-fenics/clean.sh | 1 - partitioned-heat-conduction-overlap/right-fenics/clean.sh | 1 - partitioned-heat-conduction/clean-tutorial.sh | 1 - partitioned-heat-conduction/dirichlet-fenics/clean.sh | 1 - partitioned-heat-conduction/dirichlet-nutils/clean.sh | 1 - partitioned-heat-conduction/dirichlet-openfoam/clean.sh | 1 - partitioned-heat-conduction/neumann-fenics/clean.sh | 1 - partitioned-heat-conduction/neumann-nutils/clean.sh | 1 - partitioned-heat-conduction/neumann-openfoam/clean.sh | 1 - partitioned-heat-conduction/solver-openfoam/clean.sh | 1 - partitioned-pipe-two-phase/clean-tutorial.sh | 1 - partitioned-pipe-two-phase/fluid1-openfoam/clean.sh | 1 - partitioned-pipe-two-phase/fluid2-openfoam/clean.sh | 1 - partitioned-pipe-two-phase/monolithic/clean.sh | 1 - partitioned-pipe/clean-tutorial.sh | 1 - partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh | 1 - partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh | 1 - partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh | 1 - partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh | 1 - perpendicular-flap-stress/clean-tutorial.sh | 1 - perpendicular-flap-stress/fluid-openfoam/clean.sh | 1 - perpendicular-flap-stress/solid-gismo/clean.sh | 1 - perpendicular-flap/clean-tutorial.sh | 1 - perpendicular-flap/fluid-nutils/clean.sh | 1 - perpendicular-flap/fluid-openfoam/clean.sh | 1 - perpendicular-flap/fluid-su2/clean.sh | 1 - perpendicular-flap/solid-calculix/clean.sh | 1 - perpendicular-flap/solid-dealii/clean.sh | 1 - perpendicular-flap/solid-dune/clean.sh | 1 - perpendicular-flap/solid-fenics/clean.sh | 1 - perpendicular-flap/solid-nutils/clean.sh | 1 - perpendicular-flap/solid-openfoam/clean.sh | 1 - perpendicular-flap/solid-solids4foam/clean.sh | 1 - quickstart/clean-tutorial.sh | 1 - quickstart/fluid-openfoam/clean.sh | 1 - quickstart/solid-cpp/clean.sh | 1 - resonant-circuit/clean-tutorial.sh | 1 - resonant-circuit/coil-matlab/clean.sh | 1 - tools/clean-tutorial-base.sh | 4 ++++ turek-hron-fsi3/clean-tutorial.sh | 1 - turek-hron-fsi3/fluid-nutils/clean.sh | 1 - turek-hron-fsi3/fluid-openfoam/clean.sh | 1 - turek-hron-fsi3/solid-dealii/clean.sh | 1 - turek-hron-fsi3/solid-nutils/clean.sh | 1 - two-scale-heat-conduction/clean-tutorial.sh | 1 - two-scale-heat-conduction/macro-dumux/clean.sh | 1 - two-scale-heat-conduction/macro-nutils/clean.sh | 1 - two-scale-heat-conduction/micro-dumux/clean.sh | 1 - two-scale-heat-conduction/micro-nutils/clean.sh | 1 - volume-coupled-diffusion/clean-tutorial.sh | 1 - volume-coupled-diffusion/drain-fenics/clean.sh | 1 - volume-coupled-diffusion/source-fenics/clean.sh | 1 - volume-coupled-flow/clean-tutorial.sh | 1 - volume-coupled-flow/fluid-openfoam/clean.sh | 1 - volume-coupled-flow/source-nutils/clean.sh | 1 - 145 files changed, 7 insertions(+), 146 deletions(-) diff --git a/aste-turbine/clean-tutorial.sh b/aste-turbine/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/aste-turbine/clean-tutorial.sh +++ b/aste-turbine/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/aste-turbine/clean.sh b/aste-turbine/clean.sh index bb97d16a9..7daccec54 100755 --- a/aste-turbine/clean.sh +++ b/aste-turbine/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../tools/cleaning-tools.sh clean_aste . diff --git a/breaking-dam-2d/clean-tutorial.sh b/breaking-dam-2d/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/breaking-dam-2d/clean-tutorial.sh +++ b/breaking-dam-2d/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/breaking-dam-2d/fluid-openfoam/clean.sh b/breaking-dam-2d/fluid-openfoam/clean.sh index d33ffa419..be0e8894e 100755 --- a/breaking-dam-2d/fluid-openfoam/clean.sh +++ b/breaking-dam-2d/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 74239da78..32856eac1 100755 --- a/breaking-dam-2d/solid-calculix/clean.sh +++ b/breaking-dam-2d/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/channel-transport-particles/clean-tutorial.sh b/channel-transport-particles/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/channel-transport-particles/clean-tutorial.sh +++ b/channel-transport-particles/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/channel-transport-particles/fluid-nutils/clean.sh b/channel-transport-particles/fluid-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/channel-transport-particles/fluid-nutils/clean.sh +++ b/channel-transport-particles/fluid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/channel-transport-particles/fluid-openfoam/clean.sh +++ b/channel-transport-particles/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 a1141149e..e20a8de81 100755 --- a/channel-transport-particles/particles-mercurydpm/clean.sh +++ b/channel-transport-particles/particles-mercurydpm/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 a7238c2d7..cbd679c4a 100755 --- a/channel-transport-reaction/chemical-fenics/clean.sh +++ b/channel-transport-reaction/chemical-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport-reaction/clean-tutorial.sh b/channel-transport-reaction/clean-tutorial.sh index 1c756a836..5dbb6c639 100755 --- a/channel-transport-reaction/clean-tutorial.sh +++ b/channel-transport-reaction/clean-tutorial.sh @@ -1,8 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" - # shellcheck disable=SC1091 . ../tools/cleaning-tools.sh diff --git a/channel-transport-reaction/fluid-fenics/clean.sh b/channel-transport-reaction/fluid-fenics/clean.sh index a7238c2d7..cbd679c4a 100755 --- a/channel-transport-reaction/fluid-fenics/clean.sh +++ b/channel-transport-reaction/fluid-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . \ No newline at end of file diff --git a/channel-transport/clean-tutorial.sh b/channel-transport/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/channel-transport/clean-tutorial.sh +++ b/channel-transport/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/channel-transport/fluid-nutils/clean.sh b/channel-transport/fluid-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/channel-transport/fluid-nutils/clean.sh +++ b/channel-transport/fluid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/channel-transport/fluid-openfoam/clean.sh b/channel-transport/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/channel-transport/fluid-openfoam/clean.sh +++ b/channel-transport/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/channel-transport/transport-nutils/clean.sh b/channel-transport/transport-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/channel-transport/transport-nutils/clean.sh +++ b/channel-transport/transport-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/clean-all.sh b/clean-all.sh index fee04b485..6245f84f6 100755 --- a/clean-all.sh +++ b/clean-all.sh @@ -1,7 +1,9 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" +# Always operate relative to the directory of this script +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" echo "Cleaning up all tutorials..." diff --git a/elastic-tube-1d/clean-tutorial.sh b/elastic-tube-1d/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/elastic-tube-1d/clean-tutorial.sh +++ b/elastic-tube-1d/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/elastic-tube-1d/fluid-cpp/clean.sh b/elastic-tube-1d/fluid-cpp/clean.sh index 2e1b7997a..8d5d37784 100755 --- a/elastic-tube-1d/fluid-cpp/clean.sh +++ b/elastic-tube-1d/fluid-cpp/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 2e1b7997a..8d5d37784 100755 --- a/elastic-tube-1d/fluid-fortran-module/clean.sh +++ b/elastic-tube-1d/fluid-fortran-module/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 2e1b7997a..8d5d37784 100755 --- a/elastic-tube-1d/fluid-fortran/clean.sh +++ b/elastic-tube-1d/fluid-fortran/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 2e1b7997a..8d5d37784 100755 --- a/elastic-tube-1d/fluid-python/clean.sh +++ b/elastic-tube-1d/fluid-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 2e1b7997a..8d5d37784 100755 --- a/elastic-tube-1d/fluid-rust/clean.sh +++ b/elastic-tube-1d/fluid-rust/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 fc5d3a04f..494c80414 100755 --- a/elastic-tube-1d/solid-cpp/clean.sh +++ b/elastic-tube-1d/solid-cpp/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 1c29c8588..ae7a54924 100755 --- a/elastic-tube-1d/solid-fortran-module/clean.sh +++ b/elastic-tube-1d/solid-fortran-module/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 1c29c8588..ae7a54924 100755 --- a/elastic-tube-1d/solid-fortran/clean.sh +++ b/elastic-tube-1d/solid-fortran/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 fc5d3a04f..494c80414 100755 --- a/elastic-tube-1d/solid-python/clean.sh +++ b/elastic-tube-1d/solid-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 fc5d3a04f..494c80414 100755 --- a/elastic-tube-1d/solid-rust/clean.sh +++ b/elastic-tube-1d/solid-rust/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/elastic-tube-3d/clean-tutorial.sh b/elastic-tube-3d/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/elastic-tube-3d/clean-tutorial.sh +++ b/elastic-tube-3d/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/elastic-tube-3d/fluid-openfoam/clean.sh b/elastic-tube-3d/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/elastic-tube-3d/fluid-openfoam/clean.sh +++ b/elastic-tube-3d/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 74239da78..32856eac1 100755 --- a/elastic-tube-3d/solid-calculix/clean.sh +++ b/elastic-tube-3d/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/elastic-tube-3d/solid-fenics/clean.sh +++ b/elastic-tube-3d/solid-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 0d12e914e..932e33b85 100755 --- a/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh +++ b/flow-around-controlled-moving-cylinder/controller-fmi/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 061349c6c..3cdd23300 100755 --- a/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh +++ b/flow-around-controlled-moving-cylinder/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh # since we work with a 0_orig folder here diff --git a/flow-over-heated-plate-nearest-projection/clean-tutorial.sh b/flow-over-heated-plate-nearest-projection/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/flow-over-heated-plate-nearest-projection/clean-tutorial.sh +++ b/flow-over-heated-plate-nearest-projection/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-nearest-projection/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh +++ b/flow-over-heated-plate-nearest-projection/solid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh b/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh +++ b/flow-over-heated-plate-partitioned-flow/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/fluid1-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/fluid2-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh +++ b/flow-over-heated-plate-partitioned-flow/solid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/flow-over-heated-plate-steady-state/clean-tutorial.sh b/flow-over-heated-plate-steady-state/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/flow-over-heated-plate-steady-state/clean-tutorial.sh +++ b/flow-over-heated-plate-steady-state/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-steady-state/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 df4a407ef..871a51a63 100755 --- a/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh +++ b/flow-over-heated-plate-steady-state/solid-codeaster/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_codeaster . diff --git a/flow-over-heated-plate-two-meshes/clean-tutorial.sh b/flow-over-heated-plate-two-meshes/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/flow-over-heated-plate-two-meshes/clean-tutorial.sh +++ b/flow-over-heated-plate-two-meshes/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate-two-meshes/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 8b2dc766f..b7d019c0e 100755 --- a/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh +++ b/flow-over-heated-plate-two-meshes/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/flow-over-heated-plate/clean-tutorial.sh b/flow-over-heated-plate/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/flow-over-heated-plate/clean-tutorial.sh +++ b/flow-over-heated-plate/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/flow-over-heated-plate/fluid-openfoam/clean.sh b/flow-over-heated-plate/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate/fluid-openfoam/clean.sh +++ b/flow-over-heated-plate/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 16d7b6ef0..ecab06b44 100755 --- a/flow-over-heated-plate/fluid-su2/clean.sh +++ b/flow-over-heated-plate/fluid-su2/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 c2226bff8..2d972a3d4 100755 --- a/flow-over-heated-plate/solid-dunefem/clean.sh +++ b/flow-over-heated-plate/solid-dunefem/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/flow-over-heated-plate/solid-fenics/clean.sh +++ b/flow-over-heated-plate/solid-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/flow-over-heated-plate/solid-nutils/clean.sh +++ b/flow-over-heated-plate/solid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/flow-over-heated-plate/solid-openfoam/clean.sh +++ b/flow-over-heated-plate/solid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/free-flow-over-porous-media/clean-tutorial.sh b/free-flow-over-porous-media/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/free-flow-over-porous-media/clean-tutorial.sh +++ b/free-flow-over-porous-media/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file 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 553fab5ac..3e9fd4e51 100755 --- a/free-flow-over-porous-media/free-flow-dumux/clean.sh +++ b/free-flow-over-porous-media/free-flow-dumux/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 553fab5ac..3e9fd4e51 100755 --- a/free-flow-over-porous-media/porous-media-dumux/clean.sh +++ b/free-flow-over-porous-media/porous-media-dumux/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dumux . diff --git a/heat-exchanger-simplified/clean-tutorial.sh b/heat-exchanger-simplified/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/heat-exchanger-simplified/clean-tutorial.sh +++ b/heat-exchanger-simplified/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-bottom-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/heat-exchanger-simplified/fluid-top-openfoam/clean.sh +++ b/heat-exchanger-simplified/fluid-top-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 8b2dc766f..b7d019c0e 100755 --- a/heat-exchanger-simplified/solid-calculix/clean.sh +++ b/heat-exchanger-simplified/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/heat-exchanger/clean-tutorial.sh b/heat-exchanger/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/heat-exchanger/clean-tutorial.sh +++ b/heat-exchanger/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/heat-exchanger/fluid-inner-openfoam/clean.sh b/heat-exchanger/fluid-inner-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/heat-exchanger/fluid-inner-openfoam/clean.sh +++ b/heat-exchanger/fluid-inner-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/heat-exchanger/fluid-outer-openfoam/clean.sh +++ b/heat-exchanger/fluid-outer-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/heat-exchanger/solid-calculix/clean.sh b/heat-exchanger/solid-calculix/clean.sh index 74239da78..32856eac1 100755 --- a/heat-exchanger/solid-calculix/clean.sh +++ b/heat-exchanger/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/multiple-perpendicular-flaps/clean-tutorial.sh b/multiple-perpendicular-flaps/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/multiple-perpendicular-flaps/clean-tutorial.sh +++ b/multiple-perpendicular-flaps/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/multiple-perpendicular-flaps/fluid-openfoam/clean.sh +++ b/multiple-perpendicular-flaps/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 5ff34a803..4fc364450 100755 --- a/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-downstream-dealii/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 5ff34a803..4fc364450 100755 --- a/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh +++ b/multiple-perpendicular-flaps/solid-upstream-dealii/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/oscillator-overlap/clean-tutorial.sh b/oscillator-overlap/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/oscillator-overlap/clean-tutorial.sh +++ b/oscillator-overlap/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/oscillator-overlap/mass-left-python/clean.sh b/oscillator-overlap/mass-left-python/clean.sh index cb9fefe11..d25a78518 100755 --- a/oscillator-overlap/mass-left-python/clean.sh +++ b/oscillator-overlap/mass-left-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 cb9fefe11..d25a78518 100755 --- a/oscillator-overlap/mass-right-python/clean.sh +++ b/oscillator-overlap/mass-right-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/clean-tutorial.sh b/oscillator/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/oscillator/clean-tutorial.sh +++ b/oscillator/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/oscillator/mass-left-fmi/clean.sh b/oscillator/mass-left-fmi/clean.sh index cb9fefe11..d25a78518 100755 --- a/oscillator/mass-left-fmi/clean.sh +++ b/oscillator/mass-left-fmi/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/mass-left-python/clean.sh b/oscillator/mass-left-python/clean.sh index 0d12e914e..932e33b85 100755 --- a/oscillator/mass-left-python/clean.sh +++ b/oscillator/mass-left-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fmi . diff --git a/oscillator/mass-right-fmi/clean.sh b/oscillator/mass-right-fmi/clean.sh index e6da324a7..3d9d13df6 100755 --- a/oscillator/mass-right-fmi/clean.sh +++ b/oscillator/mass-right-fmi/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/oscillator/mass-right-python/clean.sh b/oscillator/mass-right-python/clean.sh index e6da324a7..3d9d13df6 100755 --- a/oscillator/mass-right-python/clean.sh +++ b/oscillator/mass-right-python/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh rm -rfv ./output/ diff --git a/partitioned-backwards-facing-step/clean-tutorial.sh b/partitioned-backwards-facing-step/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-backwards-facing-step/clean-tutorial.sh +++ b/partitioned-backwards-facing-step/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh index b0bc83598..3b61b2dc8 100755 --- a/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid1-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 b0bc83598..3b61b2dc8 100755 --- a/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh +++ b/partitioned-backwards-facing-step/fluid2-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . \ No newline at end of file diff --git a/partitioned-elastic-beam/clean-tutorial.sh b/partitioned-elastic-beam/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-elastic-beam/clean-tutorial.sh +++ b/partitioned-elastic-beam/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ 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 74239da78..32856eac1 100755 --- a/partitioned-elastic-beam/dirichlet-calculix/clean.sh +++ b/partitioned-elastic-beam/dirichlet-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 74239da78..32856eac1 100755 --- a/partitioned-elastic-beam/neumann-calculix/clean.sh +++ b/partitioned-elastic-beam/neumann-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/partitioned-heat-conduction-complex/clean-tutorial.sh b/partitioned-heat-conduction-complex/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-heat-conduction-complex/clean-tutorial.sh +++ b/partitioned-heat-conduction-complex/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh index ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/dirichlet-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction-complex/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction-complex/neumann-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 11e0fb019..1852efa74 100755 --- a/partitioned-heat-conduction-direct/clean-tutorial.sh +++ b/partitioned-heat-conduction-direct/clean-tutorial.sh @@ -1,8 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" - # 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 9db506127..0d1c2d23d 100755 --- a/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/dirichlet-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/partitioned-heat-conduction-direct/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction-direct/neumann-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/partitioned-heat-conduction-overlap/clean-tutorial.sh b/partitioned-heat-conduction-overlap/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-heat-conduction-overlap/clean-tutorial.sh +++ b/partitioned-heat-conduction-overlap/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction-overlap/left-fenics/clean.sh b/partitioned-heat-conduction-overlap/left-fenics/clean.sh index ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction-overlap/left-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/left-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction-overlap/right-fenics/clean.sh +++ b/partitioned-heat-conduction-overlap/right-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/partitioned-heat-conduction/clean-tutorial.sh b/partitioned-heat-conduction/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-heat-conduction/clean-tutorial.sh +++ b/partitioned-heat-conduction/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-heat-conduction/dirichlet-fenics/clean.sh b/partitioned-heat-conduction/dirichlet-fenics/clean.sh index ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction/dirichlet-fenics/clean.sh +++ b/partitioned-heat-conduction/dirichlet-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/partitioned-heat-conduction/dirichlet-nutils/clean.sh +++ b/partitioned-heat-conduction/dirichlet-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/partitioned-heat-conduction/dirichlet-openfoam/clean.sh +++ b/partitioned-heat-conduction/dirichlet-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/partitioned-heat-conduction/neumann-fenics/clean.sh +++ b/partitioned-heat-conduction/neumann-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/partitioned-heat-conduction/neumann-nutils/clean.sh +++ b/partitioned-heat-conduction/neumann-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/partitioned-heat-conduction/neumann-openfoam/clean.sh +++ b/partitioned-heat-conduction/neumann-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 29e45f0b4..2ca6224c6 100755 --- a/partitioned-heat-conduction/solver-openfoam/clean.sh +++ b/partitioned-heat-conduction/solver-openfoam/clean.sh @@ -1,5 +1,4 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" wclean diff --git a/partitioned-pipe-two-phase/clean-tutorial.sh b/partitioned-pipe-two-phase/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-pipe-two-phase/clean-tutorial.sh +++ b/partitioned-pipe-two-phase/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh index eff07d41b..5120c1355 100755 --- a/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid1-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 eff07d41b..5120c1355 100755 --- a/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh +++ b/partitioned-pipe-two-phase/fluid2-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 eff07d41b..5120c1355 100755 --- a/partitioned-pipe-two-phase/monolithic/clean.sh +++ b/partitioned-pipe-two-phase/monolithic/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/partitioned-pipe/clean-tutorial.sh b/partitioned-pipe/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/partitioned-pipe/clean-tutorial.sh +++ b/partitioned-pipe/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-pimplefoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid1-openfoam-sonicliquidfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-pimplefoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh +++ b/partitioned-pipe/fluid2-openfoam-sonicliquidfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap-stress/clean-tutorial.sh b/perpendicular-flap-stress/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/perpendicular-flap-stress/clean-tutorial.sh +++ b/perpendicular-flap-stress/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/perpendicular-flap-stress/fluid-openfoam/clean.sh b/perpendicular-flap-stress/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/perpendicular-flap-stress/fluid-openfoam/clean.sh +++ b/perpendicular-flap-stress/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9f873af30..5249e1586 100755 --- a/perpendicular-flap-stress/solid-gismo/clean.sh +++ b/perpendicular-flap-stress/solid-gismo/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_gismo . diff --git a/perpendicular-flap/clean-tutorial.sh b/perpendicular-flap/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/perpendicular-flap/clean-tutorial.sh +++ b/perpendicular-flap/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/perpendicular-flap/fluid-nutils/clean.sh b/perpendicular-flap/fluid-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/perpendicular-flap/fluid-nutils/clean.sh +++ b/perpendicular-flap/fluid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/fluid-openfoam/clean.sh b/perpendicular-flap/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/perpendicular-flap/fluid-openfoam/clean.sh +++ b/perpendicular-flap/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/fluid-su2/clean.sh b/perpendicular-flap/fluid-su2/clean.sh index 16d7b6ef0..ecab06b44 100755 --- a/perpendicular-flap/fluid-su2/clean.sh +++ b/perpendicular-flap/fluid-su2/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_su2 . diff --git a/perpendicular-flap/solid-calculix/clean.sh b/perpendicular-flap/solid-calculix/clean.sh index 74239da78..32856eac1 100755 --- a/perpendicular-flap/solid-calculix/clean.sh +++ b/perpendicular-flap/solid-calculix/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_calculix . diff --git a/perpendicular-flap/solid-dealii/clean.sh b/perpendicular-flap/solid-dealii/clean.sh index 5ff34a803..4fc364450 100755 --- a/perpendicular-flap/solid-dealii/clean.sh +++ b/perpendicular-flap/solid-dealii/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dealii . diff --git a/perpendicular-flap/solid-dune/clean.sh b/perpendicular-flap/solid-dune/clean.sh index c2226bff8..2d972a3d4 100755 --- a/perpendicular-flap/solid-dune/clean.sh +++ b/perpendicular-flap/solid-dune/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_dune . diff --git a/perpendicular-flap/solid-fenics/clean.sh b/perpendicular-flap/solid-fenics/clean.sh index ea20da10f..d3f3318b4 100755 --- a/perpendicular-flap/solid-fenics/clean.sh +++ b/perpendicular-flap/solid-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/perpendicular-flap/solid-nutils/clean.sh b/perpendicular-flap/solid-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/perpendicular-flap/solid-nutils/clean.sh +++ b/perpendicular-flap/solid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/perpendicular-flap/solid-openfoam/clean.sh b/perpendicular-flap/solid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/perpendicular-flap/solid-openfoam/clean.sh +++ b/perpendicular-flap/solid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/perpendicular-flap/solid-solids4foam/clean.sh b/perpendicular-flap/solid-solids4foam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/perpendicular-flap/solid-solids4foam/clean.sh +++ b/perpendicular-flap/solid-solids4foam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/clean-tutorial.sh b/quickstart/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/quickstart/clean-tutorial.sh +++ b/quickstart/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/quickstart/fluid-openfoam/clean.sh b/quickstart/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/quickstart/fluid-openfoam/clean.sh +++ b/quickstart/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_openfoam . diff --git a/quickstart/solid-cpp/clean.sh b/quickstart/solid-cpp/clean.sh index fc5d3a04f..494c80414 100755 --- a/quickstart/solid-cpp/clean.sh +++ b/quickstart/solid-cpp/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_precice_logs . diff --git a/resonant-circuit/clean-tutorial.sh b/resonant-circuit/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/resonant-circuit/clean-tutorial.sh +++ b/resonant-circuit/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/resonant-circuit/coil-matlab/clean.sh b/resonant-circuit/coil-matlab/clean.sh index 3753683e5..5c6294dfa 100755 --- a/resonant-circuit/coil-matlab/clean.sh +++ b/resonant-circuit/coil-matlab/clean.sh @@ -1,7 +1,6 @@ #!/bin/sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_matlab . diff --git a/tools/clean-tutorial-base.sh b/tools/clean-tutorial-base.sh index 5dbb6c639..5d8a0ba74 100755 --- a/tools/clean-tutorial-base.sh +++ b/tools/clean-tutorial-base.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/turek-hron-fsi3/clean-tutorial.sh b/turek-hron-fsi3/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/turek-hron-fsi3/clean-tutorial.sh +++ b/turek-hron-fsi3/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/turek-hron-fsi3/fluid-nutils/clean.sh b/turek-hron-fsi3/fluid-nutils/clean.sh index 9db506127..0d1c2d23d 100755 --- a/turek-hron-fsi3/fluid-nutils/clean.sh +++ b/turek-hron-fsi3/fluid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 aed8e6e7a..b64fc5101 100755 --- a/turek-hron-fsi3/fluid-openfoam/clean.sh +++ b/turek-hron-fsi3/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 5ff34a803..4fc364450 100755 --- a/turek-hron-fsi3/solid-dealii/clean.sh +++ b/turek-hron-fsi3/solid-dealii/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/turek-hron-fsi3/solid-nutils/clean.sh +++ b/turek-hron-fsi3/solid-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/two-scale-heat-conduction/clean-tutorial.sh b/two-scale-heat-conduction/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/two-scale-heat-conduction/clean-tutorial.sh +++ b/two-scale-heat-conduction/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/two-scale-heat-conduction/macro-dumux/clean.sh b/two-scale-heat-conduction/macro-dumux/clean.sh index 553fab5ac..3e9fd4e51 100755 --- a/two-scale-heat-conduction/macro-dumux/clean.sh +++ b/two-scale-heat-conduction/macro-dumux/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/two-scale-heat-conduction/macro-nutils/clean.sh +++ b/two-scale-heat-conduction/macro-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 553fab5ac..3e9fd4e51 100755 --- a/two-scale-heat-conduction/micro-dumux/clean.sh +++ b/two-scale-heat-conduction/micro-dumux/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/two-scale-heat-conduction/micro-nutils/clean.sh +++ b/two-scale-heat-conduction/micro-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . diff --git a/volume-coupled-diffusion/clean-tutorial.sh b/volume-coupled-diffusion/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/volume-coupled-diffusion/clean-tutorial.sh +++ b/volume-coupled-diffusion/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/volume-coupled-diffusion/drain-fenics/clean.sh b/volume-coupled-diffusion/drain-fenics/clean.sh index ea20da10f..d3f3318b4 100755 --- a/volume-coupled-diffusion/drain-fenics/clean.sh +++ b/volume-coupled-diffusion/drain-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 ea20da10f..d3f3318b4 100755 --- a/volume-coupled-diffusion/source-fenics/clean.sh +++ b/volume-coupled-diffusion/source-fenics/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_fenics . diff --git a/volume-coupled-flow/clean-tutorial.sh b/volume-coupled-flow/clean-tutorial.sh index 267a63624..4713f5092 120000 --- a/volume-coupled-flow/clean-tutorial.sh +++ b/volume-coupled-flow/clean-tutorial.sh @@ -1,2 +1 @@ -cd "$(cd "$(dirname "$0")" && pwd)" ../tools/clean-tutorial-base.sh \ No newline at end of file diff --git a/volume-coupled-flow/fluid-openfoam/clean.sh b/volume-coupled-flow/fluid-openfoam/clean.sh index aed8e6e7a..b64fc5101 100755 --- a/volume-coupled-flow/fluid-openfoam/clean.sh +++ b/volume-coupled-flow/fluid-openfoam/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../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 9db506127..0d1c2d23d 100755 --- a/volume-coupled-flow/source-nutils/clean.sh +++ b/volume-coupled-flow/source-nutils/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh set -e -u -cd "$(cd "$(dirname "$0")" && pwd)" . ../../tools/cleaning-tools.sh clean_nutils . From 3d3a30c009e668d2b49e5615d6732192ae9128fc Mon Sep 17 00:00:00 2001 From: Pranjal Date: Tue, 24 Feb 2026 00:52:18 +0530 Subject: [PATCH 4/6] Add changelog entry for fix-clean-scripts (PR #716) Co-authored-by: Cursor --- changelog-entries/716.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog-entries/716.md diff --git a/changelog-entries/716.md b/changelog-entries/716.md new file mode 100644 index 000000000..f8ff37793 --- /dev/null +++ b/changelog-entries/716.md @@ -0,0 +1,2 @@ +- Allow running tutorial cleaning scripts (`clean-tutorial.sh`, `clean-all.sh`) from the repository root by resolving paths relative to the script location. + From f92cbee87a99315e9e612a74612622d1aba52e53 Mon Sep 17 00:00:00 2001 From: Pranjal Date: Tue, 24 Feb 2026 21:44:37 +0530 Subject: [PATCH 5/6] Make systemtest runs portable and add rerun helper Co-authored-by: Cursor --- tools/tests/README.md | 44 ++++++++++++++++++ tools/tests/components.yaml | 16 +++---- tools/tests/systemtests/Systemtest.py | 66 ++++++++++++++++++++++++--- 3 files changed, 112 insertions(+), 14 deletions(-) diff --git a/tools/tests/README.md b/tools/tests/README.md index 5675c47b6..93a5b1d90 100644 --- a/tools/tests/README.md +++ b/tools/tests/README.md @@ -107,6 +107,50 @@ The easiest way to debug a systemtest run is first to have a look at the output If this does not provide enough hints, the next step is to download the generated `system_tests_run__` artifact. Note that by default this will only be generated if the systemtests fail. Inside the archive, a test-specific subfolder like `flow-over-heated-plate_fluid-openfoam-solid-fenics_2023-11-19-211723` contains two log files: a `stderr.log` and `stdout.log`. This can be a starting point for a further investigation. +### Re-running system tests from CI artifacts + +System test artifacts are produced by the GitHub Actions workflows as archives named +`system_tests_run__`. Each archive contains a `runs/` folder with one +subdirectory per executed system test. Every such subdirectory is self-contained and can be +re-run locally using Docker. + +To re-run a failing test locally: + +1. Download `system_tests_run__.zip` from the failed GitHub Actions run. +2. Extract the archive and change into the `runs/` directory: + + ```bash + unzip system_tests_run__.zip + cd system_tests_run__/runs + ls + # pick the test you are interested in + cd + ``` + +3. In that directory you will find: + + - a copy of the tutorial, + - a `tools/` folder with the required helper scripts and Dockerfiles, + - generated Docker Compose files (`docker-compose.tutorial.yaml`, + `docker-compose.field_compare.yaml`), and + - a helper script `rerun_systemtest.sh`. + +4. Re-run the test using Docker: + + ```bash + # if the script is executable + ./rerun_systemtest.sh + + # otherwise + sh rerun_systemtest.sh + ``` + +The script rebuilds the Docker images, re-runs the tutorial containers, and (if present) +executes the field comparison step. All paths used inside the generated Docker Compose +files are relative to the system test directory, so you can move the extracted `runs/` +folder anywhere on a Linux machine with Docker installed and still re-run the tests +in the same way as on the CI runner. + ## Adding new tests ### Adding tutorials diff --git a/tools/tests/components.yaml b/tools/tests/components.yaml index 35f5d1739..2f76a5120 100644 --- a/tools/tests/components.yaml +++ b/tools/tests/components.yaml @@ -13,7 +13,7 @@ bare: # A default component used when the solver does not have any dependencies default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" python-bindings: repository: https://github.com/precice/python-bindings @@ -30,7 +30,7 @@ python-bindings: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" PYTHON_BINDINGS_REF: semnantic: Git ref of the Python bindings to use default: "master" @@ -50,7 +50,7 @@ openfoam-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" OPENFOAM_EXECUTABLE: description: exectuable of openfoam to use default: "openfoam2512" @@ -73,7 +73,7 @@ fenics-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" PYTHON_BINDINGS_REF: semnantic: Git ref of the Python bindings to use default: "master" @@ -96,7 +96,7 @@ nutils-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" PYTHON_BINDINGS_REF: semnantic: Git ref of the Python bindings to use default: "master" @@ -116,7 +116,7 @@ calculix-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" CALCULIX_VERSION: description: Version of Calculix to use default: "2.20" @@ -139,7 +139,7 @@ su2-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" SU2_VERSION: description: Version of SU2 to use default: "7.5.1" @@ -162,7 +162,7 @@ dealii-adapter: default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use - default: "master" + default: "develop" DEALII_ADAPTER_REF: description: Version of deal.ii-adapter to use default: "master" \ No newline at end of file diff --git a/tools/tests/systemtests/Systemtest.py b/tools/tests/systemtests/Systemtest.py index bfb1151cf..e0c9149db 100644 --- a/tools/tests/systemtests/Systemtest.py +++ b/tools/tests/systemtests/Systemtest.py @@ -187,20 +187,32 @@ def __get_docker_services(self) -> Dict[str, str]: except Exception as exc: raise KeyError("Please specify a PLATFORM argument") from exc + # Use an absolute path here only for validation that the requested + # dockerfile context exists on the machine running the system tests. self.dockerfile_context = PRECICE_TESTS_DIR / "dockerfiles" / Path(plaform_requested) if not self.dockerfile_context.exists(): raise ValueError( f"The path {self.dockerfile_context.resolve()} resulting from argument PLATFORM={plaform_requested} could not be found in the system") def render_service_template_per_case(case: Case, params_to_use: Dict[str, str]) -> str: + # Inside the individual system test directory we copy a full + # `tools/` tree next to the tutorial. From the point of view of + # that directory we want to refer to the dockerfiles via a + # relative path only, so that the generated docker-compose files + # remain portable when the run directory is moved (e.g. inside + # a downloaded artifact). + dockerfile_context_relative = Path("tools") / "tests" / "dockerfiles" / Path(plaform_requested) + render_dict = { - 'run_directory': self.run_directory.resolve(), + # Use a relative path from inside the system test directory + # instead of an absolute path on the CI runner. + 'run_directory': ".", 'tutorial_folder': self.tutorial_folder, 'build_arguments': params_to_use, 'params': params_to_use, 'case_folder': case.path, 'run': case.run_cmd, - 'dockerfile_context': self.dockerfile_context, + 'dockerfile_context': dockerfile_context_relative, } jinja_env = Environment(loader=FileSystemLoader(PRECICE_TESTS_DIR)) template = jinja_env.get_template(case.component.template) @@ -215,12 +227,18 @@ def render_service_template_per_case(case: Case, params_to_use: Dict[str, str]) def __get_docker_compose_file(self): rendered_services = self.__get_docker_services() render_dict = { - 'run_directory': self.run_directory.resolve(), + # See __get_docker_services: keep the docker-compose file + # portable by referring to the current directory only. + 'run_directory': ".", 'tutorial_folder': self.tutorial_folder, 'tutorial': self.tutorial.path.name, 'services': rendered_services, 'build_arguments': self.params_to_use, - 'dockerfile_context': self.dockerfile_context, + # The dockerfile_context value inside the templates is only + # used as a build context path and does not need to be + # absolute – it will be resolved relative to the system test + # directory. + 'dockerfile_context': Path("tools") / "tests" / "dockerfiles" / Path(self.params_to_use.get("PLATFORM")), 'precice_output_folder': PRECICE_REL_OUTPUT_DIR, } jinja_env = Environment(loader=FileSystemLoader(PRECICE_TESTS_DIR)) @@ -229,7 +247,10 @@ def __get_docker_compose_file(self): def __get_field_compare_compose_file(self): render_dict = { - 'run_directory': self.run_directory.resolve(), + # Fieldcompare should also use only relative paths from inside + # the system test directory so that the run directory can be + # moved and re-executed elsewhere. + 'run_directory': ".", 'tutorial_folder': self.tutorial_folder, 'precice_output_folder': PRECICE_REL_OUTPUT_DIR, 'reference_output_folder': PRECICE_REL_REFERENCE_DIR + "/" + self.reference_result.path.name.replace(".tar.gz", ""), @@ -420,9 +441,42 @@ def _build_docker(self): logging.debug(f"Building docker image for {self}") time_start = time.perf_counter() docker_compose_content = self.__get_docker_compose_file() - with open(self.system_test_dir / "docker-compose.tutorial.yaml", 'w') as file: + docker_compose_path = self.system_test_dir / "docker-compose.tutorial.yaml" + with open(docker_compose_path, 'w') as file: file.write(docker_compose_content) + # Provide a small helper script inside the system test directory so + # that a user downloading the corresponding `runs/` artifact can + # re-run the exact docker-compose setup locally without having to + # reconstruct the commands by hand. + rerun_script_path = self.system_test_dir / "rerun_systemtest.sh" + if not rerun_script_path.exists(): + rerun_script_path.write_text( + "#!/usr/bin/env sh\n" + "set -e -u\n" + "\n" + "cd \"$(dirname \"$0\")\"\n" + "\n" + "echo \"[systemtests] Building tutorial images...\"\n" + "docker compose --file docker-compose.tutorial.yaml build\n" + "\n" + "echo \"[systemtests] Running tutorial containers...\"\n" + "docker compose --file docker-compose.tutorial.yaml up --abort-on-container-exit\n" + "\n" + "if [ -f docker-compose.field_compare.yaml ]; then\n" + " echo \"[systemtests] Running fieldcompare...\"\n" + " docker compose --file docker-compose.field_compare.yaml up --abort-on-container-exit\n" + "fi\n" + ) + # Make the script executable for convenience; even if this bit + # does not survive archiving, users can still run it via + # `sh rerun_systemtest.sh`. + try: + rerun_script_path.chmod(rerun_script_path.stat().st_mode | 0o111) + except Exception: + logging.debug( + f"Could not mark {rerun_script_path} as executable; continuing anyway.") + stdout_data = [] stderr_data = [] From 4c2c02e87db3e4e5e3e4c127979005827eefc02e Mon Sep 17 00:00:00 2001 From: Pranjal Date: Wed, 25 Feb 2026 03:18:03 +0530 Subject: [PATCH 6/6] feat: make systemtest runs portable and re-runnable from CI artifacts (#387) changes --- tools/tests/systemtests/Systemtest.py | 39 ++++++++++++++++----------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/tools/tests/systemtests/Systemtest.py b/tools/tests/systemtests/Systemtest.py index e0c9149db..2c1cf3e8e 100644 --- a/tools/tests/systemtests/Systemtest.py +++ b/tools/tests/systemtests/Systemtest.py @@ -195,18 +195,23 @@ def __get_docker_services(self) -> Dict[str, str]: f"The path {self.dockerfile_context.resolve()} resulting from argument PLATFORM={plaform_requested} could not be found in the system") def render_service_template_per_case(case: Case, params_to_use: Dict[str, str]) -> str: - # Inside the individual system test directory we copy a full - # `tools/` tree next to the tutorial. From the point of view of - # that directory we want to refer to the dockerfiles via a - # relative path only, so that the generated docker-compose files - # remain portable when the run directory is moved (e.g. inside - # a downloaded artifact). - dockerfile_context_relative = Path("tools") / "tests" / "dockerfiles" / Path(plaform_requested) + # Inside the individual system test directory (`self.system_test_dir`) + # we copy a full `tools/` tree into the parent run directory + # (see __copy_tools). From the point of view of the system test + # directory we therefore need to go one level up to reach the + # shared `tools/` folder: + # /tools/tests/dockerfiles/ + # ^-------------^ parent of self.system_test_dir + dockerfile_context_relative = ( + Path("..") / "tools" / "tests" / "dockerfiles" / Path(plaform_requested) + ) render_dict = { - # Use a relative path from inside the system test directory - # instead of an absolute path on the CI runner. - 'run_directory': ".", + # Use a relative path to the *parent* run directory so that + # containers still see /runs/ like before, + # while keeping the compose file independent of the CI + # runner's absolute paths. + 'run_directory': "..", 'tutorial_folder': self.tutorial_folder, 'build_arguments': params_to_use, 'params': params_to_use, @@ -228,8 +233,8 @@ def __get_docker_compose_file(self): rendered_services = self.__get_docker_services() render_dict = { # See __get_docker_services: keep the docker-compose file - # portable by referring to the current directory only. - 'run_directory': ".", + # portable by referring to the parent run directory only. + 'run_directory': "..", 'tutorial_folder': self.tutorial_folder, 'tutorial': self.tutorial.path.name, 'services': rendered_services, @@ -238,7 +243,9 @@ def __get_docker_compose_file(self): # used as a build context path and does not need to be # absolute – it will be resolved relative to the system test # directory. - 'dockerfile_context': Path("tools") / "tests" / "dockerfiles" / Path(self.params_to_use.get("PLATFORM")), + 'dockerfile_context': ( + Path("..") / "tools" / "tests" / "dockerfiles" / Path(self.params_to_use.get("PLATFORM")) + ), 'precice_output_folder': PRECICE_REL_OUTPUT_DIR, } jinja_env = Environment(loader=FileSystemLoader(PRECICE_TESTS_DIR)) @@ -250,7 +257,7 @@ def __get_field_compare_compose_file(self): # Fieldcompare should also use only relative paths from inside # the system test directory so that the run directory can be # moved and re-executed elsewhere. - 'run_directory': ".", + 'run_directory': "..", 'tutorial_folder': self.tutorial_folder, 'precice_output_folder': PRECICE_REL_OUTPUT_DIR, 'reference_output_folder': PRECICE_REL_REFERENCE_DIR + "/" + self.reference_result.path.name.replace(".tar.gz", ""), @@ -461,11 +468,11 @@ def _build_docker(self): "docker compose --file docker-compose.tutorial.yaml build\n" "\n" "echo \"[systemtests] Running tutorial containers...\"\n" - "docker compose --file docker-compose.tutorial.yaml up --abort-on-container-exit\n" + "docker compose --file docker-compose.tutorial.yaml up\n" "\n" "if [ -f docker-compose.field_compare.yaml ]; then\n" " echo \"[systemtests] Running fieldcompare...\"\n" - " docker compose --file docker-compose.field_compare.yaml up --abort-on-container-exit\n" + " docker compose --file docker-compose.field_compare.yaml up --exit-code-from field-compare\n" "fi\n" ) # Make the script executable for convenience; even if this bit