Commit 5b0dd29c authored by Dave Moxey's avatar Dave Moxey

Initial implementation of ptscotch for distributed partitioning

parent d89eef6b
......@@ -236,6 +236,7 @@ INCLUDE (ThirdPartyTinyxml)
INCLUDE (ThirdPartyMetis)
INCLUDE (ThirdPartyHDF5)
INCLUDE (ThirdPartyScotch)
INCLUDE (ThirdPartyPtScotch)
INCLUDE (ThirdPartyZlib)
INCLUDE (ThirdPartyBoost)
INCLUDE (ThirdPartyFFTW)
......
......@@ -469,6 +469,18 @@ void DataSpace::AppendRange(const hsize_t start, const hsize_t count)
H5_CALL(H5Sselect_hyperslab,
(m_Id, H5S_SELECT_OR, &start, NULL, &count, NULL));
}
void DataSpace::SelectRange(const std::vector<hsize_t> start,
const std::vector<hsize_t> count)
{
H5_CALL(H5Sselect_hyperslab,
(m_Id, H5S_SELECT_SET, &start[0], NULL, &count[0], NULL));
}
void DataSpace::AppendRange(const std::vector<hsize_t> start,
const std::vector<hsize_t> count)
{
H5_CALL(H5Sselect_hyperslab,
(m_Id, H5S_SELECT_OR, &start[0], NULL, &count[0], NULL));
}
hsize_t DataSpace::GetSize()
{
......
......@@ -325,9 +325,15 @@ public:
~DataSpace();
void Close();
void SelectRange(const hsize_t start, const hsize_t count);
void AppendRange(const hsize_t start, const hsize_t count);
void SelectRange(const std::vector<hsize_t> start,
const std::vector<hsize_t> count);
void AppendRange(const std::vector<hsize_t> start,
const std::vector<hsize_t> count);
hsize_t GetSize();
std::vector<hsize_t> GetDims();
......
......@@ -81,5 +81,11 @@ IF( NEKTAR_USE_SCOTCH )
ADD_DEPENDENCIES(SpatialDomains scotch-6.0.4)
ENDIF ()
IF( NEKTAR_USE_PTSCOTCH )
TARGET_LINK_LIBRARIES(SpatialDomains LINK_PRIVATE
${PTSCOTCH_LIBRARY} ${PTSCOTCHERR_LIBRARY})
ADD_DEPENDENCIES(SpatialDomains ptscotch-6.0.4)
ENDIF ()
INSTALL(DIRECTORY ./ DESTINATION ${NEKTAR_INCLUDE_DIR}/SpatialDomains
COMPONENT dev FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
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