Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog-entries/701.md
Original file line number Diff line number Diff line change
@@ -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.
21 changes: 13 additions & 8 deletions free-flow-over-porous-media/compile-dumux-cases.sh
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
20 changes: 14 additions & 6 deletions two-scale-heat-conduction/compile-dumux-cases.sh
Original file line number Diff line number Diff line change
@@ -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/