[Paraview] calculator problem

2009-12-08 Thread Paul Edwards
Hi, I've found a bug with the calculator: create a box apply calculator filter: array name "a", value "1" apply calculator again: array name "b", value "2" now change the input for the second calculator to the box and you get the following error: vtkArrayCalculator (0x28b3d40): Invalid array na

Re: [Paraview] calculator problem

2009-12-08 Thread Utkarsh Ayachit
Very interesting. I am adding this to the bug tracker. http://paraview.org/Bug/view.php?id=10012 Thanks for reporting. Utkarsh On Tue, Dec 8, 2009 at 9:46 AM, Paul Edwards wrote: > Hi, > > I've found a bug with the calculator: > > create a box > apply calculator filter: array name "a", value "1

Re: [Paraview] calculator problem

2009-12-08 Thread Dominik Szczerba
The problem is more general. Create a custom filter using calculator and the data (u,v,w,p) sqrt(u^2+v^2+w^2). Save a custom filter. Now re-open the data but now do not read 'p' array this time (XDMF). Apply custom filter. Calculator will complain p is absent. Dominik Utkarsh Ayachit wrote:

Re: [Paraview] calculator problem

2009-12-08 Thread Utkarsh Ayachit
I am not sure why this is a problem? The custom filter will preserve your equation. So the next time you use the custom filter, it an array required in the calculator is missing, it should indeed complain. Utkarsh On Tue, Dec 8, 2009 at 10:10 AM, Dominik Szczerba wrote: > The problem is more gen

Re: [Paraview] calculator problem

2009-12-08 Thread Dominik Szczerba
Please note that 'p' is not required in the Results formula. Only those variables should be required that are needed to form a valid formula, not those that were originally present. Dominik Utkarsh Ayachit wrote: I am not sure why this is a problem? The custom filter will preserve your equati

Re: [Paraview] calculator problem

2009-12-08 Thread Utkarsh Ayachit
Ah gotchya. I've added that to the bug as well. Utkarsh On Tue, Dec 8, 2009 at 11:21 AM, Dominik Szczerba wrote: > Please note that 'p' is not required in the Results formula. Only those > variables should be required that are needed to form a valid formula, not > those that were originally pres