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
Commits
ec015117
Commit
ec015117
authored
Jul 13, 2021
by
Martin Schneider
Browse files
[metadata] Add further GridView information
parent
7a237a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/metadata.hh
View file @
ec015117
...
...
@@ -143,9 +143,13 @@ template<class Collector, class GridGeometry>
auto
collectMetaData
(
Collector
&
collector
,
const
GridGeometry
&
gg
,
bool
hideTemplates
=
true
)
->
typename
std
::
enable_if_t
<
decltype
(
isValid
(
Detail
::
isGridGeometry
())(
gg
))
::
value
,
void
>
{
using
GridView
=
typename
GridGeometry
::
GridView
;
auto
&
obj
=
collector
[
"GridGeometry"
];
obj
[
"Type"
]
=
Metadata
::
className
(
gg
,
hideTemplates
);
obj
[
"GridView"
][
"Type"
]
=
Metadata
::
className
(
gg
.
gridView
(),
hideTemplates
);
obj
[
"GridView"
][
"dimension"
]
=
GridView
::
dimension
;
obj
[
"GridView"
][
"dimensionWorld"
]
=
GridView
::
dimensionworld
;
obj
[
"GridView"
][
"Grid"
][
"Type"
]
=
Metadata
::
className
(
gg
.
gridView
().
grid
(),
hideTemplates
);
obj
[
"IsPeriodic"
]
=
gg
.
isPeriodic
();
obj
[
"DiscretisationMethod"
]
=
toString
(
GridGeometry
::
discMethod
);
obj
[
"MaxElementStencilSize"
]
=
GridGeometry
::
maxElementStencilSize
;
...
...
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