...
 
Commits (17)
* -whitespace
......@@ -5,8 +5,12 @@
# This allows you to turn on and off the auto
# update of the (project name)Version.hpp file
if (FALSE) # XXX(kitware): force settings
SET(VERSION_CONTROL_AUTOUPDATE OFF CACHE BOOL "Automaticaly Update The Version")
MARK_AS_ADVANCED(VERSION_CONTROL_AUTOUPDATE)
else ()
set(VERSION_CONTROL_AUTOUPDATE OFF)
endif ()
# We need to make sure we have the header file
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/CMake/VersionSuite)
......
if (FALSE) # XXX(kitware): use VTK's CMake policies
cmake_minimum_required(VERSION 2.8.5)
endif ()
project(Xdmf)
......@@ -8,16 +10,20 @@ if(WIN32)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
endif()
if (FALSE) # XXX(kitware): force settings
set(XDMF_LIBNAME "Xdmf" CACHE STRING "Name for this xdmf library to avoid collision")
endif ()
set(XDMF_MAJOR_VERSION 3)
set(XDMF_MINOR_VERSION 0)
set(XDMF_PATCH_VERSION 0)
set(XDMF_VERSION "${XDMF_MAJOR_VERSION}.${XDMF_MINOR_VERSION}.${XDMF_PATCH_VERSION}")
if (FALSE) # XXX(kitware): VTK's module system handles output directories
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
endif ()
if(BUILD_SHARED_LIBS)
set(BUILD_SHARED 1)
......@@ -25,12 +31,16 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/XdmfConfig.hpp.in
${CMAKE_CURRENT_BINARY_DIR}/XdmfConfig.hpp)
if (FALSE) # XXX(kitware): force settings
# Enable CMake testing
option(XDMF_BUILD_TESTING "Build Tests" OFF)
if(XDMF_BUILD_TESTING)
enable_testing()
include(CTest)
endif()
else ()
set(XDMF_BUILD_TESTING OFF)
endif ()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
......@@ -45,25 +55,40 @@ endif()
include(XdmfFunctions)
# Should we build with documentation
if (FALSE) # XXX(kitware): force settings
option(XDMF_BUILD_DOCUMENTATION OFF)
else ()
set(XDMF_BUILD_DOCUMENTATION OFF)
endif ()
if(XDMF_BUILD_DOCUMENTATION)
add_subdirectory(doc)
endif()
if (FALSE) # XXX(kitware): force settings
# Wrapper Setup
option(XDMF_WRAP_PYTHON OFF)
option(XDMF_WRAP_JAVA OFF)
else ()
set(XDMF_WRAP_PYTHON OFF)
set(XDMF_WRAP_JAVA OFF)
endif ()
if (FALSE) # XXX(kitware): VTK's module system handles dependencies
#check for TIFF
find_package(TIFF)
if (TIFF_FOUND)
add_definitions(-DXDMF_BUILD_TIFF)
include_directories(${TIFF_INCLUDE_DIR})
endif (TIFF_FOUND)
endif ()
if (FALSE) # XXX(kitware): force settings
# Test for DSM
option(XDMF_BUILD_DSM OFF)
mark_as_advanced(XDMF_BUILD_DSM)
else ()
set(XDMF_BUILD_ON OFF)
endif ()
if(XDMF_BUILD_DSM)
find_package(MPI REQUIRED)
if(MPI_FOUND)
......@@ -260,8 +285,12 @@ include(GNUInstallDirs)
add_subdirectory(core)
include_directories(${XdmfCore_INCLUDE_DIRS} ${XdmfDSM_INCLUDE_DIRS})
if (FALSE) # XXX(kitware): force settings
option(XDMF_BUILD_CORE_ONLY OFF)
mark_as_advanced(XDMF_BUILD_CORE_ONLY)
else ()
set(XDMF_BUILD_CORE_ONLY OFF)
endif ()
if(NOT XDMF_BUILD_CORE_ONLY)
set(XdmfSources
XdmfAggregate
......@@ -291,6 +320,7 @@ if(NOT XDMF_BUILD_CORE_ONLY)
XdmfTopologyType
XdmfUnstructuredGrid)
if (FALSE)
add_library(${XDMF_LIBNAME} ${XdmfSources})
SET_TARGET_PROPERTIES(
${XDMF_LIBNAME} PROPERTIES
......@@ -302,6 +332,24 @@ if(NOT XDMF_BUILD_CORE_ONLY)
else(XDMF_BUILD_DSM)
target_link_libraries(${XDMF_LIBNAME} XdmfCore)
endif(XDMF_BUILD_DSM)
else ()
set(sources)
set(headers)
foreach (xdmf_source IN LISTS XdmfSources)
list(APPEND sources
"${xdmf_source}.cpp")
list(APPEND headers
"${xdmf_source}.hpp")
endforeach ()
vtk_module_add_module(VTK::xdmf3
SOURCES ${sources}
HEADERS ${headers}
HEADERS_SUBDIR "vtkxdmf3")
target_link_libraries(xdmf3
PUBLIC
vtkxdmfcore)
endif ()
if(WIN32)
if (BUILD_SHARED_LIBS)
......@@ -334,11 +382,16 @@ if(NOT XDMF_BUILD_CORE_ONLY)
add_subdirectory(tests)
endif()
if (FALSE) # XXX(kitware): force settings
option(XDMF_BUILD_UTILS OFF)
else ()
set(XDMF_BUILD_UTILS OFF)
endif ()
if(XDMF_BUILD_UTILS)
add_subdirectory(utils)
endif()
if (FALSE) # XXX(kitware): VTK's module system handles installation
file(GLOB XdmfHeaders
"*.hpp"
"*.tpp"
......@@ -350,6 +403,7 @@ if(NOT XDMF_BUILD_CORE_ONLY)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif ()
endif()
if(WIN32 AND NOT CYGWIN)
......@@ -358,6 +412,8 @@ else()
set(DEF_INSTALL_CMAKE_DIR
"${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
endif()
if (FALSE) # XXX(kitware): VTK's module system handles installation
xdmf_create_config_file(${PROJECT_NAME})
install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
DESTINATION ${DEF_INSTALL_CMAKE_DIR})
endif ()
# xdmf3 fork for VTK
This branch contains changes required to embed xdmf3 into VTK. This
includes changes made primarily to the build system to allow it to be embedded
into another source tree as well as a header to facilitate mangling of the
symbols to avoid conflicts with other copies of the library within a single
process.
* Ignore whitespace errors for VTK's commit checks.
* Integrate the CMake build with VTK's module system.
......@@ -28,6 +28,8 @@
#include "XdmfAttributeType.hpp"
#include "XdmfError.hpp"
#include "XdmfArray.hpp"
#include <sstream>
//-----------------------------------------------------------------------------
XDMF_CHILDREN_IMPLEMENTATION(XdmfAttribute, XdmfArray, AuxiliaryArray, Name)
//-----------------------------------------------------------------------------
......@@ -350,8 +352,11 @@ void XdmfAttributeSetCenter(XDMFATTRIBUTE * attribute, int center, int * status)
((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Node());
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Attribute Center: Code " + center);
{
std::stringstream sstr;
sstr << "Error: Invalid Attribute Center: Code " << center;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
XDMF_ERROR_WRAP_END(status)
......@@ -383,8 +388,11 @@ void XdmfAttributeSetType(XDMFATTRIBUTE * attribute, int type, int * status)
((XdmfAttribute *)attribute)->setType(XdmfAttributeType::NoAttributeType());
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Attribute Type: Code " + type);
{
std::stringstream sstr;
sstr << "Error: Invalid Attribute Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
XDMF_ERROR_WRAP_END(status)
......
......@@ -321,7 +321,7 @@ XdmfCurvilinearGrid::read()
// Copy stucture from read grid to this grid
copyGrid(grid);
}
else if (shared_ptr<XdmfGrid> grid = shared_dynamic_cast<XdmfGrid>(mGridController->read()))
else if (shared_dynamic_cast<XdmfGrid>(mGridController->read()))
{
XdmfError::message(XdmfError::FATAL, "Error: Grid Type Mismatch");
}
......
......@@ -115,25 +115,25 @@ XdmfDomain::populateItem(const std::map<std::string, std::string> & itemProperti
shared_dynamic_cast<XdmfGridCollection>(*iter)) {
this->insert(gridCollection);
}
else if(shared_ptr<XdmfCurvilinearGrid> grid =
else if(shared_ptr<XdmfCurvilinearGrid> curvilinear_grid =
shared_dynamic_cast<XdmfCurvilinearGrid>(*iter)) {
this->insert(grid);
this->insert(curvilinear_grid);
}
else if(shared_ptr<XdmfGraph> graph =
shared_dynamic_cast<XdmfGraph>(*iter)) {
this->insert(graph);
}
else if(shared_ptr<XdmfRectilinearGrid> grid =
else if(shared_ptr<XdmfRectilinearGrid> rect_grid =
shared_dynamic_cast<XdmfRectilinearGrid>(*iter)) {
this->insert(grid);
this->insert(rect_grid);
}
else if(shared_ptr<XdmfRegularGrid> grid =
else if(shared_ptr<XdmfRegularGrid> regular_grid =
shared_dynamic_cast<XdmfRegularGrid>(*iter)) {
this->insert(grid);
this->insert(regular_grid);
}
else if(shared_ptr<XdmfUnstructuredGrid> grid =
else if(shared_ptr<XdmfUnstructuredGrid> unstructured_grid =
shared_dynamic_cast<XdmfUnstructuredGrid>(*iter)) {
this->insert(grid);
this->insert(unstructured_grid);
}
}
}
......
......@@ -27,6 +27,8 @@
#include "XdmfFunction.hpp"
#include <boost/tokenizer.hpp>
#include <sstream>
shared_ptr<XdmfGeometry> XdmfGeometry::New()
{
shared_ptr<XdmfGeometry> p(new XdmfGeometry());
......@@ -342,8 +344,11 @@ void XdmfGeometrySetType(XDMFGEOMETRY * geometry, int type, int * status)
((XdmfGeometry *) geometry)->setType(XdmfGeometryType::Spherical());
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Geometry Type: Code " + type);
{
std::stringstream sstr;
sstr << "Error: Invalid Geometry Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
XDMF_ERROR_WRAP_END(status)
......
......@@ -26,6 +26,8 @@
#include "XdmfError.hpp"
#include "string.h"
#include <sstream>
std::map<std::string, shared_ptr<const XdmfGeometryType>(*)()> XdmfGeometryType::mGeometryDefinitions;
// Supported XdmfGeometryTypes
......@@ -184,8 +186,9 @@ unsigned int XdmfGeometryTypeGetDimensions(int type, int * status)
break;
default:
try {
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Geometry Type: Code " + type);
std::stringstream sstr;
sstr << "Error: Invalid Geometry Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
catch (XdmfError & e) {
throw e;
......
......@@ -382,7 +382,7 @@ protected:
{
}
~XdmfGridImpl()
virtual ~XdmfGridImpl()
{
}
......
......@@ -261,7 +261,7 @@ XdmfGridCollection::read()
this->insert(grid->getMap(i));
}
}
else if (shared_ptr<XdmfGrid> grid = shared_dynamic_cast<XdmfGrid>(mGridController->read()))
else if (shared_dynamic_cast<XdmfGrid>(mGridController->read()))
{
XdmfError::message(XdmfError::FATAL, "Error: Grid Type Mismatch");
}
......
......@@ -159,7 +159,7 @@ XdmfGridControllerRead(XDMFGRIDCONTROLLER * controller)
{
XdmfGridController referenceController = *(XdmfGridController *)(controller);
shared_ptr<XdmfGrid> returnGrid = referenceController.read();
XDMFGRID * returnPointer;
XDMFGRID * returnPointer = NULL;
if (shared_ptr<XdmfCurvilinearGrid> curvilinearGrid =
shared_dynamic_cast<XdmfCurvilinearGrid>(returnGrid))
{
......
......@@ -213,7 +213,7 @@ XdmfGridTemplate::getNumberGridCollections() const
}
void
XdmfGridTemplate::insert(const shared_ptr<XdmfGridCollection> GridCollection)
XdmfGridTemplate::insert(const shared_ptr<XdmfGridCollection> /*GridCollection*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Attempting to use insert to add an XdmfGridCollection to an XdmfGridTemplate. "
"Use addStep instead of insert to add to an XdmfGridTemplate");
......@@ -236,7 +236,7 @@ XdmfGridTemplate::removeGridCollection(const unsigned int index)
}
void
XdmfGridTemplate::removeGridCollection(const std::string & Name)
XdmfGridTemplate::removeGridCollection(const std::string & /*Name*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Removing Grids by name from XdmfGridTemplate is not supported");
}
......@@ -345,7 +345,7 @@ XdmfGridTemplate::getNumberCurvilinearGrids() const
}
void
XdmfGridTemplate::insert(const shared_ptr<XdmfCurvilinearGrid> CurvilinearGrid)
XdmfGridTemplate::insert(const shared_ptr<XdmfCurvilinearGrid> /*CurvilinearGrid*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Attempting to use insert to add an XdmfCurvilinearGrid to an XdmfGridTemplate. "
"Use addStep instead of insert to add to an XdmfGridTemplate");
......@@ -368,7 +368,7 @@ XdmfGridTemplate::removeCurvilinearGrid(const unsigned int index)
}
void
XdmfGridTemplate::removeCurvilinearGrid(const std::string & Name)
XdmfGridTemplate::removeCurvilinearGrid(const std::string & /*Name*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Removing Grids by name from XdmfGridTemplate is not supported");
}
......@@ -477,7 +477,7 @@ XdmfGridTemplate::getNumberRectilinearGrids() const
}
void
XdmfGridTemplate::insert(const shared_ptr<XdmfRectilinearGrid> RectilinearGrid)
XdmfGridTemplate::insert(const shared_ptr<XdmfRectilinearGrid> /*RectilinearGrid*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Attempting to use insert to add a XdmfRectilinearGrid to an XdmfGridTemplate."
"Use addStep instead of insert to add to an XdmfGridTemplate");
......@@ -500,7 +500,7 @@ XdmfGridTemplate::removeRectilinearGrid(const unsigned int index)
}
void
XdmfGridTemplate::removeRectilinearGrid(const std::string & Name)
XdmfGridTemplate::removeRectilinearGrid(const std::string & /*Name*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Removing Grids by name from XdmfGridTemplate is not supported");
}
......@@ -609,7 +609,7 @@ XdmfGridTemplate::getNumberRegularGrids() const
}
void
XdmfGridTemplate::insert(const shared_ptr<XdmfRegularGrid> RegularGrid)
XdmfGridTemplate::insert(const shared_ptr<XdmfRegularGrid> /*RegularGrid*/)
{
XdmfError::message(XdmfError::FATAL, "Error: Attempting to use insert to add an XdmfRegularGrid to an XdmfGridTemplate."
"Use addStep instead of insert to add to an XdmfGridTemplate");
......@@ -794,7 +794,7 @@ XdmfGridTemplate::populateItem(const std::map<std::string, std::string> & itemPr
if (array->getName().compare("Data Description") == 0) {
// Split description into substrings based on the " character
if (array->getNumberHeavyDataControllers() > 0 & !mHeavyWriter) {
if (array->getNumberHeavyDataControllers() > 0 && !mHeavyWriter) {
mHeavyWriter = reader->generateHeavyDataWriter(array->getHeavyDataController(0)->getName(), array->getHeavyDataController(0)->getFilePath());
}
......
......@@ -411,7 +411,7 @@ XdmfRectilinearGrid::read()
// Copy stucture from read grid to this grid
copyGrid(grid);
}
else if (shared_ptr<XdmfGrid> grid = shared_dynamic_cast<XdmfGrid>(mGridController->read()))
else if (shared_dynamic_cast<XdmfGrid>(mGridController->read()))
{
XdmfError::message(XdmfError::FATAL, "Error: Grid Type Mismatch");
}
......
......@@ -447,7 +447,7 @@ XdmfRegularGrid::read()
// Copy stucture from read grid to this grid
copyGrid(grid);
}
else if (shared_ptr<XdmfGrid> grid = shared_dynamic_cast<XdmfGrid>(mGridController->read()))
else if (shared_dynamic_cast<XdmfGrid>(mGridController->read()))
{
XdmfError::message(XdmfError::FATAL, "Error: Grid Type Mismatch");
}
......
......@@ -28,6 +28,8 @@
#include "XdmfSetType.hpp"
#include "XdmfError.hpp"
#include <sstream>
XDMF_CHILDREN_IMPLEMENTATION(XdmfSet, XdmfAttribute, Attribute, Name)
shared_ptr<XdmfSet>
......@@ -239,8 +241,11 @@ void XdmfSetSetType(XDMFSET * set, int type, int * status)
newType = XdmfSetType::Edge();
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Set Type: Code " + type);
{
std::stringstream sstr;
sstr << "Error: Invalid Set Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
((XdmfSet *)set)->setType(newType);
......
......@@ -170,8 +170,7 @@ XdmfTopology::populateItem(const std::map<std::string, std::string> & itemProper
std::map<std::string, std::string>::const_iterator type =
itemProperties.find("Offset");
if (type != itemProperties.end()) {
std::map<std::string, std::string>::const_iterator type =
itemProperties.find("BaseOffset");
type = itemProperties.find("BaseOffset");
}
if (type != itemProperties.end()) {
// Convert to double
......@@ -466,8 +465,11 @@ void XdmfTopologySetType(XDMFTOPOLOGY * topology, int type, int * status)
newType = XdmfTopologyType::Mixed();
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Topology Type: Code " + type);
{
std::stringstream sstr;
sstr << "Error: Invalid Topology Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
......@@ -593,8 +595,11 @@ void XdmfTopologySetPolyType(XDMFTOPOLOGY * topology, int type, int nodes, int *
newType = XdmfTopologyType::Mixed();
break;
default:
XdmfError::message(XdmfError::FATAL,
"Error: Invalid Topology Type: Code " + type);
{
std::stringstream sstr;
sstr << "Error: Invalid Topology Type: Code " << type;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
break;
}
((XdmfTopology *)topology)->setType(newType);
......
......@@ -285,7 +285,7 @@ XdmfUnstructuredGrid::read()
{
copyGrid(grid);
}
else if (shared_ptr<XdmfGrid> grid = shared_dynamic_cast<XdmfGrid>(mGridController->read()))
else if (shared_dynamic_cast<XdmfGrid>(mGridController->read()))
{
XdmfError::message(XdmfError::FATAL, "Error: Grid Type Mismatch");
}
......
......@@ -17,9 +17,12 @@ if(BUILD_SHARED_LIBS)
set(BUILD_SHARED 1)
endif()
if (FALSE) # XXX(kitware): use target-based include directories
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
endif ()
if (FALSE) # XXX(kitware): VTK's module system handles dependencies
find_package(Boost REQUIRED)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
......@@ -46,6 +49,12 @@ find_package(LibXml2 REQUIRED)
if(LIBXML2_FOUND)
include_directories(${LIBXML2_INCLUDE_DIR})
endif()
else ()
vtk_module_find_package(
PACKAGE Boost
FORWARD_VERSION_REQ EXACT
VERSION_VAR "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@.@Boost_SUBMINOR_VERSION@")
endif ()
# Perform compile-time checks and generate XdmfCoreConfig.hpp
......@@ -103,6 +112,7 @@ else ()
set(FOUND_TIFF_LOCATION "")
endif()
if (FALSE) # XXX(kitware): VTK's module system handles dependencies
set(XdmfCoreSources
core/XdmfArray
core/XdmfArrayReference
......@@ -129,7 +139,9 @@ set(XdmfCoreSources
core/XdmfVisitor
core/XdmfWriter
PARENT_SCOPE)
endif ()
if (FALSE) # XXX(kitware): use VTK's module system.
add_library(XdmfCore ${XdmfCoreSources})
SET_TARGET_PROPERTIES(
XdmfCore PROPERTIES
......@@ -146,11 +158,35 @@ if (TIFF_FOUND)
PRIVATE
${TIFF_LIBRARIES})
endif ()
else ()
set(sources)
foreach (xdmf_core_source IN LISTS XdmfCoreSources)
list(APPEND sources
"${xdmf_core_source}.cpp")
endforeach ()
add_library(vtkxdmfcore ${sources})
target_include_directories(vtkxdmfcore
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../CMake/VersionSuite>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
"$<INSTALL_INTERFACE:${_vtk_build_HEADERS_DESTINATION}/vtkxdfm3/core>")
target_link_libraries(vtkxdmfcore
PUBLIC
VTK::libxml2
Boost::boost
PRIVATE
VTK::hdf5)
_vtk_module_apply_properties(vtkxdmfcore)
_vtk_module_install(vtkxdmfcore)
endif ()
if(WIN32)
#add_definitions(-D_HDF5USEDLL_ -D_HDF5USEHLDLL_)
if (BUILD_SHARED_LIBS)
set_target_properties(XdmfCore PROPERTIES
# XXX(kitware): mangle the library name.
set_target_properties(vtkxdmfcore PROPERTIES
DEFINE_SYMBOL XdmfCore_EXPORTS)
endif()
endif()
......@@ -176,12 +212,21 @@ file(GLOB LokiHeaders loki/*.h)
set(XdmfCoreHeaders
${XdmfCoreHeaders}
${CMAKE_CURRENT_BINARY_DIR}/XdmfCoreConfig.hpp)
if (FALSE)
install(FILES ${XdmfCoreHeaders} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES ${LokiHeaders} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/loki)
install(TARGETS XdmfCore
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
else ()
vtk_module_install_headers(
FILES ${XdmfCoreHeaders}
SUBDIR "vtkxdmf3/core")
vtk_module_install_headers(
FILES ${LokiHeaders}
SUBDIR "vtkxdmf3/core/loki")
endif ()
if (Boost_FOUND)
set(FOUND_BOOST_INCLUDES ${Boost_INCLUDE_DIRS})
......
......@@ -21,8 +21,7 @@
/* */
/*****************************************************************************/
#include <H5public.h>
#include <hdf5.h>
#include <vtk_hdf5.h>
#include <numeric>
#include <sstream>
#include "string.h"
......
......@@ -21,8 +21,7 @@
/* */
/*****************************************************************************/
#include <H5public.h>
#include <hdf5.h>
#include <vtk_hdf5.h>
#include <sstream>
#include <cstdio>
#include <cmath>
......@@ -1532,9 +1531,10 @@ XdmfHDF5Writer::write(XdmfArray & array)
NULL) ;
if(status < 0) {
XdmfError::message(XdmfError::FATAL,
"H5Dset_extent returned failure in "
"XdmfHDF5Writer::write -- status: " + status);
std::stringstream sstr;
sstr << "H5Dset_extent returned failure in "
"XdmfHDF5Writer::write -- status: " << status;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
}
......@@ -1546,9 +1546,10 @@ XdmfHDF5Writer::write(XdmfArray & array)
curArray);
if(status < 0) {
XdmfError::message(XdmfError::FATAL,
"H5Dwrite returned failure in XdmfHDF5Writer::write "
"-- status: " + status);
std::stringstream sstr;
sstr << "H5Dwrite returned failure in XdmfHDF5Writer::write "
"-- status: " << status;
XdmfError::message(XdmfError::FATAL, sstr.str());
}
if(dataspace != H5S_ALL) {
......
......@@ -241,6 +241,7 @@ void XdmfHeavyDataWriterSetMode(XDMFHEAVYDATAWRITER * writer, int mode, int * st
newMode = XdmfHeavyDataWriter::Hyperslab;
break;
default:
newMode = XdmfHeavyDataWriter::Default;
XdmfError::message(XdmfError::FATAL,
"Error: Invalid heavy writer mode.");
}
......
......@@ -37,11 +37,12 @@ class XdmfVisitor;
// Includes
#include <loki/Visitor.h>
#include <libxml/xmlexports.h>
#include <libxml/tree.h>
#include <libxml/uri.h>
#include <libxml/xpointer.h>
#include <libxml/xmlreader.h>
#include "vtk_libxml2.h"
#include VTKLIBXML2_HEADER(xmlexports.h)
#include VTKLIBXML2_HEADER(tree.h)
#include VTKLIBXML2_HEADER(uri.h)
#include VTKLIBXML2_HEADER(xpointer.h)
#include VTKLIBXML2_HEADER(xmlreader.h)
#include <map>
#include <set>
#include <string>
......
......@@ -21,7 +21,7 @@
/* */
/*****************************************************************************/
#include <hdf5.h>
#include <vtk_hdf5.h>
#include <sstream>
#include "XdmfArray.hpp"
#include "XdmfArrayType.hpp"
......
......@@ -21,7 +21,8 @@
/* */
/*****************************************************************************/
#include <libxml/uri.h>
#include "vtk_libxml2.h"
#include VTKLIBXML2_HEADER(uri.h)
#include <limits.h>
#include <stdlib.h>
#include "XdmfSystemUtils.hpp"
......
......@@ -56,8 +56,7 @@
#include <XdmfError.hpp>
#include <mpi.h>
#include <H5public.h>
#include <hdf5.h>
#include <vtk_hdf5.h>
#include <sstream>
#include <map>
......
......@@ -21,8 +21,7 @@
/* */
/*****************************************************************************/
#include <H5public.h>
#include <hdf5.h>
#include <vtk_hdf5.h>
#include "XdmfArray.hpp"
#include "XdmfArrayType.hpp"
#include "XdmfHDF5ControllerDSM.hpp"
......
......@@ -21,7 +21,7 @@
/* */
/*****************************************************************************/
#include <hdf5.h>
#include <vtk_hdf5.h>
#include <XdmfArray.hpp>
#include <XdmfDSMCommMPI.hpp>
#include <XdmfDSMBuffer.hpp>
......