Skip to content
Snippets Groups Projects
Commit e1420887 authored by Maren Mittelbach's avatar Maren Mittelbach
Browse files

[exercises]clean up

parent eb7fb303
No related branches found
No related tags found
1 merge request!68[exercise] fix small errors due to update to dumux 3.0
......@@ -31,19 +31,19 @@ The following command will configure your new module
./dune-common/bin/dunecontrol --opts=<opts file> --only=dumux-example all
```
You need to run this command in the folder with content dumux, dumux-course, dune-common, dune-geometry, dune-grid, dune-istl, etc. `<opts file>` needs to be replaced (please replace the angle brackets also) by an options file, e.g. by `./dumux/cmake.opts`. Have a look at the comments in this file to see how you can adapt it to your needs.
You need to run this command in the folder with content dumux, dumux-course, dune-common, dune-geometry, dune-grid, dune-istl, etc. `<opts file>` needs to be replaced (please replace the angle brackets also) by an options file, e.g., by `./dumux/cmake.opts`. Have a look at the comments in this file to see how you can adapt it to your needs.
<hr><br><br>
### Task 3: Create a new test case within your new DuMuX module
<hr>
* Create a new folder (in your module folder), e.g. `appl`
* Create a new folder (in your module folder), e.g., `appl`
```bash
mkdir appl
```
* Copy some test case from the dumux module, e.g. test_1p from test/porousmediumflow/1p/implicit/compressible/stationary in your new folder (e.g appl)
* Copy some test case from the dumux module, e.g., test_1p from test/porousmediumflow/1p/implicit/compressible/stationary in your new folder (e.g., `appl`)
* Copy the problem, spatialparams, cc source file, input file
* Adjust the CMakeLists.txt file within the dumux-example (or your module name)-folder to include your new subdirectory
......
......@@ -112,7 +112,7 @@ int main(int argc, char** argv) try
// change the differentiation method to analytic by changing from DiffMethod::numeric to DiffMethod::analytic
// the assembler for stationary problems
using Assembler = FVAssembler<TypeTag, DiffMethod::analytic>;
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables);
// the linear solver
......
......@@ -51,7 +51,7 @@ int main(int argc, char** argv) try
using namespace Dumux;
// define the type tag for this problem
using TypeTag = Properties::TTag::TYPETAG;
using TypeTag = Properties::TTag::OnePIncompressible;
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
......
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