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
3ee3e4e7
Commit
3ee3e4e7
authored
1 year ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[slides][props] minor cleanup
parent
7636dbee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!170
[slides][props] minor cleanup
Pipeline
#30405
waiting for manual action
Stage: trigger pipelines
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/properties.md
+4
-4
4 additions, 4 deletions
slides/properties.md
with
4 additions
and
4 deletions
slides/properties.md
+
4
−
4
View file @
3ee3e4e7
...
@@ -178,11 +178,11 @@ namespace Dumux::Properties {
...
@@ -178,11 +178,11 @@ namespace Dumux::Properties {
namespace
TTag
{
struct
MyTypeTag
{};
}
namespace
TTag
{
struct
MyTypeTag
{};
}
// some property tag
// some property tag
template
<
typename
TypeTag
>
struct
Some
Tag
;
template
<
typename
TypeTag
>
struct
Prop
Tag
A
;
// property definition for MyTypeTag
// property definition for MyTypeTag
template
<
>
template
<
>
struct
Some
Tag
<
MyTypeTag
>
struct
Prop
Tag
A
<
MyTypeTag
>
{
using
type
=
/*the actual property*/
;
};
{
using
type
=
/*the actual property*/
;
};
}
// namespace Dumux::Properties
}
// namespace Dumux::Properties
```
```
...
@@ -196,8 +196,8 @@ A simplified example to illustrate the idea
...
@@ -196,8 +196,8 @@ A simplified example to illustrate the idea
template
<
class
TypeTag
>
template
<
class
TypeTag
>
class
GenericClass
class
GenericClass
{
{
using
PropA
=
typename
Properties
::
Tag
<
TypeTag
>::
type
;
using
PropA
=
typename
Properties
::
Prop
Tag
A
<
TypeTag
>::
type
;
using
PropB
=
typename
Properties
::
Other
Tag
<
TypeTag
>::
type
;
using
PropB
=
typename
Properties
::
Prop
Tag
B
<
TypeTag
>::
type
;
// ...
// ...
// A property could be, for instance, a fluid system
// A property could be, for instance, a fluid system
using
FS
=
typename
Properties
::
FluidSystem
<
TypeTag
>::
type
;
using
FS
=
typename
Properties
::
FluidSystem
<
TypeTag
>::
type
;
...
...
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