Skip to content
Snippets Groups Projects
Commit af38a3f6 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/tutorial-for-dune24' into 'master'

Fix/tutorial for dune24

See merge request !579
parents a46f1649 97af2ea9
No related branches found
No related tags found
2 merge requests!600[WIP][components][plotproperties] Add a source file to plot properties of some components,!579Fix/tutorial for dune24
# the immiscible two-phase simulation program
dune_add_test(NAME exercise1_2p
SOURCES exercise1_2p.cc
COMMAND exercise1_2p exercise1.input)
add_dumux_test(exercise1_2p exercise1_2p exercise1_2p.cc ./exercise1_2p exercise1.input)
# the compositional two-phase simulation program
dune_add_test(NAME exercise1_2p2c
SOURCES exercise1_2p2c.cc
COMMAND exercise1_2p2c exercise1.input)
add_dumux_test(exercise1_2p2c exercise1_2p2c exercise1_2p2c.cc ./exercise1_2p2c exercise1.input)
# add tutorial to the common target
add_dependencies(build_tutorials exercise1_2p exercise1_2p2c)
......
......@@ -121,8 +121,7 @@ cp exercise1_2p.cc exercise1_2pni.cc
* Add a new executable in `CMakeLists.txt` by adding the lines
```cmake
dune_add_test(NAME exercise1_2pni
SOURCES exercise1_2pni.cc)
add_dumux_test(exercise1_2pni exercise1_2pni exercise1_2pni.cc ./exercise1_2pni exercise1.input)
```
* Test that everything compiles without error
......
# a compositional two-phase simulation program
dune_add_test(NAME exercise2
SOURCES exercise2.cc)
add_dumux_test(exercise2 exercise2 exercise2.cc exercise2)
# add tutorial to the common target
add_dependencies(build_tutorials exercise2)
......
# executables for exercise part a & b
# dune_add_test(NAME ex3_a SOURCES ex3_a.cc)
# dune_add_test(NAME ex3_b SOURCES ex3_b.cc)
# add_dumux_test(ex3_a ex3_a ex3_a.cc ex3_a)
# add_dumux_test(ex3_b ex3_b ex3_b.cc ex3_b)
# add a symlink for the input file
dune_symlink_to_source_files(FILES "ex3_a.input" "ex3_b.input")
# add symlinks for the input files
add_input_file_links()
#install sources
install(FILES
......
......@@ -135,7 +135,7 @@ cd build-cmake/tutorial/ex3
Uncomment the line for the corresponding executable in the `CMakeLists.txt` file:
```cmake
dune_add_test(NAME ex3_a SOURCES ex3_a.cc)
add_dumux_test(ex3_a ex3_a ex3_a.cc ex3_a)
```
Now you can compile and execute the program by typing
......@@ -211,7 +211,7 @@ $` \rho_{w} = \frac{ \rho_{w, pure} }{ M_{H_2O} }*(M_{H_2O}*x_{H_2O} + M_{MyComp
Implement this dependency in the _density()_ method in the fluid system. In order to compile and execute the program, uncomment the line for the corresponding executable in the `CMakeLists.txt` file
```cmake
dune_add_test(NAME ex3_b SOURCES ex3_b.cc)
add_dumux_test(ex3_b ex3_b ex3_b.cc ex3_b)
```
Then, change to the build-directory
......
......@@ -50,12 +50,10 @@ mkdir appl
```cmake
# add a new box 1p test
dune_add_test(NAME test_box1p
SOURCES test_box1p.cc)
add_dumux_test(test_box1p test_box1p test_box1p.cc test_box1p)
# link the input file to the build folder
dune_symlink_to_source_files(FILES test_box1p.input)
```
* Reconfigure your module by running in the topmost directory of your new module
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment