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
176bc81e
Commit
176bc81e
authored
4 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[vtkfunction] Mark interfaces as final to allow overload check and not allow inheritance
parent
b9607fdd
No related branches found
No related tags found
1 merge request
!1971
Cleanup/vtkfunction
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/io/vtkfunction.hh
+12
-12
12 additions, 12 deletions
dumux/io/vtkfunction.hh
with
12 additions
and
12 deletions
dumux/io/vtkfunction.hh
+
12
−
12
View file @
176bc81e
...
@@ -72,18 +72,18 @@ struct VectorP0VTKFunction : Dune::VTKFunction<GridView>
...
@@ -72,18 +72,18 @@ struct VectorP0VTKFunction : Dune::VTKFunction<GridView>
public
:
public
:
//! return number of components
//! return number of components
virtual
int
ncomps
()
const
{
return
nComps_
;
}
int
ncomps
()
const
final
{
return
nComps_
;
}
//! get name
//! get name
virtual
std
::
string
name
()
const
{
return
name_
;
}
std
::
string
name
()
const
final
{
return
name_
;
}
//! evaluate
//! evaluate
virtual
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
)
const
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
)
const
final
{
return
Impl
::
accessEntry
(
field_
,
mycomp
,
mapper_
.
index
(
e
));
}
{
return
Impl
::
accessEntry
(
field_
,
mycomp
,
mapper_
.
index
(
e
));
}
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
//! get output precision for the field
//! get output precision for the field
Dumux
::
Vtk
::
Precision
precision
()
const
override
Dumux
::
Vtk
::
Precision
precision
()
const
final
{
return
precision_
;
}
{
return
precision_
;
}
#endif
#endif
...
@@ -127,13 +127,13 @@ struct VectorP1VTKFunction : Dune::VTKFunction<GridView>
...
@@ -127,13 +127,13 @@ struct VectorP1VTKFunction : Dune::VTKFunction<GridView>
public
:
public
:
//! return number of components
//! return number of components
virtual
int
ncomps
()
const
{
return
nComps_
;
}
int
ncomps
()
const
final
{
return
nComps_
;
}
//! get name
//! get name
virtual
std
::
string
name
()
const
{
return
name_
;
}
std
::
string
name
()
const
final
{
return
name_
;
}
//! evaluate
//! evaluate
virtual
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
xi
)
const
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
xi
)
const
final
{
{
const
unsigned
int
dim
=
Element
::
mydimension
;
const
unsigned
int
dim
=
Element
::
mydimension
;
const
unsigned
int
nVertices
=
e
.
subEntities
(
dim
);
const
unsigned
int
nVertices
=
e
.
subEntities
(
dim
);
...
@@ -149,7 +149,7 @@ public:
...
@@ -149,7 +149,7 @@ public:
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
//! get output precision for the field
//! get output precision for the field
Dumux
::
Vtk
::
Precision
precision
()
const
override
Dumux
::
Vtk
::
Precision
precision
()
const
final
{
return
precision_
;
}
{
return
precision_
;
}
#endif
#endif
...
@@ -197,13 +197,13 @@ struct VectorP1NonConformingVTKFunction : Dune::VTKFunction<GridView>
...
@@ -197,13 +197,13 @@ struct VectorP1NonConformingVTKFunction : Dune::VTKFunction<GridView>
public
:
public
:
//! return number of components
//! return number of components
virtual
int
ncomps
()
const
{
return
nComps_
;
}
int
ncomps
()
const
final
{
return
nComps_
;
}
//! get name
//! get name
virtual
std
::
string
name
()
const
{
return
name_
;
}
std
::
string
name
()
const
final
{
return
name_
;
}
//! evaluate
//! evaluate
virtual
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
xi
)
const
double
evaluate
(
int
mycomp
,
const
Element
&
e
,
const
Dune
::
FieldVector
<
ctype
,
dim
>&
xi
)
const
final
{
{
const
unsigned
int
dim
=
Element
::
mydimension
;
const
unsigned
int
dim
=
Element
::
mydimension
;
const
unsigned
int
nVertices
=
e
.
subEntities
(
dim
);
const
unsigned
int
nVertices
=
e
.
subEntities
(
dim
);
...
@@ -219,7 +219,7 @@ public:
...
@@ -219,7 +219,7 @@ public:
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
#if DUNE_VERSION_GTE(DUNE_GRID, 2, 7)
//! get output precision for the field
//! get output precision for the field
Dumux
::
Vtk
::
Precision
precision
()
const
override
Dumux
::
Vtk
::
Precision
precision
()
const
final
{
return
precision_
;
}
{
return
precision_
;
}
#endif
#endif
...
...
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