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

COMP: Make AMR examples depend on parallel

AMR examples must depend on parallel since vtkAMRUtilities is used.

Change-Id: I16f72d6ef917849334f11c2e700c6b5f7f5a92e8
parent 713c429e
......@@ -27,9 +27,10 @@ ADD_EXECUTABLE(HierarchicalBoxPipeline HierarchicalBoxPipeline.cxx)
TARGET_LINK_LIBRARIES(HierarchicalBoxPipeline vtkRendering vtkIO)
## Add Generate3DAMRDataSetWithPulse executable
ADD_EXECUTABLE( Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse
## Add AMR examples
IF (VTK_USE_PARALLEL AND VTK_USE_MPI )
ADD_EXECUTABLE( Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse
vtkGraphics
vtkFiltering
vtkRendering
......@@ -40,9 +41,8 @@ TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse
${VTK_HDF5_LIBRARIES}
)
## Add Generate3DAMRDataSetWithPulse executable
ADD_EXECUTABLE( Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse
ADD_EXECUTABLE( Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse
vtkGraphics
vtkFiltering
vtkRendering
......@@ -52,3 +52,4 @@ TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse
${MPI_LIBRARIES}
${VTK_HDF5_LIBRARIES}
)
ENDIF (VTK_USE_PARALLEL AND VTK_USE_MPI)
\ No newline at end of file
......@@ -117,7 +117,7 @@ void WriteAMRData( vtkHierarchicalBoxDataSet *amrData, std::string prefix )
oss << prefix << ".vthb";
myAMRWriter->SetFileName( oss.str().c_str() );
myAMRWriter->SetInput( amrData );
myAMRWriter->SetInputData( amrData );
myAMRWriter->Write();
myAMRWriter->Delete();
}
......
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