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
VTK
VTK
Commits
4a187f92
Commit
4a187f92
authored
Mar 14, 2007
by
John Biddiscombe
Browse files
BUG:Clear the time steps output before setting to avoid adding spurious values to the end.
COMP:Fix unused variable warning
parent
d65f6e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Parallel/vtkTemporalStreamTracer.cxx
View file @
4a187f92
...
...
@@ -68,7 +68,7 @@ PURPOSE. See the above copyright notice for more information.
#include <algorithm>
//---------------------------------------------------------------------------
vtkCxxRevisionMacro
(
vtkTemporalStreamTracer
,
"1.
5
"
);
vtkCxxRevisionMacro
(
vtkTemporalStreamTracer
,
"1.
6
"
);
vtkStandardNewMacro
(
vtkTemporalStreamTracer
);
vtkCxxSetObjectMacro
(
vtkTemporalStreamTracer
,
Controller
,
vtkMultiProcessController
);
//---------------------------------------------------------------------------
...
...
@@ -219,6 +219,7 @@ int vtkTemporalStreamTracer::RequestInformation(
// We only output T-1 time steps
//
this
->
OutputTimeValues
.
resize
(
this
->
NumberOfInputTimeSteps
-
1
);
this
->
OutputTimeValues
.
clear
();
this
->
OutputTimeValues
.
insert
(
this
->
OutputTimeValues
.
begin
(),
this
->
InputTimeValues
.
begin
()
+
1
,
this
->
InputTimeValues
.
end
());
...
...
@@ -1114,7 +1115,7 @@ void vtkTemporalStreamTracer::IntegrateParticle(
}
// Point is valid. Insert it.
Position
*
currentposition
=
(
Position
*
)
&
point2
;
//
Position *currentposition = (Position*)&point2;
memcpy
(
&
info
.
CurrentPosition
,
point2
,
sizeof
(
Position
));
memcpy
(
point1
,
point2
,
sizeof
(
Position
));
/*
...
...
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