Commit efd86320 authored by George Zagaris's avatar George Zagaris
Browse files

ENH: Added vtkAMRDualMeshExtractor to the pipeline

Call the vtkAMRDualMeshExtractor to extract the dual mesh
of the ghosted vtkHierarchicalBoxDataSet.
parent b4f52df1
......@@ -36,7 +36,7 @@
#include "vtkMultiProcessController.h"
#include "vtkMPIController.h"
#include "vtkAMRUtilities.h"
#include "vtkAMRDualMeshExtractor.h"
// Global Variables
vtkMultiProcessController *Controller;
......@@ -122,7 +122,13 @@ int main( int argc, char **argv )
std::cout.flush();
Controller->Barrier();
vtkAMRDualMeshExtractor *dme = vtkAMRDualMeshExtractor::New();
dme->SetInput( newData );
dme->Update();
dme->WriteMultiBlockData( dme->GetOutput() );
// STEP 3: CleanUp
dme->Delete();
amrData->Delete();
connectivityFilter->Delete();
transferFilter->Delete();
......
Supports Markdown
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