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,28 +27,29 @@ ADD_EXECUTABLE(HierarchicalBoxPipeline HierarchicalBoxPipeline.cxx) ...@@ -27,28 +27,29 @@ ADD_EXECUTABLE(HierarchicalBoxPipeline HierarchicalBoxPipeline.cxx)
TARGET_LINK_LIBRARIES(HierarchicalBoxPipeline vtkRendering vtkIO) TARGET_LINK_LIBRARIES(HierarchicalBoxPipeline vtkRendering vtkIO)
## Add Generate3DAMRDataSetWithPulse executable ## Add AMR examples
ADD_EXECUTABLE( Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse.cxx) IF (VTK_USE_PARALLEL AND VTK_USE_MPI )
TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse ADD_EXECUTABLE( Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse.cxx)
vtkGraphics TARGET_LINK_LIBRARIES( Generate3DAMRDataSetWithPulse
vtkFiltering vtkGraphics
vtkRendering vtkFiltering
vtkIO vtkRendering
vtkAMR vtkIO
vtkParallel vtkAMR
${MPI_LIBRARIES} vtkParallel
${VTK_HDF5_LIBRARIES} ${MPI_LIBRARIES}
) ${VTK_HDF5_LIBRARIES}
)
## Add Generate3DAMRDataSetWithPulse executable
ADD_EXECUTABLE( Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse.cxx) ADD_EXECUTABLE( Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse.cxx)
TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse TARGET_LINK_LIBRARIES( Generate2DAMRDataSetWithPulse
vtkGraphics vtkGraphics
vtkFiltering vtkFiltering
vtkRendering vtkRendering
vtkIO vtkIO
vtkAMR vtkAMR
vtkParallel vtkParallel
${MPI_LIBRARIES} ${MPI_LIBRARIES}
${VTK_HDF5_LIBRARIES} ${VTK_HDF5_LIBRARIES}
) )
\ No newline at end of file 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 ) ...@@ -117,7 +117,7 @@ void WriteAMRData( vtkHierarchicalBoxDataSet *amrData, std::string prefix )
oss << prefix << ".vthb"; oss << prefix << ".vthb";
myAMRWriter->SetFileName( oss.str().c_str() ); myAMRWriter->SetFileName( oss.str().c_str() );
myAMRWriter->SetInput( amrData ); myAMRWriter->SetInputData( amrData );
myAMRWriter->Write(); myAMRWriter->Write();
myAMRWriter->Delete(); 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