Commit 15b25c88 authored by George Zagaris's avatar George Zagaris
Browse files

ENH: Replace deprecated call to GetComponent()

Replace deprecated calls to GetComponent on
FieldData object. Now, GetComponent is called on
the actual data array.
parent b53e4786
...@@ -150,10 +150,20 @@ void ComputeGaussianPulseError( vtkHierarchicalBoxDataSet *data ) ...@@ -150,10 +150,20 @@ void ComputeGaussianPulseError( vtkHierarchicalBoxDataSet *data )
err->SetNumberOfComponents( 1 ); err->SetNumberOfComponents( 1 );
err->SetNumberOfValues( ug->GetNumberOfCells() ); err->SetNumberOfValues( ug->GetNumberOfCells() );
vtkCellData *CD = ug->GetCellData();
assert( "pre: Grid must have cell data!" &&
(CD->GetNumberOfArrays() > 0) );
vtkDataArray *pulse = CD->GetArray( "GaussianPulse" );
assert( "pre: Pulse data not found on grid!" && (pulse!=NULL) );
for( int cell=0; cell < ug->GetNumberOfCells(); ++cell ) for( int cell=0; cell < ug->GetNumberOfCells(); ++cell )
{ {
//TODO: implement this
}// END for all grid cells } // END for all grid cells
CD->AddArray( err );
err->Delete();
} }
} // END for all data } // END for all data
......
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