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 {
extern "C" {
#include <metis.h>
#include <metis5.h>
#if METIS_VER_MAJOR >= 5
#define METIS5
typedef idx_t idxtype;
#else
#define METIS4
typedef idxtype idx_t;
typedef idxtype idx_t;
#endif
}
}
@ -797,16 +797,16 @@ namespace netgen
int nparts = ntasks-1;
int edgecut;
/*
int ncommon = 3;
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,
&edgecut, &epart[0], &npart[0]);
*/
PrintMessage (3, "metis complete");
// 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_LocalGroup;
@ -299,7 +299,7 @@ namespace netgen
NgProfiler::StopTimer (timere);
MPI_Barrier (MPI_LocalComm);
// MPI_Barrier (MPI_LocalComm);
if (mesh.GetDimension() == 3)