Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux-course
Commits
97ae6f0f
Commit
97ae6f0f
authored
Dec 21, 2018
by
Martin Schneider
Browse files
[InheritsFrom] Consistent ordering
parent
8282eb99
Changes
9
Show whitespace changes
Inline
Side-by-side
exercises/exercise-basic/injection2pniproblem.hh
View file @
97ae6f0f
...
...
@@ -73,7 +73,11 @@ public:
// Set fluid configuration
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
Injection2pNITypeTag
>
{
using
type
=
FluidSystems
::
H2ON2
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
,
FluidSystems
::
H2ON2DefaultPolicy
<
/*fastButSimplifiedRelations=*/
true
>>
;
};
struct
FluidSystem
<
TypeTag
,
TTag
::
Injection2pNITypeTag
>
{
using
type
=
FluidSystems
::
H2ON2
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
,
FluidSystems
::
H2ON2DefaultPolicy
<
/*fastButSimplifiedRelations=*/
true
>>
;
};
}
// end namespace Properties
/*!
...
...
exercises/exercise-fluidsystem/2p2cproblem.hh
View file @
97ae6f0f
...
...
@@ -50,7 +50,7 @@ namespace Properties {
// Create a new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoPTwoC
>
;
};
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
TwoPTwoC
,
BoxModel
>
;
};
}
// end namespace TTag
// Set the "Problem" property
...
...
exercises/exercise-fluidsystem/2pproblem.hh
View file @
97ae6f0f
...
...
@@ -64,7 +64,7 @@ namespace Properties {
// Create a new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoP
>
;
};
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
TwoP
,
BoxModel
>
;
};
}
// end namespace TTag
// Set the "Problem" property
...
...
exercises/exercise-fluidsystem/README.md
View file @
97ae6f0f
...
...
@@ -41,7 +41,7 @@ the `TwoP` _TypeTag_ (immiscible two-phase model properties) and the `BoxModel`
```
c++
// Create new type tags
namespace
TTag
{
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoP
>
;
};
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
TwoP
,
BoxModel
>
;
};
}
// end namespace TTag
```
...
...
@@ -185,7 +185,7 @@ two-component model properties:
```
c++
// Create a new type tag for the problem
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoPTwoC
>
;
};
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
TwoPTwoC
,
BoxModel
>
;
};
}
// end namespace TTag
```
...
...
exercises/exercise-fractures/fractureproblem.hh
View file @
97ae6f0f
...
...
@@ -51,7 +51,7 @@ namespace Properties {
// Create new type tag node
namespace
TTag
{
struct
FractureProblem
{
using
InheritsFrom
=
std
::
tuple
<
CCTpfaModel
,
TwoP
>
;
};
struct
FractureProblem
{
using
InheritsFrom
=
std
::
tuple
<
TwoP
,
CCTpfaModel
>
;
};
}
// end namespace TTag
// Set the grid type
...
...
exercises/solution/exercise-basic/injection2pniproblem.hh
View file @
97ae6f0f
...
...
@@ -66,19 +66,13 @@ public:
using
type
=
InjectionSpatialParams
<
FVGridGeometry
,
Scalar
>
;
};
//
the
fluid
system for incompressible tests
//
Set
fluid
configuration
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
Injection2pNITypeTag
>
{
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
public:
using
type
=
FluidSystems
::
OnePLiquid
<
Scalar
,
Components
::
SimpleH2O
<
Scalar
>
>
;
using
type
=
FluidSystems
::
H2ON2
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
,
FluidSystems
::
H2ON2DefaultPolicy
<
/*fastButSimplifiedRelations=*/
true
>>
;
};
// Set fluid configuration
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
Injection2pNITypeTag
>
{
using
type
=
FluidSystems
::
H2ON2
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
,
FluidSystems
::
H2ON2DefaultPolicy
<
/*fastButSimplifiedRelations=*/
true
>>
;
};
}
// end namespace Properties
/*!
...
...
exercises/solution/exercise-fluidsystem/2p2cproblem.hh
View file @
97ae6f0f
...
...
@@ -50,7 +50,7 @@ namespace Properties {
// Create a new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoPTwoC
>
;
};
struct
ExerciseFluidsystemTwoPTwoC
{
using
InheritsFrom
=
std
::
tuple
<
TwoPTwoC
,
BoxModel
>
;
};
}
// end namespace TTag
// Set the "Problem" property
...
...
exercises/solution/exercise-fluidsystem/2pproblem.hh
View file @
97ae6f0f
...
...
@@ -64,7 +64,7 @@ namespace Properties {
// Create a new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
TwoP
>
;
};
struct
ExerciseFluidsystemTwoP
{
using
InheritsFrom
=
std
::
tuple
<
TwoP
,
BoxModel
>
;
};
}
// end namespace TTag
// Set the "Problem" property
...
...
exercises/solution/exercise-fractures/fractureproblem.hh
View file @
97ae6f0f
...
...
@@ -51,7 +51,7 @@ namespace Properties {
// Create new type tag node
namespace
TTag
{
struct
FractureProblem
{
using
InheritsFrom
=
std
::
tuple
<
CCTpfaModel
,
TwoP
>
;
};
struct
FractureProblem
{
using
InheritsFrom
=
std
::
tuple
<
TwoP
,
CCTpfaModel
>
;
};
}
// end namespace TTag
// Set the grid type
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment