-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2012 CEA/DEN, EDF R&D
#
-# 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 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.
+# 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
+# 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
-#
-# MED MEDMEM : MED files in memory
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
include $(top_srcdir)/adm_local/unix/make_common_starter.am
MEDSPLITTER_API.hxx \
MEDSPLITTER_SequentialTopology.hxx \
MEDSPLITTER_utils.hxx \
-MEDSPLITTER.hxx
+MEDSPLITTER.hxx \
+MEDSPLITTER_ParaDomainSelector.hxx \
+MEDSPLITTER_MeshSendReceive.hxx \
+MEDSPLITTER_JointExchangeData.hxx
if MED_ENABLE_METIS
salomeinclude_HEADERS+= MEDSPLITTER_METISGraph.hxx
MEDSPLITTER_ParallelTopology.cxx \
MEDSPLITTER_Graph.cxx\
MEDSPLITTER_UserGraph.cxx\
-MEDSPLITTER_API.cxx
+MEDSPLITTER_API.cxx \
+MEDSPLITTER_ParaDomainSelector.cxx \
+MEDSPLITTER_MeshSendReceive.cxx \
+MEDSPLITTER_JointExchangeData.cxx
+if MPI_IS_OK
+if MED_ENABLE_PARMETIS
+ dist_libmedsplitter_la_SOURCES+= MEDSPLITTER_METISGraph.cxx
+endif
+else !MPI_IS_OK
if MED_ENABLE_METIS
dist_libmedsplitter_la_SOURCES+= MEDSPLITTER_METISGraph.cxx
endif
+endif
if MED_ENABLE_SCOTCH
dist_libmedsplitter_la_SOURCES+= MEDSPLITTER_SCOTCHGraph.cxx
endif
-libmedsplitter_la_CPPFLAGS= $(MED2_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
- $(BOOST_CPPFLAGS) $(LIBXML_CPPFLAGS) \
- -I$(srcdir)/../MEDMEM -I$(srcdir)/../MEDWrapper/V2_1/Core
-libmedsplitter_la_LDFLAGS= $(MED2_LIBS) $(HDF5_LIBS) $(STDLIB) $(LIBXML_LIBS) \
- ../MEDMEM/libmedmem.la ../MEDWrapper/V2_1/Core/libmed_V2_1.la
+libmedsplitter_la_CPPFLAGS= $(MPI_INCLUDES) $(MED3_INCLUDES) $(HDF5_INCLUDES) \
+ $(BOOST_CPPFLAGS) $(LIBXML_INCLUDES) \
+ -I$(srcdir)/../MEDMEM \
+ -I$(srcdir)/../INTERP_KERNEL \
+ -I$(srcdir)/../INTERP_KERNEL/Bases \
+ -I$(srcdir)/../INTERP_KERNEL/GaussPoints
-if MED_ENABLE_KERNEL
- libmedsplitter_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
- libmedsplitter_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace
+libmedsplitter_la_LDFLAGS=
+#libmedsplitter_la_LDFLAGS= $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(STDLIB) $(LIBXML_LIBS) \
+# ../MEDMEM/libmedmem.la ../MEDWrapper/V2_1/Core/libmed_V2_1.la
+
+if MPI_IS_OK
+if MED_ENABLE_PARMETIS
+ libmedsplitter_la_CPPFLAGS+= $(PARMETIS_CPPFLAGS)
+ libmedsplitter_la_LDFLAGS+= $(PARMETIS_LIBS)
endif
+else !MPI_IS_OK
if MED_ENABLE_METIS
libmedsplitter_la_CPPFLAGS+= $(METIS_CPPFLAGS)
libmedsplitter_la_LDFLAGS+= $(METIS_LIBS)
endif
+endif
if MED_ENABLE_SCOTCH
libmedsplitter_la_CPPFLAGS+= $(SCOTCH_CPPFLAGS)
libmedsplitter_la_LDFLAGS+= $(SCOTCH_LIBS)
endif
+if MED_ENABLE_KERNEL
+ libmedsplitter_la_CPPFLAGS+= $(BOOST_CPPFLAGS)
+ libmedsplitter_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace $(BOOST_LIBS)
+endif
+
+libmedsplitter_la_CXXFLAGS = @CXXTMPDPTHFLAGS@
+
+libmedsplitter_la_LDFLAGS+= $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(STDLIB) $(LIBXML_LIBS) $(MPI_LIBS) \
+ ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la
# Executables targets
bin_PROGRAMS= medsplitter
dist_medsplitter_SOURCES= medsplitter.cxx
medsplitter_CPPFLAGS= $(libmedsplitter_la_CPPFLAGS)
-medsplitter_LDADD= $(libmedsplitter_la_LDFLAGS) -lm $(BOOST_LIBS) libmedsplitter.la
+
+medsplitter_LDADD= $(libmedsplitter_la_LDFLAGS) -lm libmedsplitter.la
if MED_ENABLE_KERNEL
medsplitter_LDADD+= -lSALOMEBasics
endif
+if MPI_IS_OK
+ bin_PROGRAMS+=medsplitter_para
+ dist_medsplitter_para_SOURCES= medsplitter_para.cxx
+ medsplitter_para_CPPFLAGS= $(medsplitter_CPPFLAGS)
+ medsplitter_para_LDADD= $(medsplitter_LDADD)
+ medsplitter_para_CXXFLAGS=@CXXTMPDPTHFLAGS@
+endif
+
+medsplitter_CXXFLAGS = @CXXTMPDPTHFLAGS@
+
OBSOLETE_FILES = \
MEDSPLITTER_SequentialTopology.cxx \
test_HighLevelAPI.cxx