Commit a8805b28 authored by hrchilds's avatar hrchilds
Browse files

Initialize ghost data information. (How did this ever work?)


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@16565 18c085ea-50e0-402c-830e-de6fd14e8384
parent ada94d86
......@@ -2502,6 +2502,9 @@ avtStructuredDomainBoundaries::ResetCachedMembers(void)
// Hank Childs, Thu Sep 29 15:20:29 PDT 2011
// Add support for communicating pre-existing ghost zone data.
//
// Hank Childs, Sun Oct 30 10:13:23 PDT 2011
// Fix bug with uninitialized data.
//
// ****************************************************************************
void
......@@ -2517,6 +2520,8 @@ avtStructuredDomainBoundaries::CreateGhostZones(vtkDataSet *outMesh,
vtkUnsignedCharArray *ghostCells = vtkUnsignedCharArray::New();
ghostCells->SetName("avtGhostZones");
ghostCells->SetNumberOfTuples(bi->newncells);
for (int i = 0 ; i < bi->newncells ; i++)
ghostCells->SetValue(i, 0);
if (haveCommunicatedGhosts)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment