Commit dedca4f9 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

Speedup general mesh refinement algorithm

parent 71b0eec2
......@@ -174,6 +174,16 @@ namespace INMOST
return success;
}
Storage::real compute_measure(ElementArray<T> & data)
{
Storage::real measure = 0, tmp;
for(int k = 1; k < data.size(); ++k)
{
mesh->GetGeometricData(data[k].GetHandle(),MEASURE,&tmp);
measure += tmp;
}
return measure;
}
Storage::real compute_measure_vol(ElementArray<T> & data)
{
Storage::real measure = 0;
if( data[0]->GetElementDimension() == 1 ) //this is edge //use geometric dimension here for 2d compatibility
......
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