Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
121b8682
Commit
121b8682
authored
Dec 16, 2020
by
Praetorius, Simon
Browse files
change do FLOAT64 as default data-type int Vtk::Function
parent
7d6112c5
Changes
1
Show whitespace changes
Inline
Side-by-side
dune/vtk/function.hh
View file @
121b8682
...
...
@@ -82,7 +82,7 @@ namespace Dune
{
setComponents
(
std
::
move
(
components
));
setRangeType
(
getArg
<
Vtk
::
RangeTypes
>
(
args
...,
Vtk
::
RangeTypes
::
UNSPECIFIED
),
components_
.
size
());
setDataType
(
getArg
<
Vtk
::
DataTypes
>
(
args
...,
Vtk
::
DataTypes
::
FLOAT
32
));
setDataType
(
getArg
<
Vtk
::
DataTypes
>
(
args
...,
Vtk
::
DataTypes
::
FLOAT
64
));
}
/// (2) Construct from a LocalFunction directly
...
...
@@ -103,7 +103,7 @@ namespace Dune
:
Function
(
std
::
forward
<
LF
>
(
localFct
),
std
::
move
(
name
),
allComponents
(
getArg
<
int
,
unsigned
int
,
long
,
unsigned
long
>
(
args
...,
sizeOf
<
R
>
())),
getArg
<
Vtk
::
RangeTypes
>
(
args
...,
Vtk
::
RangeTypes
::
UNSPECIFIED
),
getArg
<
Vtk
::
DataTypes
>
(
args
...,
Vtk
::
DataTypes
::
FLOAT
32
))
getArg
<
Vtk
::
DataTypes
>
(
args
...,
Vtk
::
DataTypes
::
FLOAT
64
))
{}
/// (3) Construct from a Vtk::Function
...
...
@@ -148,7 +148,7 @@ namespace Dune
{
setComponents
(
fct
->
ncomps
());
#if DUNE_VERSION_LT(DUNE_GRID,2,7)
setDataType
(
Vtk
::
DataTypes
::
FLOAT
32
);
setDataType
(
Vtk
::
DataTypes
::
FLOAT
64
);
#else
setDataType
(
dataTypeOf
(
fct
->
precision
()));
#endif
...
...
@@ -236,7 +236,7 @@ namespace Dune
Vtk
::
LocalFunction
<
GridView
>
localFct_
;
std
::
string
name_
;
std
::
vector
<
int
>
components_
;
Vtk
::
DataTypes
dataType_
=
Vtk
::
DataTypes
::
FLOAT
32
;
Vtk
::
DataTypes
dataType_
=
Vtk
::
DataTypes
::
FLOAT
64
;
Vtk
::
RangeTypes
rangeType_
=
Vtk
::
RangeTypes
::
UNSPECIFIED
;
};
...
...
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