mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
set DPARALLEL when -enable-parallel is used
This commit is contained in:
parent
a675090b4a
commit
a5ed3f8159
@ -92,7 +92,8 @@ AC_ARG_WITH([metis],
|
||||
|
||||
AC_ARG_ENABLE([parallel],
|
||||
[AC_HELP_STRING([--enable-parallel],[enable mpi parallelization])],
|
||||
[AC_SUBST([MPI_INCLUDES], "-DPARALLEL -I$metisdir/include -DMETIS")]
|
||||
[AC_SUBST([MPI_INCLUDES], "-I$metisdir/include -DMETIS")]
|
||||
[CXXFLAGS="$CXXFLAGS -DPARALLEL"]
|
||||
[AC_SUBST([MPI_LIBS], "-L$metisdir/lib -lmetis")]
|
||||
)
|
||||
# -DVTRACE
|
||||
|
@ -10,7 +10,7 @@
|
||||
namespace metis {
|
||||
extern "C" {
|
||||
|
||||
#include <metis.h>
|
||||
#include <metis5.h>
|
||||
|
||||
#if METIS_VER_MAJOR >= 5
|
||||
#define METIS5
|
||||
@ -802,6 +802,7 @@ namespace netgen
|
||||
METIS_PartMeshDual (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &ncommon, &nparts,
|
||||
NULL, NULL,
|
||||
&edgecut, &epart[0], &npart[0]);
|
||||
|
||||
/*
|
||||
METIS_PartMeshNodal (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &nparts,
|
||||
NULL, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user