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
60f1a416
Commit
60f1a416
authored
Dec 21, 2018
by
Martin Schneider
Browse files
[macros] Use script to replace exercise macros
parent
0c8e99e3
Changes
3
Show whitespace changes
Inline
Side-by-side
exercises/exercise-basic/injection2p2cproblem.hh
View file @
60f1a416
...
...
@@ -43,7 +43,7 @@ namespace Properties {
// Create new type tags
namespace
TTag
{
struct
Injection2p2c
{
using
InheritsFrom
=
std
::
tuple
<
TwoPTwoC
>
;
};
struct
Injection2p2cCC
{
using
InheritsFrom
=
std
::
tuple
<
CCTpfaModel
,
Injection2p2c
>
;
};
struct
Injection2p2cCC
{
using
InheritsFrom
=
std
::
tuple
<
Injection2p2c
,
CCTpfaModel
>
;
};
}
// end namespace TTag
// Set the grid type
...
...
exercises/exercise-mainfile/1pspatialparams.hh
View file @
60f1a416
...
...
@@ -36,7 +36,6 @@ 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/exercise-properties/mylocalresidual.hh
View file @
60f1a416
...
...
@@ -35,24 +35,24 @@ namespace Dumux
* using the n-phase immiscible fully implicit models.
*/
template
<
class
TypeTag
>
class
MyLocalResidual
:
public
G
ET_PROP_TYPE
(
TypeTag
,
BaseLocalResidual
)
class
MyLocalResidual
:
public
G
etPropType
<
TypeTag
,
Properties
::
BaseLocalResidual
>
{
using
ParentType
=
typename
GET_PROP_TYPE
(
TypeTag
,
BaseLocalResidual
)
;
using
Scalar
=
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
)
;
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
)
;
using
NumEqVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
NumEqVector
)
;
using
VolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
VolumeVariables
)
;
using
ElementVolumeVariables
=
typename
G
ET_PROP_TYPE
(
TypeTag
,
GridVolumeVariables
)
::
LocalView
;
using
FluxVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FluxVariables
)
;
using
ElementFluxVariablesCache
=
typename
G
ET_PROP_TYPE
(
TypeTag
,
GridFluxVariablesCache
)
::
LocalView
;
using
FVElementGeometry
=
typename
G
ET_PROP_TYPE
(
TypeTag
,
FVGridGeometry
)
::
LocalView
;
using
ParentType
=
GetPropType
<
TypeTag
,
Properties
::
BaseLocalResidual
>
;
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
Problem
=
GetPropType
<
TypeTag
,
Properties
::
Problem
>
;
using
NumEqVector
=
GetPropType
<
TypeTag
,
Properties
::
NumEqVector
>
;
using
VolumeVariables
=
GetPropType
<
TypeTag
,
Properties
::
VolumeVariables
>
;
using
ElementVolumeVariables
=
typename
G
etPropType
<
TypeTag
,
Properties
::
GridVolumeVariables
>
::
LocalView
;
using
FluxVariables
=
GetPropType
<
TypeTag
,
Properties
::
FluxVariables
>
;
using
ElementFluxVariablesCache
=
typename
G
etPropType
<
TypeTag
,
Properties
::
GridFluxVariablesCache
>
::
LocalView
;
using
FVElementGeometry
=
typename
G
etPropType
<
TypeTag
,
Properties
::
FVGridGeometry
>
::
LocalView
;
using
SubControlVolume
=
typename
FVElementGeometry
::
SubControlVolume
;
using
SubControlVolumeFace
=
typename
FVElementGeometry
::
SubControlVolumeFace
;
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
)
;
using
GridView
=
GetPropType
<
TypeTag
,
Properties
::
GridView
>
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
EnergyLocalResidual
=
typename
GET_PROP_TYPE
(
TypeTag
,
EnergyLocalResidual
)
;
using
EnergyLocalResidual
=
GetPropType
<
TypeTag
,
Properties
::
EnergyLocalResidual
>
;
using
ModelTraits
=
typename
GET_PROP_TYPE
(
TypeTag
,
ModelTraits
)
;
using
ModelTraits
=
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>
;
static
constexpr
int
numPhases
=
ModelTraits
::
numPhases
();
static
constexpr
int
conti0EqIdx
=
ModelTraits
::
Indices
::
conti0EqIdx
;
//!< first index for the mass balance
...
...
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