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
203acadc
Commit
203acadc
authored
8 years ago
by
Kilian Weishaupt
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggeredGrid] Add property for faceVariables and return faceVars instead of Scalar
parent
3fb8f0df
No related branches found
No related tags found
2 merge requests
!617
[WIP] Next
,
!370
Feature/staggered grid
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/staggered/globalfacevariables.hh
+18
-3
18 additions, 3 deletions
dumux/discretization/staggered/globalfacevariables.hh
dumux/implicit/staggered/properties.hh
+2
-0
2 additions, 0 deletions
dumux/implicit/staggered/properties.hh
with
20 additions
and
3 deletions
dumux/discretization/staggered/globalfacevariables.hh
+
18
−
3
View file @
203acadc
...
...
@@ -50,6 +50,21 @@ private:
};
template
<
class
TypeTag
>
class
StaggeredModel
;
template
<
class
TypeTag
>
class
StaggeredGlobalFaceVariables
;
namespace
Properties
{
SET_TYPE_PROP
(
StaggeredModel
,
FaceVars
,
Dumux
::
StaggeredFaceVariables
<
TypeTag
>
);
SET_TYPE_PROP
(
StaggeredModel
,
GlobalFaceVars
,
Dumux
::
StaggeredGlobalFaceVariables
<
TypeTag
>
);
}
template
<
class
TypeTag
>
class
StaggeredGlobalFaceVariables
{
...
...
@@ -57,7 +72,7 @@ class StaggeredGlobalFaceVariables
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
using
FaceSolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
FaceSolutionVector
);
using
FaceVariables
=
Dumux
::
StaggeredFaceVariables
<
TypeTag
>
;
using
FaceVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FaceVars
)
;
using
IndexType
=
typename
GridView
::
IndexSet
::
IndexType
;
public:
...
...
@@ -74,10 +89,10 @@ public:
}
}
const
Scalar
faceVars
(
const
IndexType
facetIdx
)
const
const
FaceVariables
&
faceVars
(
const
IndexType
facetIdx
)
const
{
return
faceVariables_
[
facetIdx
];
}
Scalar
&
faceVars
(
const
IndexType
facetIdx
)
FaceVariables
&
faceVars
(
const
IndexType
facetIdx
)
{
return
faceVariables_
[
facetIdx
];
}
private
:
const
Problem
&
problem_
()
const
...
...
This diff is collapsed.
Click to expand it.
dumux/implicit/staggered/properties.hh
+
2
−
0
View file @
203acadc
...
...
@@ -53,6 +53,8 @@ NEW_PROP_TAG(NumEqCellCenter); //!< Number of equations per cell center dof
NEW_PROP_TAG
(
NumEqFace
);
//!< Number of equations per face dof
NEW_PROP_TAG
(
DofTypeIndices
);
//!< Indices to choose between cell center and face dofs
NEW_PROP_TAG
(
FaceVars
);
//!< Variables associated to facets (equivalent to volVars)
NEW_PROP_TAG
(
GlobalFaceVars
);
//!< Global vector of facet variables
}
}
...
...
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