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
a71cc138
Commit
a71cc138
authored
Dec 21, 2018
by
Martin Schneider
Browse files
[TTag] Missing TTag
parent
97ae6f0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh
View file @
a71cc138
...
...
@@ -71,7 +71,7 @@ struct ReplaceCompEqIdx<TypeTag, TTag::DarcyOnePNC> { static constexpr int value
//! Use a model with constant tortuosity for the effective diffusivity
template
<
class
TypeTag
>
struct
EffectiveDiffusivityModel
<
TypeTag
,
DarcyOnePNC
>
struct
EffectiveDiffusivityModel
<
TypeTag
,
TTag
::
DarcyOnePNC
>
{
using
type
=
DiffusivityConstantTortuosity
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>>
;
};
// Set the grid type
template
<
class
TypeTag
>
...
...
exercises/exercise-mainfile/1pspatialparams.hh
View file @
a71cc138
...
...
@@ -36,6 +36,7 @@ namespace Dumux {
template
<
class
FVGridGeometry
,
class
Scalar
>
class
OnePTestSpatialParams
:
public
FVSpatialParamsOneP
<
FVGridGeometry
,
Scalar
,
OnePTestSpatialParams
<
FVGridGeometry
,
Scalar
>>
{
using
GridView
=
typename
FVGridGeometry
::
GridView
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
FVElementGeometry
=
typename
FVGridGeometry
::
LocalView
;
...
...
exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc
View file @
a71cc138
...
...
@@ -54,16 +54,16 @@ namespace Dumux {
namespace
Properties
{
template
<
class
TypeTag
>
struct
CouplingManager
<
TypeTag
,
TTag
::
StokesOneP
TypeTag
>
struct
CouplingManager
<
TypeTag
,
TTag
::
StokesOneP
>
{
using
Traits
=
StaggeredMultiDomainTraits
<
TypeTag
,
TypeTag
,
Properties
::
TTag
::
DarcyOneP
TypeTag
>
;
using
Traits
=
StaggeredMultiDomainTraits
<
TypeTag
,
TypeTag
,
Properties
::
TTag
::
DarcyOneP
>
;
using
type
=
Dumux
::
StokesDarcyCouplingManager
<
Traits
>
;
};
template
<
class
TypeTag
>
struct
CouplingManager
<
TypeTag
,
TTag
::
DarcyOneP
TypeTag
>
struct
CouplingManager
<
TypeTag
,
TTag
::
DarcyOneP
>
{
using
Traits
=
StaggeredMultiDomainTraits
<
Properties
::
TTag
::
StokesOneP
TypeTag
,
Properties
::
TTag
::
StokesOneP
TypeTag
,
TypeTag
>
;
using
Traits
=
StaggeredMultiDomainTraits
<
Properties
::
TTag
::
StokesOneP
,
Properties
::
TTag
::
StokesOneP
,
TypeTag
>
;
using
type
=
Dumux
::
StokesDarcyCouplingManager
<
Traits
>
;
};
...
...
@@ -85,8 +85,8 @@ int main(int argc, char** argv) try
Parameters
::
init
(
argc
,
argv
);
// Define the sub problem type tags
using
StokesTypeTag
=
Properties
::
TTag
::
StokesOneP
TypeTag
;
using
DarcyTypeTag
=
Properties
::
TTag
::
DarcyOneP
TypeTag
;
using
StokesTypeTag
=
Properties
::
TTag
::
StokesOneP
;
using
DarcyTypeTag
=
Properties
::
TTag
::
DarcyOneP
;
#if EXNUMBER < 3
// try to create a grid (from the given grid file or the input file)
...
...
exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh
View file @
a71cc138
...
...
@@ -82,8 +82,6 @@ template<class TypeTag>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
StokesOneP
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
StokesOneP
>
{
static
constexpr
bool
value
=
true
;
};
>>>>>>>
812
d3cb
...
[
macros
]
Replace
macros
for
solutions
using
the
script
}
/*!
...
...
exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh
View file @
a71cc138
...
...
@@ -48,6 +48,7 @@ class DarcySubProblem;
namespace
Properties
{
// Create new type tags
namespace
TTag
{
struct
DarcyOneP
{
using
InheritsFrom
=
std
::
tuple
<
OneP
,
CCTpfaModel
>
;
};
}
// end namespace TTag
...
...
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