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

ENH: Added data-transfer

Added calls in the AMRDataTransferPipeline for
inter-block & inter-level data-transfer.
parent 3a01efeb
......@@ -59,8 +59,8 @@ class VTK_AMR_EXPORT vtkAMRConnectivityFilter : public vtkHierarchicalBoxDataSet
vtkAMRInterBlockConnectivity *LocalConnectivity;
private:
vtkAMRConnectivityFilter(const vtkAMRConnectivityFilter&);
vtkAMRConnectivityFilter& operator=(const vtkAMRConnectivityFilter&);
vtkAMRConnectivityFilter(const vtkAMRConnectivityFilter&); // Not implemented
vtkAMRConnectivityFilter& operator=(const vtkAMRConnectivityFilter&); // Not implemented
};
......
......@@ -21,6 +21,7 @@
#include "vtkUniformGrid.h"
#include "vtkAMRBox.h"
#include "vtkAMRConnectivityFilter.h"
#include "vtkAMRDataTransferFilter.h"
#include "vtkHierarchicalBoxDataSet.h"
#include "vtkXMLPHierarchicalBoxDataWriter.h"
#include "vtkMultiProcessController.h"
......@@ -79,6 +80,25 @@ int main( int argc, char **argv )
Controller->Barrier();
// STEP 2: Data transfer
std::cout << "Transfering solution\n";
std::cout.flush();
vtkAMRDataTransferFilter* transferFilter = vtkAMRDataTransferFilter::New();
vtkAssertUtils::assertNotNull( transferFilter,__FILE__,__LINE__);
transferFilter->SetController( Controller );
transferFilter->SetAMRDataSet( amrData );
transferFilter->SetNumberOfGhostLayers( 1 );
transferFilter->SetRemoteConnectivity(
connectivityFilter->GetRemoteConnectivity() );
transferFilter->SetLocalConnectivity(
connectivityFilter->GetLocalConnectivity() );
transferFilter->Transfer();
std::cout << "[DONE]\n";
std::cout.flush();
Controller->Barrier();
Controller->Finalize();
return 0;
......
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