diff --git a/changelog-entries/701.md b/changelog-entries/701.md new file mode 100644 index 000000000..4447a100f --- /dev/null +++ b/changelog-entries/701.md @@ -0,0 +1 @@ +- Changed the compilation script for the tutorials with DuMux solvers to allow the cases to be compiled from scratch into a DUNE module. \ No newline at end of file diff --git a/free-flow-over-porous-media/compile-dumux-cases.sh b/free-flow-over-porous-media/compile-dumux-cases.sh index d5b0c0908..c964ef4e4 100755 --- a/free-flow-over-porous-media/compile-dumux-cases.sh +++ b/free-flow-over-porous-media/compile-dumux-cases.sh @@ -1,15 +1,20 @@ #!/usr/bin/env sh set -e -u -( -cd free-flow-dumux/build-cmake/solver-dumux -make free_flow_dumux -) +# To compile free-flow-dumux and porous-media-dumux from scratch or recompile them after changes +./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts --only=free_flow_dumux all +./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts --only=porous_media_dumux all -( -cd porous-media-dumux/build-cmake/solver-dumux -make porous_media_dumux -) +# Alternatively, you can manually recompile free-flow-dumux and porous-media-dumux when the `build-cmake` folder is present by uncommenting the following lines: +# ( +# cd free-flow-dumux/build-cmake/solver-dumux +# make free_flow_dumux +# ) + +# ( +# cd porous-media-dumux/build-cmake/solver-dumux +# make porous_media_dumux +# ) # Move free-flow-dumux and porous-media-dumux executables to the participant folder level mv free-flow-dumux/build-cmake/solver-dumux/free_flow_dumux free-flow-dumux/ diff --git a/two-scale-heat-conduction/compile-dumux-cases.sh b/two-scale-heat-conduction/compile-dumux-cases.sh index d9f1bd20a..390b1c437 100755 --- a/two-scale-heat-conduction/compile-dumux-cases.sh +++ b/two-scale-heat-conduction/compile-dumux-cases.sh @@ -1,12 +1,20 @@ #!/usr/bin/env sh set -e -u -cd macro-dumux/build-cmake/appl -make macro_dumux -cd ../../../micro-dumux/build-cmake/appl -make -cd ../../../ +# To compile macro-dumux and micro-dumux from scratch or recompile them after changes +./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts --only=macro_dumux all +./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts --only=micro_sim all + +# Alternatively, you can manually recompile macro-dumux and micro-dumux when the `build-cmake` folder is present by uncommenting the following lines: +# ( +# cd macro-dumux/build-cmake/appl +# make macro_dumux +# ) +# ( +# cd micro-dumux/build-cmake/appl +# make micro_sim +# ) # Move macro-dumux and micro-dumux executables to the participant folder level mv macro-dumux/build-cmake/appl/macro_dumux macro-dumux/ -mv micro-dumux/build-cmake/appl/micro_sim.cpython-310-x86_64-linux-gnu.so micro-dumux/ +mv micro-dumux/build-cmake/appl/micro_sim.cpython-*.so micro-dumux/