[Paraview] RegionIDs cannot be 0 while using Catalyst
谢茂金
xiemaojin at sccas.cn
Mon Dec 2 02:02:52 EST 2013
Hi, all
When using Catalyst for Live Data Visualization, I get an error for each frame as follows,
ERROR: In /path/to/paraview-4.0.0-RC2/source/directory/ParaViewCore/VTKExtensions/Rendering/vtkKdTreeGenerator.cxx, line 172
vtkKdTreeGenerator (0x71c3dc0) : RegionIDs cannot be 0.
Both the paraview and the simulation processer are not crash and get four sub-images with four processors, but sub images are not composited as what I've expected.
The whole volume is of size (nx*2, ny*2, nz), and devide into four sub volumes. When creating the volume data, I use the following piece of code to set the grid, where nx, ny, nz are the size of current sub volume, and nxstart, nystart, nzstart are the starting grid of current sub volume.
33 vtkSmartPointer<vtkImageData> grid = vtkSmartPointer<vtkImageData>::New();
34
35 grid->SetExtent(*nxstart, *nxstart+*nx-1, *nystart, *nystart+*ny-1, *nzstart, *nzstart+*nz-1);
36
37 // Name should be consistent between here, Fortran and Python client script.
38 vtkCPPythonAdaptorAPI::GetCoProcessorData()->GetInputDescriptionByName("input")->SetGrid(grid);
39 vtkCPPythonAdaptorAPI::GetCoProcessorData()->GetInputDescriptionByName("input")->SetWholeExtent(0, *nx*2-1, 0, *ny*2-1, 0, *nz-1);
So I think I may lost some key steps to specify the proper kdtree region ids, but I havn't found out how to configure it.
Any ideas? Thanks in advance.
Maojin XIE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131202/1e4b9289/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 333404 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131202/1e4b9289/attachment-0001.jpeg>
More information about the ParaView
mailing list