Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Commits
951fd0a1
Commit
951fd0a1
authored
7 years ago
by
Beatrix Becker
Browse files
Options
Downloads
Patches
Plain Diff
[nonisothermal] remove TypeTag from indices
parent
2a26c4b4
No related branches found
No related tags found
1 merge request
!838
Feature/less typetag in indices
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/porousmediumflow/nonisothermal/indices.hh
+3
-3
3 additions, 3 deletions
dumux/porousmediumflow/nonisothermal/indices.hh
dumux/porousmediumflow/nonisothermal/model.hh
+8
-1
8 additions, 1 deletion
dumux/porousmediumflow/nonisothermal/model.hh
with
11 additions
and
4 deletions
dumux/porousmediumflow/nonisothermal/indices.hh
+
3
−
3
View file @
951fd0a1
...
@@ -37,11 +37,11 @@ namespace Dumux
...
@@ -37,11 +37,11 @@ namespace Dumux
* \tparam formulation The formulation, either pwsn or pnsw.
* \tparam formulation The formulation, either pwsn or pnsw.
* \tparam PVOffset The first index in a primary variable vector.
* \tparam PVOffset The first index in a primary variable vector.
*/
*/
template
<
class
TypeTag
,
int
PVOffset
=
0
>
template
<
class
IsothermalIndices
,
int
numEquation
,
int
PVOffset
=
0
>
class
EnergyIndices
:
public
GET_PROP_TYPE
(
TypeTag
,
IsothermalIndices
)
class
EnergyIndices
:
public
IsothermalIndices
{
{
public:
public:
static
const
int
numEq
=
GET_PROP_VALUE
(
TypeTag
,
NumEq
)
;
static
const
int
numEq
=
numEquation
;
static
const
int
temperatureIdx
=
PVOffset
+
numEq
-
1
;
//!< The index for temperature in primary variable vectors.
static
const
int
temperatureIdx
=
PVOffset
+
numEq
-
1
;
//!< The index for temperature in primary variable vectors.
static
const
int
energyEqIdx
=
PVOffset
+
numEq
-
1
;
//!< The index for energy in equation vectors.
static
const
int
energyEqIdx
=
PVOffset
+
numEq
-
1
;
//!< The index for energy in equation vectors.
...
...
This diff is collapsed.
Click to expand it.
dumux/porousmediumflow/nonisothermal/model.hh
+
8
−
1
View file @
951fd0a1
...
@@ -68,7 +68,14 @@ SET_BOOL_PROP(NonIsothermal, EnableEnergyBalance, true);
...
@@ -68,7 +68,14 @@ SET_BOOL_PROP(NonIsothermal, EnableEnergyBalance, true);
SET_INT_PROP
(
NonIsothermal
,
NumEq
,
GET_PROP_VALUE
(
TypeTag
,
IsothermalNumEq
)
+
1
);
SET_INT_PROP
(
NonIsothermal
,
NumEq
,
GET_PROP_VALUE
(
TypeTag
,
IsothermalNumEq
)
+
1
);
//! indices for non-isothermal models
//! indices for non-isothermal models
SET_TYPE_PROP
(
NonIsothermal
,
Indices
,
EnergyIndices
<
TypeTag
,
0
>
);
SET_PROP
(
NonIsothermal
,
Indices
)
{
private:
using
IsothermalIndices
=
typename
GET_PROP_TYPE
(
TypeTag
,
IsothermalIndices
);
static
constexpr
int
numEq
=
GET_PROP_VALUE
(
TypeTag
,
NumEq
);
public:
using
type
=
EnergyIndices
<
IsothermalIndices
,
numEq
,
0
>
;
};
//! indices for non-isothermal models
//! indices for non-isothermal models
SET_TYPE_PROP
(
NonIsothermal
,
VtkOutputFields
,
EnergyVtkOutputFields
<
TypeTag
>
);
SET_TYPE_PROP
(
NonIsothermal
,
VtkOutputFields
,
EnergyVtkOutputFields
<
TypeTag
>
);
...
...
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