<HTML>
<HEAD>
<TITLE>Re: [Paraview] time series</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>This problem sounds totally unrelated to the first problem you reported.<BR>
<BR>
Do you have </SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>#include &lt;vtkstd/algorithm&gt;</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> at the top of your reader? &nbsp;find_if is declared in this header.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/16/09 9:02 AM, &quot;Didier Roiss&eacute;&quot; &lt;<a href="didier.roisse@gmail.com">didier.roisse@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks John.<BR>
<BR>
I try , but I have problem with this: <BR>
<BR>
this-&gt;ActualTimeStep = vtkstd::find_if(<BR>
    this-&gt;TimeStepValues.begin(), this-&gt;TimeStepValues.end(), <BR>
    vtkstd::bind2nd( WithinTolerance( ), requestedTimeValue )) <BR>
    - this-&gt;TimeStepValues.begin();<BR>
<BR>
<BR>
I have always this following build error :<BR>
error : 'find_if' is not a member of std.<BR>
<BR>
I don't understand what I'm doing wrong.<BR>
<BR>
<BR>
<BR>
2009/12/16 Biddiscombe, John A. &lt;<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Have a look at the time presentation on the paraview wiki under IEEE 2008 tutorial. you need XML + RequestInformation and then it should work<BR>
 <BR>
JB<BR>
 <BR>
<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org">mailto:paraview-bounces@paraview.org</a>] <B>On Behalf Of </B>Didier Roiss&eacute;<BR>
<B>Sent:</B> 16 December 2009 13:04<BR>
<B>To:</B> <a href="paraview@paraview.org">paraview@paraview.org</a><BR>
<B>Subject:</B> [Paraview] time series<BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><BR>
 <BR>
Hello,<BR>
I write a plugin reader. And this reader reads data which is time dependent.<BR>
So in RequestInformation I set the different values for steps and the min and max value of time like this :<BR>
<BR>
for(int i=0;i&lt;nbtimesteps;i++)<BR>
               outInfo-&gt;Append(vtkStreamingDemandDrivenPipeline::TIME_STEPS(),timeStep[i]);<BR>
<BR>
timeRange[0]=time_min;<BR>
timeRange[1]=time_max;<BR>
outInfo-&gt;Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), timeRange, 2);<BR>
<BR>
nbtimsteps is the number of steps.<BR>
and timeSteps[i] is the value of the time at the step i.<BR>
<BR>
<BR>
<BR>
In RequestData I write the following line to see the value of UPDATE_TIME_STEPS.<BR>
if(outInfo-&gt;Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS()))<BR>
      {<BR>
          double step = outInfo-&gt;Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS())[0];<BR>
          int nSteps =<BR>
                outInfo-&gt;Length(vtkStreamingDemandDrivenPipeline::TIME_STEPS());<BR>
          double* steps =<BR>
                outInfo-&gt;Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS());<BR>
          std::cout &lt;&lt; &quot;Step : &quot;&lt;&lt;step&lt;&lt;endl;<BR>
          for(int i=0;i&lt;nSteps;i++)<BR>
          {<BR>
            std::cout &lt;&lt; &quot;steps : &quot;&lt;&lt;steps[i]&lt;&lt;endl;<BR>
          }<BR>
      }<BR>
<BR>
 when I display outInfo-&gt;Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS())[0] for the first time value,<BR>
I expected to have my first value of my timeStep, but I have 0. <BR>
And if I click on the next frame button in paraview, the next value is 0.1111111.<BR>
<BR>
I don't understand what I am doing wrong. <BR>
<BR>
Thanks,<BR>
Didier<BR>
<BR>
PS : I use paraview 3.7<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>