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
04ac52fb
Commit
04ac52fb
authored
3 years ago
by
--global
Committed by
Timo Koch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[disc][porousmediumflow][co2] Use discretization tag instead of enum as template argument.
parent
ed5e9bcc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2844
Feature/discretization tags introduction
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/box/scvftoscvboundarytypes.hh
+3
-3
3 additions, 3 deletions
dumux/discretization/box/scvftoscvboundarytypes.hh
test/porousmediumflow/co2/problem.hh
+3
-2
3 additions, 2 deletions
test/porousmediumflow/co2/problem.hh
with
6 additions
and
5 deletions
dumux/discretization/box/scvftoscvboundarytypes.hh
+
3
−
3
View file @
04ac52fb
...
...
@@ -34,7 +34,7 @@ namespace Dumux {
* \ingroup BoxDiscretization
* \brief Convert intersection boundary types to vertex boundary types
*/
template
<
class
BoundaryTypes
,
DiscretizationMethod
discMethod
>
template
<
class
BoundaryTypes
,
class
DiscretizationMethod
>
class
ScvfToScvBoundaryTypes
{
public:
...
...
@@ -44,7 +44,7 @@ public:
void
computeBoundaryTypes
(
const
Problem
&
problem
)
{
// only do something for box
if
(
d
iscMethod
==
DiscretizationMethods
::
box
)
if
(
D
isc
retization
Method
{}
==
DiscretizationMethods
::
box
)
{
const
auto
&
gridGeometry
=
problem
.
gridGeometry
();
scvBoundaryTypes
.
resize
(
gridGeometry
.
vertexMapper
().
size
());
...
...
@@ -81,7 +81,7 @@ public:
template
<
class
SubControlVolume
>
const
BoundaryTypes
&
boundaryTypes
(
const
SubControlVolume
&
scv
)
const
{
if
(
d
iscMethod
==
DiscretizationMethods
::
box
)
if
(
D
isc
retization
Method
{}
==
DiscretizationMethods
::
box
)
return
scvBoundaryTypes
[
scv
.
dofIndex
()];
else
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Only use this for the box discretization!"
);
...
...
This diff is collapsed.
Click to expand it.
test/porousmediumflow/co2/problem.hh
+
3
−
2
View file @
04ac52fb
...
...
@@ -128,7 +128,8 @@ class HeterogeneousProblem : public PorousMediumFlowProblem<TypeTag>
static
constexpr
bool
useMoles
=
ModelTraits
::
useMoles
();
// the discretization method we are using
static
constexpr
auto
discMethod
=
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
discMethod
;
using
DiscretizationMethod
=
DiscretizationMethods
::
Box
;
static
constexpr
DiscretizationMethod
discMethod
{};
static
constexpr
bool
isBox
=
GridGeometry
::
discMethod
==
DiscretizationMethods
::
box
;
// world dimension to access gravity vector
...
...
@@ -445,7 +446,7 @@ private:
// vtk output
std
::
vector
<
Scalar
>
vtkKxx_
,
vtkPorosity_
,
vtkBoxVolume_
,
vtkTemperature_
;
ScvfToScvBoundaryTypes
<
BoundaryTypes
,
d
iscMethod
>
scvfToScvBoundaryTypes_
;
ScvfToScvBoundaryTypes
<
BoundaryTypes
,
D
isc
retization
Method
>
scvfToScvBoundaryTypes_
;
};
}
// end namespace Dumux
...
...
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