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