Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sudhanshu Sane
VTK-m
Commits
fcced134
Commit
fcced134
authored
Dec 27, 2018
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct maybe-uninitialized warnings found from examples
parent
9747a89a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
vtkm/rendering/raytracing/VolumeRendererStructured.cxx
vtkm/rendering/raytracing/VolumeRendererStructured.cxx
+7
-5
vtkm/worklet/particleadvection/Integrators.h
vtkm/worklet/particleadvection/Integrators.h
+2
-1
No files found.
vtkm/rendering/raytracing/VolumeRendererStructured.cxx
View file @
fcced134
...
...
@@ -59,7 +59,6 @@ protected:
using
DefaultConstHandle
=
typename
DefaultHandle
::
ExecutionTypes
<
Device
>::
PortalConst
;
using
CartesianConstPortal
=
typename
CartesianArrayHandle
::
ExecutionTypes
<
Device
>::
PortalConst
;
vtkm
::
Float32
InverseDeltaScalar
;
DefaultConstHandle
CoordPortals
[
3
];
CartesianConstPortal
Coordinates
;
vtkm
::
exec
::
ConnectivityStructured
<
vtkm
::
TopologyElementTagPoint
,
vtkm
::
TopologyElementTagCell
,
3
>
...
...
@@ -331,14 +330,16 @@ public:
:
ColorMap
(
colorMap
.
PrepareForInput
(
Device
()))
,
MinScalar
(
minScalar
)
,
SampleDistance
(
sampleDistance
)
,
InverseDeltaScalar
(
minScalar
)
,
Locator
(
locator
)
{
ColorMapSize
=
colorMap
.
GetNumberOfValues
()
-
1
;
if
((
maxScalar
-
minScalar
)
!=
0.
f
)
{
InverseDeltaScalar
=
1.
f
/
(
maxScalar
-
minScalar
);
else
InverseDeltaScalar
=
minScalar
;
}
}
using
ControlSignature
=
void
(
FieldIn
<>
,
FieldIn
<>
,
FieldIn
<>
,
...
...
@@ -527,13 +528,14 @@ public:
:
ColorMap
(
colorMap
.
PrepareForInput
(
Device
()))
,
MinScalar
(
minScalar
)
,
SampleDistance
(
sampleDistance
)
,
InverseDeltaScalar
(
minScalar
)
,
Locator
(
locator
)
{
ColorMapSize
=
colorMap
.
GetNumberOfValues
()
-
1
;
if
((
maxScalar
-
minScalar
)
!=
0.
f
)
{
InverseDeltaScalar
=
1.
f
/
(
maxScalar
-
minScalar
);
else
InverseDeltaScalar
=
minScalar
;
}
}
using
ControlSignature
=
void
(
FieldIn
<>
,
FieldIn
<>
,
...
...
vtkm/worklet/particleadvection/Integrators.h
View file @
fcced134
...
...
@@ -155,7 +155,8 @@ protected:
vtkm
::
Vec
<
ScalarType
,
3
>&
outpos
)
const
override
{
ScalarType
stepLength
=
StepLength
;
vtkm
::
Vec
<
ScalarType
,
3
>
velocity
,
currentVelocity
;
vtkm
::
Vec
<
ScalarType
,
3
>
velocity
=
{
0.0
f
,
0.0
f
,
0.0
f
};
vtkm
::
Vec
<
ScalarType
,
3
>
currentVelocity
=
{
0.0
f
,
0.0
f
,
0.0
f
};
CheckStep
(
inpos
,
0.0
f
,
time
,
currentVelocity
);
numSteps
=
numSteps
==
0
?
1
:
numSteps
;
if
(
MinimizeError
)
...
...
Write
Preview
Markdown
is supported
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