Skip to content
Snippets Groups Projects
Commit 43002081 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkIOMPIParallel: update to the new module system

parent f57d91d7
No related branches found
No related tags found
No related merge requests found
include(vtkMPI)
set(classes
vtkPWindBladeReader
vtkMPIMultiBlockPLOT3DReader)
# We don't build the parallel readers on windows
# because there's problems with the MPI_File_open()
# function when there's paths in the filenames.
set (vtk_module_overrides)
if(WIN32)
set(Module_SRCS)
else()
set(Module_SRCS
vtkPWindBladeReader.cxx
vtkMPIMultiBlockPLOT3DReader.cxx
)
vtk_object_factory_declare(
BASE vtkWindBladeReader
OVERRIDE vtkPWindBladeReader)
vtk_object_factory_declare(
BASE vtkMultiBlockPLOT3DReader
OVERRIDE vtkMPIMultiBlockPLOT3DReader)
vtk_add_override(vtkWindBladeReader vtkPWindBladeReader)
vtk_add_override(vtkMultiBlockPLOT3DReader vtkMPIMultiBlockPLOT3DReader)
endif()
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKIOMPIPARALLEL_EXPORT")
# Now to generate our object factory.
vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_mpi_link(${vtk-module})
vtk_module_add_module(VTK::IOMPIParallel
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
set(enable_large_data_tests FALSE)
if (VTK_USE_LARGE_DATA AND NOT WIN32)
if (DEFINED VTK_WORDS_BIGENDIAN AND NOT VTK_WORDS_BIGENDIAN)
vtk_module_test_data(
Data/WindBladeReader/,REGEX:.*
Data/WindBladeReader/field/,REGEX:.*
Data/WindBladeReader/turbine/,REGEX:.*)
set(enable_large_data_tests TRUE)
endif ()
endif ()
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/multi-bin.xyz
Data/multi-bin-oflow.q
Data/multi-bin.f)
add_subdirectory(Python)
endif ()
......@@ -5,20 +5,11 @@ if (DEFINED VTK_WORDS_BIGENDIAN)
endif()
endif()
if (VTK_USE_LARGE_DATA AND _known_little_endian AND NOT WIN32)
include(vtkMPI)
# Tell ExternalData to fetch test input at build time.
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/field/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/turbine/,REGEX:.*}"
)
if (enable_large_data_tests)
set(TestPWindBladeReader_NUMPROCS 1)
vtk_add_test_mpi(vtkIOMPIParallelCxxTests-MPI tests
TESTING_DATA
TestPWindBladeReader.cxx
)
vtk_test_mpi_executable(vtkIOMPIParallelCxxTests-MPI tests)
vtk_test_cxx_executable(vtkIOMPIParallelCxxTests-MPI tests)
endif()
vtk_module(vtkIOMPIParallel
IMPLEMENTS
vtkIOGeometry
vtkIOParallel
GROUPS
MPI
TEST_DEPENDS
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkParallel
DEPENDS
vtkIOGeometry
vtkIOParallel
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkCommonMisc
vtkParallelMPI
vtksys
)
NAME
VTK::IOMPIParallel
LIBRARY_NAME
vtkIOMPIParallel
# We don't build the parallel readers on windows because there are problems
# with the MPI_File_open() function when there are paths in the filenames.
CONDITION
NOT WIN32
KIT
VTK::Parallel
GROUPS
MPI
IMPLEMENTS
VTK::IOGeometry
VTK::IOParallel
DEPENDS
VTK::IOGeometry
VTK::IOParallel
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::CommonMisc
VTK::ParallelMPI
VTK::mpi
VTK::vtksys
TEST_DEPENDS
VTK::FiltersGeometry
VTK::InteractionStyle
VTK::ParallelMPI
VTK::RenderingOpenGL2
VTK::TestingRendering
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment