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
86677eca
Commit
86677eca
authored
6 years ago
by
Ned Coltman
Browse files
Options
Downloads
Patches
Plain Diff
[test][discretization] update the staggered disc test
parent
e1ebaf91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1518
Feature/improve ff higherorder
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/discretization/staggered/test_staggered_free_flow_geometry.cc
+16
-13
16 additions, 13 deletions
...retization/staggered/test_staggered_free_flow_geometry.cc
with
16 additions
and
13 deletions
test/discretization/staggered/test_staggered_free_flow_geometry.cc
+
16
−
13
View file @
86677eca
...
...
@@ -53,13 +53,14 @@ public:
}
// end namespace Detail
//! the fv grid geometry traits for this test
template
<
class
GridView
>
template
<
class
GridView
,
int
upwOrder
>
struct
TestFVGGTraits
:
public
DefaultMapperTraits
<
GridView
>
{
using
SubControlVolume
=
CCSubControlVolume
<
GridView
>
;
using
SubControlVolumeFace
=
FreeFlowStaggeredSubControlVolumeFace
<
GridView
>
;
using
SubControlVolumeFace
=
FreeFlowStaggeredSubControlVolumeFace
<
GridView
,
upwOrder
>
;
using
IntersectionMapper
=
ConformingGridIntersectionMapper
<
GridView
>
;
using
GeometryHelper
=
FreeFlowStaggeredGeometryHelper
<
GridView
>
;
using
GeometryHelper
=
FreeFlowStaggeredGeometryHelper
<
GridView
,
upwOrder
>
;
static
constexpr
int
upwindSchemeOrder
=
upwOrder
;
struct
DofTypeIndices
{
...
...
@@ -70,8 +71,8 @@ struct TestFVGGTraits : public DefaultMapperTraits<GridView>
template
<
class
FVGridGeometry
>
using
ConnectivityMap
=
StaggeredFreeFlowConnectivityMap
<
FVGridGeometry
>
;
template
<
class
FVGridGeometry
,
bool
enableCache
>
using
LocalView
=
StaggeredFVElementGeometry
<
FVGridGeometry
,
enableCache
>
;
template
<
class
FVGridGeometry
,
bool
cachingEnabled
>
using
LocalView
=
StaggeredFVElementGeometry
<
FVGridGeometry
,
cachingEnabled
>
;
};
}
// end namespace Dumux
...
...
@@ -92,8 +93,10 @@ int main (int argc, char *argv[]) try
constexpr
int
dim
=
Grid
::
dimension
;
static
constexpr
int
upwindSchemeOrder
=
2
;
using
FVGridGeometry
=
StaggeredFVGridGeometry
<
typename
Grid
::
LeafGridView
,
/*enable caching=*/
true
,
TestFVGGTraits
<
typename
Grid
::
LeafGridView
>
>
;
TestFVGGTraits
<
typename
Grid
::
LeafGridView
,
upwindSchemeOrder
>
>
;
using
FVElementGeometry
=
typename
FVGridGeometry
::
LocalView
;
using
SubControlVolume
=
typename
FVElementGeometry
::
SubControlVolume
;
using
SubControlVolumeFace
=
typename
FVElementGeometry
::
SubControlVolumeFace
;
...
...
@@ -159,11 +162,11 @@ int main (int argc, char *argv[]) try
std
::
cout
<<
std
::
fixed
<<
std
::
left
<<
std
::
setprecision
(
2
);
std
::
cout
<<
" On Axis Dof Index:
\n
"
;
if
(
fvGridGeometry
.
o
rder
()
>
1
)
if
(
fvGridGeometry
.
upwindStencilO
rder
()
>
1
)
{
std
::
cout
<<
" | Forward dofIdx : "
<<
std
::
setw
(
3
)
<<
scvf
.
axisData
().
inAxisForwardDofs
[
0
]
<<
"
\n
"
;}
std
::
cout
<<
" | Self dofIdx : "
<<
std
::
setw
(
3
)
<<
scvf
.
dofIndex
()
<<
"
\n
"
;
std
::
cout
<<
" | Opposite dofIdx : "
<<
std
::
setw
(
3
)
<<
scvf
.
dofIndexOpposingFace
()
<<
"
\n
"
;
if
(
fvGridGeometry
.
o
rder
()
>
1
)
if
(
fvGridGeometry
.
upwindStencilO
rder
()
>
1
)
{
std
::
cout
<<
" | Backward dofIdx : "
<<
std
::
setw
(
3
)
<<
scvf
.
axisData
().
inAxisBackwardDofs
[
0
]
<<
"
\n
"
;}
std
::
cout
<<
" Normal Dof Index:
\n
"
;
...
...
@@ -176,22 +179,22 @@ int main (int argc, char *argv[]) try
std
::
cout
<<
" Parallel Dof Index:
\n
"
;
for
(
int
i
=
0
;
i
<
scvf
.
pairData
().
size
();
i
++
)
{
for
(
int
j
=
0
;
j
<
fvGridGeometry
.
o
rder
();
j
++
)
for
(
int
j
=
0
;
j
<
fvGridGeometry
.
upwindStencilO
rder
();
j
++
)
{
std
::
cout
<<
" | Parallel Dof "
<<
j
<<
" on axis "
<<
i
<<
": "
<<
std
::
setw
(
3
)
<<
scvf
.
pairData
(
i
).
parallelDofs
[
j
]
<<
"
\n
"
;
}
}
std
::
cout
<<
" Distances:
\n
"
;
if
(
fvGridGeometry
.
o
rder
()
>
1
)
if
(
fvGridGeometry
.
upwindStencilO
rder
()
>
1
)
{
std
::
cout
<<
" | Opposite To Backwards Face Dist : "
<<
std
::
setw
(
3
)
<<
scvf
.
axisData
().
inAxisBackwardDistances
[
0
]
<<
"
\n
"
;}
std
::
cout
<<
" | self To Opposite Dist : "
<<
std
::
setw
(
3
)
<<
scvf
.
selfToOppositeDistance
()
<<
"
\n
"
;
if
(
fvGridGeometry
.
o
rder
()
>
1
)
{
std
::
cout
<<
" |
Opposite To Back
wards Face Dist : "
<<
std
::
setw
(
3
)
<<
scvf
.
axisData
().
inAxis
Back
wardDistances
[
0
]
<<
"
\n
"
;}
if
(
fvGridGeometry
.
upwindStencilO
rder
()
>
1
)
{
std
::
cout
<<
" |
self To For
wards Face Dist : "
<<
std
::
setw
(
3
)
<<
scvf
.
axisData
().
inAxis
For
wardDistances
[
0
]
<<
"
\n
"
;}
for
(
int
i
=
0
;
i
<
scvf
.
pairData
().
size
();
i
++
)
{
for
(
int
j
=
0
;
j
<
fvGridGeometry
.
o
rder
();
j
++
)
for
(
int
j
=
0
;
j
<
fvGridGeometry
.
upwindStencilO
rder
();
j
++
)
{
std
::
cout
<<
" | Parallel Distance "
<<
j
<<
" on axis "
<<
i
<<
": "
<<
std
::
setw
(
3
)
<<
scvf
.
pairData
(
i
).
parallelDistances
[
j
]
<<
"
\n
"
;
}
...
...
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