Skip to content
Snippets Groups Projects
Commit 3ee3e4e7 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[slides][props] minor cleanup

parent 7636dbee
No related branches found
No related tags found
1 merge request!170[slides][props] minor cleanup
Pipeline #30405 waiting for manual action
...@@ -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 SomeTag; template<typename TypeTag> struct PropTagA;
// property definition for MyTypeTag // property definition for MyTypeTag
template<> template<>
struct SomeTag<MyTypeTag> struct PropTagA<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::PropTagA<TypeTag>::type;
using PropB = typename Properties::OtherTag<TypeTag>::type; using PropB = typename Properties::PropTagB<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;
......
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