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
0e621861
Commit
0e621861
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
Revert "[veloutput] Remove numDofs function"
This reverts commit
17e2a139
.
parent
8f277c44
No related branches found
No related tags found
1 merge request
!1354
Revert "[veloutput] Remove numDofs function"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/io/vtkoutputmodule.hh
+6
-2
6 additions, 2 deletions
dumux/io/vtkoutputmodule.hh
with
6 additions
and
2 deletions
dumux/io/vtkoutputmodule.hh
+
6
−
2
View file @
0e621861
...
@@ -81,6 +81,7 @@ class VtkOutputModule
...
@@ -81,6 +81,7 @@ class VtkOutputModule
using
VolVarsVector
=
Dune
::
FieldVector
<
Scalar
,
dimWorld
>
;
using
VolVarsVector
=
Dune
::
FieldVector
<
Scalar
,
dimWorld
>
;
static
constexpr
bool
isBox
=
FVGridGeometry
::
discMethod
==
DiscretizationMethod
::
box
;
static
constexpr
bool
isBox
=
FVGridGeometry
::
discMethod
==
DiscretizationMethod
::
box
;
static
constexpr
int
dofCodim
=
isBox
?
dim
:
0
;
struct
VolVarScalarDataInfo
{
std
::
function
<
Scalar
(
const
VV
&
)
>
get
;
std
::
string
name
;
};
struct
VolVarScalarDataInfo
{
std
::
function
<
Scalar
(
const
VV
&
)
>
get
;
std
::
string
name
;
};
struct
VolVarVectorDataInfo
{
std
::
function
<
VolVarsVector
(
const
VV
&
)
>
get
;
std
::
string
name
;
};
struct
VolVarVectorDataInfo
{
std
::
function
<
VolVarsVector
(
const
VV
&
)
>
get
;
std
::
string
name
;
};
...
@@ -277,7 +278,7 @@ private:
...
@@ -277,7 +278,7 @@ private:
||
addProcessRank
)
||
addProcessRank
)
{
{
const
auto
numCells
=
fvGridGeometry
().
gridView
().
size
(
0
);
const
auto
numCells
=
fvGridGeometry
().
gridView
().
size
(
0
);
const
auto
numDofs
=
fvGridGeometry
().
numDofs
();
const
auto
numDofs
=
numDofs
_
();
// get fields for all volume variables
// get fields for all volume variables
if
(
!
volVarScalarDataInfo_
.
empty
())
if
(
!
volVarScalarDataInfo_
.
empty
())
...
@@ -456,7 +457,7 @@ private:
...
@@ -456,7 +457,7 @@ private:
||
addProcessRank
)
||
addProcessRank
)
{
{
const
auto
numCells
=
fvGridGeometry
().
gridView
().
size
(
0
);
const
auto
numCells
=
fvGridGeometry
().
gridView
().
size
(
0
);
const
auto
numDofs
=
fvGridGeometry
().
numDofs
();
const
auto
numDofs
=
numDofs
_
();
// get fields for all volume variables
// get fields for all volume variables
if
(
!
volVarScalarDataInfo_
.
empty
())
if
(
!
volVarScalarDataInfo_
.
empty
())
...
@@ -598,6 +599,9 @@ private:
...
@@ -598,6 +599,9 @@ private:
template
<
class
Vector
,
typename
std
::
enable_if_t
<!
IsIndexable
<
decltype
(
std
::
declval
<
Vector
>()[
0
])
>::
value
,
int
>
=
0
>
template
<
class
Vector
,
typename
std
::
enable_if_t
<!
IsIndexable
<
decltype
(
std
::
declval
<
Vector
>()[
0
])
>::
value
,
int
>
=
0
>
std
::
size_t
getNumberOfComponents_
(
const
Vector
&
v
)
{
return
1
;
}
std
::
size_t
getNumberOfComponents_
(
const
Vector
&
v
)
{
return
1
;
}
//! return the number of dofs, we only support vertex and cell data
std
::
size_t
numDofs_
()
const
{
return
dofCodim
==
dim
?
fvGridGeometry
().
vertexMapper
().
size
()
:
fvGridGeometry
().
elementMapper
().
size
();
}
const
GridVariables
&
gridVariables_
;
const
GridVariables
&
gridVariables_
;
const
SolutionVector
&
sol_
;
const
SolutionVector
&
sol_
;
...
...
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