MantisBT - ParaView
View Issue Details
0006967ParaViewBugpublic2008-05-06 11:542016-08-12 09:57
Burlen 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0006967: vtkXMLHierarchicalBoxDataWriter skips image data when writing
When running with mpich, not all of the image data belonging to the current process are output, even though they are there.
Code to reproduce:
the vtkCTHTestDataSource class is in the tarball as are the resulting dataset for run with -np 2.

vtkCTHTestDataSource *cthSrc = vtkCTHTestDataSource::New();

cthSrc->SetDataSetDomain(0,0,0, 11,11,3);
cthSrc->SetDataSetOrigin(-3.0,-3.0,-1.0);
cthSrc->SetDataSetDx(0.5,0.5,0.5);
cthSrc->SetDataSetNBlocks(3,3,1);
cthSrc->SetDataSetNCellsX(4);
cthSrc->AddFragmentBox(2,5,1, 4,6,2);
cthSrc->AddFragmentBox(5,1,1, 6,10,2);
cthSrc->AddFragmentBox(7,1,1, 9,2,2);
cthSrc->AddFragmentBox(9,5,1, 10,6,2);
cthSrc->AddFragmentBox(7,9,1, 9,10,2);
cthSrc->SetNumberOfProcs(numProcs);
cthSrc->SetProcId(myProcId);
vtkHierarchicalBoxDataSet *hbds = cthSrc->GetOutput();
hbds->Update();

if ( ctc.GetStatus("-writeInputData") )
  {
  vtkCompositeDataIterator *it=hbds->NewIterator();
  it->InitTraversal();
  it->VisitOnlyLeavesOn();
  it->SkipEmptyNodesOn();
  while(!it->IsDoneWithTraversal())
    {
    vtkAMRBox box=hbds->GetAMRBox(it);
    vtkUniformGrid *id=dynamic_cast<vtkUniformGrid *>(hbds->GetDataSet(it));
    it->GoToNextItem();
    cerr << myProcId << ":" << box << "{" << *id <<"}\n";
    }

  ostringstream oss;
  oss << ctc.GetStringArg("-writeInputData");
  oss << "_" << myProcId;

  vtkXMLHierarchicalBoxDataWriter *xdw = vtkXMLHierarchicalBoxDataWriter::New();
  xdw->SetInput( hbds );
  xdw->SetFileName( oss.str().c_str() );
  xdw->Write();
  xdw->Delete();
  }



ostream &operator<<(ostream &sout, const vtkAMRBox &box)
{
  sout << "(";
  for (int q=0; q<3; ++q)
    {
    sout << box.LoCorner[q] << ",";
    }
  sout << (char)0x08 << ")(";
  for (int q=0; q<3; ++q)
    {
    sout << box.HiCorner[q] << ",";
    }
  sout << (char)0x08 << ")";
  return sout;
}


No tags attached.
gz hbwbug.tar.gz (4,862) 2008-05-06 11:54
https://www.vtk.org/Bug/file/6444/hbwbug.tar.gz
Issue History
2008-05-06 11:54BurlenNew Issue
2008-05-06 11:54BurlenFile Added: hbwbug.tar.gz
2009-02-17 16:08Ken MorelandStatusbacklog => tabled
2009-02-17 16:08Ken MorelandAssigned To => Burlen
2009-05-13 13:46Utkarsh AyachitTarget Version => 3.6
2009-08-25 18:43Utkarsh AyachitAssigned ToBurlen =>
2009-08-25 18:43Utkarsh AyachitCategory => Bug
2009-08-25 18:43Utkarsh AyachitTarget Version3.6 => 3.8
2016-08-12 09:57Kitware RobotNote Added: 0037572
2016-08-12 09:57Kitware RobotStatusexpired => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved
2016-08-12 09:57Kitware RobotAssigned To => Kitware Robot

Notes
(0037572)
Kitware Robot   
2016-08-12 09:57   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.