mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
parallel tuninig
This commit is contained in:
parent
f0f57bfa52
commit
edd41fbf68
@ -72,7 +72,7 @@
|
||||
{
|
||||
bool parthread = netgen::mparam.parthread;
|
||||
|
||||
// if (netgen::id > 0) parthread = false;
|
||||
// if (netgen::id > 0) parthread = true;
|
||||
if (netgen::ntasks > 1) parthread = false;
|
||||
|
||||
if (parthread)
|
||||
|
@ -641,7 +641,6 @@ namespace netgen
|
||||
|
||||
SetNextMajorTimeStamp();
|
||||
// paralleltop->Print();
|
||||
cout << "receive mesh complete, id = " << id << endl;
|
||||
}
|
||||
|
||||
|
||||
|
@ -442,7 +442,6 @@ namespace netgen
|
||||
|
||||
|
||||
*testout << "ParallelMeshTopology :: UpdateCoarseGridGlobal" << endl;
|
||||
cout << "update global, id = " << id << endl;
|
||||
|
||||
const MeshTopology & topology = mesh.GetTopology();
|
||||
|
||||
@ -539,7 +538,6 @@ namespace netgen
|
||||
else
|
||||
MyMPI_Bcast ( recvarray );
|
||||
|
||||
cout << "have done bcast, id = " << id << endl;
|
||||
|
||||
if (id != 0)
|
||||
{
|
||||
@ -630,9 +628,6 @@ namespace netgen
|
||||
*testout << "l2d - sel = " << loc2distsurfel << endl;
|
||||
}
|
||||
|
||||
MPI_Barrier (MPI_COMM_WORLD);
|
||||
cout << "update global complete, id = " << id << endl;
|
||||
MPI_Barrier (MPI_COMM_WORLD);
|
||||
coarseupdate = 1;
|
||||
}
|
||||
|
||||
@ -643,7 +638,6 @@ namespace netgen
|
||||
|
||||
void ParallelMeshTopology :: UpdateCoarseGrid ()
|
||||
{
|
||||
cout << "updatecoarsegrid, id = " << id << endl;
|
||||
static int timer = NgProfiler::CreateTimer ("UpdateCoarseGrid");
|
||||
NgProfiler::RegionTimer reg(timer);
|
||||
|
||||
@ -687,12 +681,6 @@ namespace netgen
|
||||
Array<int,1> glob2loc;
|
||||
Array<int> cnt_send(ntasks-1);
|
||||
|
||||
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
cout << "before ex edges" << endl;
|
||||
*testout << "before ex edges" << endl;
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
|
||||
NgProfiler::StartTimer (timere);
|
||||
|
||||
// exchange edges
|
||||
@ -765,9 +753,7 @@ namespace netgen
|
||||
|
||||
NgProfiler::StopTimer (timere);
|
||||
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
cout << "before ex faces" << endl;
|
||||
*testout << "before ex faces" << endl;
|
||||
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
|
||||
if (mesh.GetDimension() == 3)
|
||||
@ -837,11 +823,6 @@ namespace netgen
|
||||
NgProfiler::StopTimer (timerf);
|
||||
}
|
||||
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
cout << "after ex faces" << endl;
|
||||
*testout << "after ex faces" << endl;
|
||||
MPI_Barrier (MPI_HIGHORDER_COMM);
|
||||
|
||||
|
||||
// set which elements are where for the master processor
|
||||
|
||||
|
@ -1159,7 +1159,6 @@ namespace netgen
|
||||
|
||||
|
||||
#ifdef PARALLEL
|
||||
cout << "is par = " << int(isparallel) << ", id = " << id << endl;
|
||||
if (mesh.GetDimension() == 3)
|
||||
if (isparallel != (id != 0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user