Commit 5579508c authored by Kirill Terekhov's avatar Kirill Terekhov

measure time in partitioner test

parent a05295d3
......@@ -139,12 +139,18 @@ int main(int argc,char ** argv)
}
else if( itype >= 0 )
{
double t0 = Timer();
Partitioner * p = new Partitioner(m);
p->SetMethod(type,action); // Specify the partitioner
p->Evaluate(); // Compute the partitioner and store new processor ID in the mesh
t0 = m->AggregateMax(Timer()-t0);
if( m->GetProcessorRank() == 0 ) std::cout << "Color: " << t0 << std::endl;
delete p;
m->RemoveGhost(); // Delete all ghost cells
t0 = Timer();
m->Redistribute(); // Redistribute the mesh data
t0 = m->AggregateMax(Timer()-t0);
if( m->GetProcessorRank() == 0 ) std::cout << "Distribute: " << t0 << std::endl;
m->ReorderEmpty(CELL|FACE|EDGE|NODE); // Clean the data after reordring
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment