IF(SALOME_USE_MPI)
FIND_PACKAGE(SalomeMPI REQUIRED)
+ IF(SALOME_MED_PARTITIONER_PARMETIS)
+ FIND_PACKAGE(SalomeParMetis REQUIRED)
+ ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
ENDIF(SALOME_USE_MPI)
IF(SALOME_BUILD_DOC)
#
SET(admlocal_cmake_DATA
- FindMED.cmake
FindXDR.cmake
FindMetis.cmake
FindSalomeMetis.cmake
- FindPARMETIS.cmake
- FindRENUMBER.cmake
+ FindParMetis.cmake
+ FindSalomeParMetis.cmake
FindScotch.cmake
FindSalomeScotch.cmake
- FindSPLITTER.cmake
)
INSTALL(FILES ${admlocal_cmake_DATA} DESTINATION ${SALOME_INSTALL_CMAKE_LOCAL})
+++ /dev/null
-# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-SET(MED_CXXFLAGS -I${MED_ROOT_DIR}/include/salome)
-
-FIND_LIBRARY(interpkernel interpkernel ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(InterpKernelTest InterpKernelTest ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MEDClientcmodule MEDClientcmodule ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medcouplingclient medcouplingclient ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medcouplingcorba medcouplingcorba ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medcouplingremapper medcouplingremapper ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medcoupling medcoupling ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MEDEngine MEDEngine ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medloader medloader ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MEDMEMCppTest MEDMEMCppTest ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MEDMEMImpl MEDMEMImpl ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medmem medmem ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MED MED ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(medsplitter medsplitter ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(MEDSPLITTERTest MEDSPLITTERTest ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(med_V2_1 med_V2_1 ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(paramedcouplingcorba paramedcouplingcorba ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(paramedloader paramedloader ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(paramedmemcompo paramedmemcompo ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(paramedmem paramedmem ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(ParaMEDMEMTest ParaMEDMEMTest ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(SalomeIDLMED SalomeIDLMED ${MED_ROOT_DIR}/lib/salome)
-FIND_LIBRARY(SalomeIDLMEDTests SalomeIDLMEDTests ${MED_ROOT_DIR}/lib/salome)
--- /dev/null
+# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+# ------
+
+MESSAGE(STATUS "Check for parmetis ...")
+
+SET(PARMETIS_ROOT_DIR $ENV{PARMETIS_ROOT_DIR} CACHE PATH "Path to the PARMETIS.")
+IF(PARMETIS_ROOT_DIR)
+ LIST(APPEND CMAKE_LIBRARY_PATH "${PARMETIS_ROOT_DIR}")
+ LIST(APPEND CMAKE_INCLUDE_PATH "${PARMETIS_ROOT_DIR}/Lib")
+ENDIF(PARMETIS_ROOT_DIR)
+
+FIND_LIBRARY(PARMETIS_LIBRARIES parmetis)
+FIND_LIBRARY(PARMETIS_SEQ_LIBRARIES metis)
+SET(PARMETIS_LIBRARIES ${PARMETIS_LIBRARIES} ${PARMETIS_SEQ_LIBRARIES})
+FIND_PATH(PARMETIS_INCLUDE_DIRS parmetis.h)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ParMetis REQUIRED_VARS PARMETIS_INCLUDE_DIRS PARMETIS_LIBRARIES)
+++ /dev/null
-# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-# ------
-
-MESSAGE(STATUS "Check for renumber activation ...")
-
-# ------
-
-IF(RENUMBER_IS_MANDATORY STREQUAL 0)
- SET(RENUMBER_IS_MANDATORY 0)
- SET(RENUMBER_IS_OPTIONAL 1)
-ENDIF(RENUMBER_IS_MANDATORY STREQUAL 0)
-IF(RENUMBER_IS_OPTIONAL STREQUAL 0)
- SET(RENUMBER_IS_MANDATORY 1)
- SET(RENUMBER_IS_OPTIONAL 0)
-ENDIF(RENUMBER_IS_OPTIONAL STREQUAL 0)
-IF(NOT RENUMBER_IS_MANDATORY AND NOT RENUMBER_IS_OPTIONAL)
- SET(RENUMBER_IS_MANDATORY 0)
- SET(RENUMBER_IS_OPTIONAL 1)
-ENDIF(NOT RENUMBER_IS_MANDATORY AND NOT RENUMBER_IS_OPTIONAL)
-
-# ------
-
-SET(MED_ENABLE_RENUMBER 1)
-IF(WITHOUT_RENUMBER OR WITH_RENUMBER STREQUAL 0)
- SET(MED_ENABLE_RENUMBER 0)
- MESSAGE(STATUS "renumber disabled from command line.")
-ENDIF(WITHOUT_RENUMBER OR WITH_RENUMBER STREQUAL 0)
+++ /dev/null
-# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-# ------
-
-MESSAGE(STATUS "Check for splitters activation ...")
-
-# ------
-
-IF(SPLITTER_IS_MANDATORY STREQUAL 0)
- SET(SPLITTER_IS_MANDATORY 0)
- SET(SPLITTER_IS_OPTIONAL 1)
-ENDIF(SPLITTER_IS_MANDATORY STREQUAL 0)
-IF(SPLITTER_IS_OPTIONAL STREQUAL 0)
- SET(SPLITTER_IS_MANDATORY 1)
- SET(SPLITTER_IS_OPTIONAL 0)
-ENDIF(SPLITTER_IS_OPTIONAL STREQUAL 0)
-IF(NOT SPLITTER_IS_MANDATORY AND NOT SPLITTER_IS_OPTIONAL)
- SET(SPLITTER_IS_MANDATORY 0)
- SET(SPLITTER_IS_OPTIONAL 1)
-ENDIF(NOT SPLITTER_IS_MANDATORY AND NOT SPLITTER_IS_OPTIONAL)
-
-# ------
-
-SET(MED_ENABLE_SPLITTER 1)
-IF(WITHOUT_SPLITTER OR WITH_SPLITTER STREQUAL 0)
- SET(MED_ENABLE_SPLITTER 0)
- MESSAGE(STATUS "splitter disabled from command line.")
-ENDIF(WITHOUT_SPLITTER OR WITH_SPLITTER STREQUAL 0)
--- /dev/null
+# Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# Author: Adrien Bruneton
+#
+
+# Medfile detection dor Salome
+#
+# !! Please read the generic detection procedure in SalomeMacros.cmake !!
+#
+
+SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(ParMetis METIS_ROOT_DIR_EXP 0)
+#MARK_AS_ADVANCED()
INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
ENDIF(SALOME_MED_PARTITIONER_METIS)
-IF(MED_ENABLE_PARMETIS)
+IF(SALOME_MED_PARTITIONER_PARMETIS)
ADD_DEFINITIONS(${PARMETIS_DEFINITIONS})
+ ADD_DEFINITIONS("-DMED_ENABLE_PARMETIS")
+ ADD_DEFINITIONS("-DMED_ENABLE_METIS")
INCLUDE_DIRECTORIES(${PARMETIS_INCLUDE_DIRS})
-ENDIF(MED_ENABLE_PARMETIS)
+ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
IF(SALOME_USE_MPI)
ADD_DEFINITIONS(${MPI_DEFINITIONS})
medcoupling
medloader
)
-IF(MED_ENABLE_PARMETIS)
+IF(SALOME_MED_PARTITIONER_PARMETIS)
SET(medpartitionercpp_HEADERS_HXX ${medpartitionercpp_HEADERS_HXX} MEDPARTITIONER_ParMetisGraph.hxx)
- SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_ParMetisGraph.cxx)
+ SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_ParMetisGraph.cxx MEDPARTITIONER_MetisGraph.cxx)
SET(medpartitionercpp_DEFINITIONS "${medpartitionercpp_DEFINITIONS} ${PARMETIS_DEFINITIONS}")
- SET(medpartitionercpp_LDFLAGS ${medpartitionercpp_LDFLAGS} ${PARMETIS_LIBS})
-ENDIF(MED_ENABLE_PARMETIS)
+ SET(medpartitionercpp_LDFLAGS ${medpartitionercpp_LDFLAGS} ${PARMETIS_LIBRARIES})
+ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
IF(SALOME_MED_PARTITIONER_METIS)
SET(medpartitionercpp_HEADERS_HXX ${medpartitionercpp_HEADERS_HXX} MEDPARTITIONER_MetisGraph.hxx)
SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_MetisGraph.cxx)
#include "MEDPARTITIONER_metis.h"
-#if defined(MED_ENABLE_METIS)
+#if defined(MED_ENABLE_METIS) & !defined(MED_ENABLE_PARMETIS)
#include "defs.h"
#include "struct.h"
#include "metis.h"
SET(MEDPARTITIONERTest_LDFLAGS medpartitionercpp ${CPPUNIT_LIBRARIES})
IF(SALOME_USE_MPI)
- IF(MED_ENABLE_PARMETIS)
+ IF(SALOME_MED_PARTITIONER_PARMETIS)
SET(MEDPARTITIONERTest_SOURCES ${MEDPARTITIONERTest_SOURCES} MEDPARTITIONERTestPara.cxx)
- ENDIF(MED_ENABLE_PARMETIS)
+ ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
ENDIF(SALOME_USE_MPI)
ADD_LIBRARY(MEDPARTITIONERTest SHARED ${MEDPARTITIONERTest_SOURCES})