This commit is contained in:
Joachim Schoeberl 2012-09-28 12:39:41 +00:00
parent 9f8155d305
commit 17e36e2659
2 changed files with 7 additions and 7 deletions

View File

@ -10,14 +10,14 @@
namespace metis { namespace metis {
extern "C" { extern "C" {
#include <metis.h> #include <metis5.h>
#if METIS_VER_MAJOR >= 5 #if METIS_VER_MAJOR >= 5
#define METIS5 #define METIS5
typedef idx_t idxtype; typedef idx_t idxtype;
#else #else
#define METIS4 #define METIS4
typedef idxtype idx_t; typedef idxtype idx_t;
#endif #endif
} }
} }
@ -797,16 +797,16 @@ namespace netgen
int nparts = ntasks-1; int nparts = ntasks-1;
int edgecut; int edgecut;
/*
int ncommon = 3; int ncommon = 3;
METIS_PartMeshDual (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &ncommon, &nparts, METIS_PartMeshDual (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &ncommon, &nparts,
NULL, NULL, NULL, NULL,
&edgecut, &epart[0], &npart[0]); &edgecut, &epart[0], &npart[0]);
*/ /*
METIS_PartMeshNodal (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &nparts, METIS_PartMeshNodal (&ne, &nn, &eptr[0], &eind[0], NULL, NULL, &nparts,
NULL, NULL, NULL, NULL,
&edgecut, &epart[0], &npart[0]); &edgecut, &epart[0], &npart[0]);
*/
PrintMessage (3, "metis complete"); PrintMessage (3, "metis complete");
// cout << "done" << endl; // cout << "done" << endl;

View File

@ -218,7 +218,7 @@ namespace netgen
MPI_Barrier (MPI_COMM_WORLD); // MPI_Barrier (MPI_COMM_WORLD);
MPI_Group MPI_GROUP_WORLD; MPI_Group MPI_GROUP_WORLD;
MPI_Group MPI_LocalGroup; MPI_Group MPI_LocalGroup;
@ -299,7 +299,7 @@ namespace netgen
NgProfiler::StopTimer (timere); NgProfiler::StopTimer (timere);
MPI_Barrier (MPI_LocalComm); // MPI_Barrier (MPI_LocalComm);
if (mesh.GetDimension() == 3) if (mesh.GetDimension() == 3)