MantisBT - ParaView | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013088 | ParaView | (No Category) | public | 2012-04-13 10:10 | 2012-10-29 17:04 | |||||
Reporter | Sebastien Jourdain | |||||||||
Assigned To | Sebastien Jourdain | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | 3.98.0 | ||||||||
Project | TBD | |||||||||
Topic Name | 13088-calculator-multi-block-fix | |||||||||
Type | incorrect functionality | |||||||||
Summary | 0013088: Calculator produce invalid results | |||||||||
Description | The calculator gives incorrect results for multiblock unless the variables have the same index internally. This can be reproduced with the steps below: 1. Create a python source that outputs vtkUnstructuredGrid with the following script: def add_scalar(ds, val): arr = vtk.vtkDoubleArray() arr.SetName("Scalar"+str(val)) arr.SetNumberOfComponents(1) arr.SetNumberOfTuples(8) for i in range(8): arr.SetTuple1(i, float(val)) output.GetPointData().AddArray(arr) output = self.GetOutput() npts = 8 pts = vtk.vtkPoints() pts.InsertNextPoint(-3.0, -1.0, -1.0) pts.InsertNextPoint(-1.0, -1.0, -1.0) pts.InsertNextPoint(-1.0, 1.0, -1.0) pts.InsertNextPoint(-3.0, 1.0, -1.0) pts.InsertNextPoint(-3.0, -1.0, 1.0) pts.InsertNextPoint(-1.0, -1.0, 1.0) pts.InsertNextPoint(-1.0, 1.0, 1.0) pts.InsertNextPoint(-3.0, 1.0, 1.0) output.SetPoints(pts) output.Allocate(1,1) ids = vtk.vtkIdList() for i in range(npts): ids.InsertId(i,i) add_scalar(output, 1) add_scalar(output, 2) output.InsertNextCell(vtk.VTK_HEXAHEDRON, ids) 2. Create a second python source that outputs vtkUnstructuredGrid with the following script (notice the change in order when adding the scalars): def add_scalar(ds, val): arr = vtk.vtkDoubleArray() arr.SetName("Scalar"+str(val)) arr.SetNumberOfComponents(1) arr.SetNumberOfTuples(8) for i in range(8): arr.SetTuple1(i, float(val)) output.GetPointData().AddArray(arr) output = self.GetOutput() npts = 8 pts = vtk.vtkPoints() pts.InsertNextPoint(-3.0, -1.0, -1.0) pts.InsertNextPoint(-1.0, -1.0, -1.0) pts.InsertNextPoint(-1.0, 1.0, -1.0) pts.InsertNextPoint(-3.0, 1.0, -1.0) pts.InsertNextPoint(-3.0, -1.0, 1.0) pts.InsertNextPoint(-1.0, -1.0, 1.0) pts.InsertNextPoint(-1.0, 1.0, 1.0) pts.InsertNextPoint(-3.0, 1.0, 1.0) output.SetPoints(pts) output.Allocate(1,1) ids = vtk.vtkIdList() for i in range(npts): ids.InsertId(i,i) add_scalar(output, 2) add_scalar(output, 1) output.InsertNextCell(vtk.VTK_HEXAHEDRON, ids) 3. Group the two python sources together 4. Use the Calculator filter to pass through Scalar1 See output below: | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | image001.png (29,544) 2012-04-13 10:10 https://www.vtk.org/Bug/file/9154/image001.png MultiBlock-ArrayDifferentOrder.zip (2,205) 2012-07-19 16:25 https://www.vtk.org/Bug/file/9233/MultiBlock-ArrayDifferentOrder.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-04-13 10:10 | Sebastien Jourdain | New Issue | ||||||||
2012-04-13 10:10 | Sebastien Jourdain | Assigned To | => Sebastiennn Jourdain | |||||||
2012-04-13 10:10 | Sebastien Jourdain | File Added: image001.png | ||||||||
2012-04-13 11:42 | Sebastien Jourdain | Relationship added | has duplicate 0012929 | |||||||
2012-04-17 09:02 | Sebastien Jourdain | Status | backlog => todo | |||||||
2012-04-17 09:02 | Sebastien Jourdain | Status | todo => active development | |||||||
2012-04-17 11:05 | Sebastien Jourdain | Note Added: 0028483 | ||||||||
2012-04-17 11:07 | Sebastien Jourdain | Note Added: 0028484 | ||||||||
2012-04-17 11:09 | Sebastien Jourdain | Note Added: 0028485 | ||||||||
2012-04-17 11:10 | Sebastien Jourdain | Status | active development => gatekeeper review | |||||||
2012-04-17 11:10 | Sebastien Jourdain | Resolution | open => fixed | |||||||
2012-04-17 11:16 | Sebastien Jourdain | Topic Name | => 13088-calculator-fix (On Seb computer...) | |||||||
2012-04-20 13:50 | Utkarsh Ayachit | Fixed in Version | => git-master | |||||||
2012-04-20 13:51 | Utkarsh Ayachit | Status | gatekeeper review => customer review | |||||||
2012-04-20 13:51 | Utkarsh Ayachit | Note Added: 0028500 | ||||||||
2012-05-23 08:02 | Sebastien Jourdain | Note Added: 0028637 | ||||||||
2012-05-23 08:02 | Sebastien Jourdain | Status | customer review => active development | |||||||
2012-05-23 11:30 | Sebastien Jourdain | Note Edited: 0028484 | bug_revision_view_page.php?bugnote_id=28484#r446 | |||||||
2012-05-29 13:30 | Sebastien Jourdain | Topic Name | 13088-calculator-fix (On Seb computer...) => 13088-calculator-multi-block-fix | |||||||
2012-05-29 13:33 | Sebastien Jourdain | Status | active development => gatekeeper review | |||||||
2012-06-01 14:41 | Utkarsh Ayachit | Status | gatekeeper review => customer review | |||||||
2012-06-01 14:41 | Utkarsh Ayachit | Note Added: 0028669 | ||||||||
2012-07-19 16:25 | Sebastien Jourdain | File Added: MultiBlock-ArrayDifferentOrder.zip | ||||||||
2012-07-19 16:27 | Sebastien Jourdain | Note Added: 0028873 | ||||||||
2012-07-19 16:27 | Sebastien Jourdain | Status | customer review => closed | |||||||
2012-10-29 17:04 | Utkarsh Ayachit | Fixed in Version | git-master => 3.98.0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|