Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux-course
Commits
e84d1500
Commit
e84d1500
authored
8 months ago
by
Martin Schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'cleanup/model-doc' into 'master'
[model] Update code in doc See merge request
!278
parents
370d6be5
fe4e9239
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!278
[model] Update code in doc
Pipeline
#47227
passed
8 months ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.patches/exercise-model/exercise-model.patch
+9
-9
9 additions, 9 deletions
.patches/exercise-model/exercise-model.patch
exercises/exercise-model/README.md
+3
-3
3 additions, 3 deletions
exercises/exercise-model/README.md
with
12 additions
and
12 deletions
.patches/exercise-model/exercise-model.patch
+
9
−
9
View file @
e84d1500
diff -ruN exercises/exercise-model/CMakeLists.txt exercises/solution/exercise-model/CMakeLists.txt
--- exercises/exercise-model/CMakeLists.txt 2024-07-17 1
1
:2
7:28.798347462
+0200
+++ exercises/solution/exercise-model/CMakeLists.txt 2024-07-17 1
1:27:28.802347549
+0200
--- exercises/exercise-model/CMakeLists.txt 2024-07-17 1
4
:2
1:07.400210015
+0200
+++ exercises/solution/exercise-model/CMakeLists.txt 2024-07-17 1
4:21:07.404210034
+0200
@@ -3,5 +3,5 @@
dune_symlink_to_source_files(FILES images params.input)
...
...
@@ -9,8 +9,8 @@ diff -ruN exercises/exercise-model/CMakeLists.txt exercises/solution/exercise-mo
+dumux_add_test(NAME exercise_nonlineardiffusion_sol
SOURCES main.cc)
diff -ruN exercises/exercise-model/main.cc exercises/solution/exercise-model/main.cc
--- exercises/exercise-model/main.cc 2024-07-17 1
1
:2
7:28.878349199
+0200
+++ exercises/solution/exercise-model/main.cc 2024-07-17 1
1
:2
7:28.886349373
+0200
--- exercises/exercise-model/main.cc 2024-07-17 1
4
:2
1:07.400210015
+0200
+++ exercises/solution/exercise-model/main.cc 2024-07-17 1
4
:2
1:07.404210034
+0200
@@ -29,6 +29,8 @@
#include <dumux/nonlinear/newtonsolver.hh>
#include <dumux/assembly/fvassembler.hh>
...
...
@@ -148,7 +148,7 @@ diff -ruN exercises/exercise-model/main.cc exercises/solution/exercise-model/mai
}// end main
diff -ruN exercises/exercise-model/model.hh exercises/solution/exercise-model/model.hh
--- exercises/exercise-model/model.hh 1970-01-01 01:00:00.000000000 +0100
+++ exercises/solution/exercise-model/model.hh 2024-07-1
7
1
1:27:28.886349373
+0200
+++ exercises/solution/exercise-model/model.hh 2024-07-1
8
1
0:07:49.719993891
+0200
@@ -0,0 +1,210 @@
+// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+// vi: set et ts=4 sw=4 sts=4:
...
...
@@ -361,7 +361,7 @@ diff -ruN exercises/exercise-model/model.hh exercises/solution/exercise-model/mo
+
+#endif
diff -ruN exercises/exercise-model/README.md exercises/solution/exercise-model/README.md
--- exercises/exercise-model/README.md 2024-07-1
6
1
6:28:05.559708538
+0200
--- exercises/exercise-model/README.md 2024-07-1
8
1
0:13:40.660815419
+0200
+++ exercises/solution/exercise-model/README.md 1970-01-01 01:00:00.000000000 +0100
@@ -1,195 +0,0 @@
-# Exercise Model (DuMuX course)
...
...
@@ -416,11 +416,11 @@ diff -ruN exercises/exercise-model/README.md exercises/solution/exercise-model/R
-and use this new type tag for specializing properties, i.e. within the properties namespace
-
-```c++
-namespace Dumux::Properties {
-namespace Dumux::Properties
::TTag
{
-
-// Defined properties, replace
TTag::
DiffusionModel by
TTag::
NonlinearDiffusionModel
-// Defined properties, replace DiffusionModel by NonlinearDiffusionModel
-
-} // end namespace Dumux::Properties
-} // end namespace Dumux::Properties
::TTag
-```
-
-## Task 3: Set up the test case
...
...
This diff is collapsed.
Click to expand it.
exercises/exercise-model/README.md
+
3
−
3
View file @
e84d1500
...
...
@@ -50,11 +50,11 @@ Each model also needs to define a model type tag for setting model-specific prop
and use this new type tag for specializing properties, i.e. within the properties namespace
```
c++
namespace
Dumux
::
Properties
{
namespace
Dumux
::
Properties
::
TTag
{
// Defined properties, replace
TTag::
DiffusionModel by
TTag::
NonlinearDiffusionModel
// Defined properties, replace DiffusionModel by NonlinearDiffusionModel
}
// end namespace Dumux::Properties
}
// end namespace Dumux::Properties
::TTag
```
## Task 3: Set up the test case
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment