Commit 9f63f467 authored by Niklas Roeber's avatar Niklas Roeber Committed by Michael Migliore

Update CDIReader

parent 697deda5
This diff is collapsed.
cmake_minimum_required(VERSION 3.3)
if (NOT ParaView_BINARY_DIR)
find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})
endif()
if(PARAVIEW_USE_MPI)
include(vtkMPI)
endif()
include_directories(
${PARAVIEW_INCLUDE_DIRS}
${PARAVIEW_GUI_INCLUDE_DIRS}
${PARAVIEW_KWSYS_INCLUDE_DIRS}
${VTK_INCLUDE_DIRS}
)
add_definitions(-DHAVE_NETCDF2)
)
# Please leave these definitions in here and do not change them.
# We use the cdi library to read both, netCDF2 and netCDF4 data.
add_definitions(-DHAVE_LIBNETCDF -DHAVE_NETCDF2 -DHAVE_NETCDF4)
set_source_files_properties(cdilib.c PROPERTY C_STANDARD 99)
vtk_module_warnings_disable(C)
vtk_module_load(vtknetcdf)
if (NOT VTK_USE_SYSTEM_HDF5 OR HDF5_HL_LIBRARY OR HDF5_hdf5_hl_LIBRARY)
add_definitions(-DHAVE_NETCDF4)
endif ()
add_paraview_plugin(CDIReader "1.0"
SERVER_MANAGER_XML CDIReader.xml
add_paraview_plugin(CDIReader "1.3"
SERVER_MANAGER_XML
CDIReader.xml
SERVER_MANAGER_SOURCES
vtkCDIReader.cxx
SERVER_SOURCES
SOURCES
cdilib.c
REQUIRED_ON_SERVER
)
set_source_files_properties(cdilib.c
PROPERTIES COMPILE_FLAGS -std=c99)
target_link_libraries(CDIReader LINK_PRIVATE ${vtknetcdf_LIBRARIES})
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
if (NOT WIN32)
pv_plugin(CDIReader
DESCRIPTION "ICON netCDF/CDI Reader"
DEFAULT_ENABLED)
endif()
pv_plugin(CDIReader
DESCRIPTION "ICON netCDF/CDI Reader"
DEFAULT_ENABLED)
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
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