mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
metis 5
This commit is contained in:
parent
9f8155d305
commit
17e36e2659
@ -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;
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user