Commit 3e2a2f64 by Amaury Johnen

do not try to search for a scalar size field when using bamg algo

parent 7aa01607
Pipeline #209 passed with stage
in 8 minutes 46 seconds
......@@ -1411,7 +1411,7 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
}
// compute characteristic lengths at vertices
if (!onlyInitialMesh){
if (CTX::instance()->mesh.algo2d != ALGO_2D_BAMG && !onlyInitialMesh){
Msg::Debug("Computing mesh size field at mesh vertices %d",
edgesToRecover.size());
std::set<BDS_Point*, PointLessThan>::iterator it = m->points.begin();
......
......@@ -1008,7 +1008,10 @@ static bool insertAPoint(GFace *gf,
int index1 = data.getIndex(ptin->tri()->getVertex(1));
int index2 = data.getIndex(ptin->tri()->getVertex(2));
lc1 = (1. - uv[0] - uv[1]) * data.vSizes[index0] + uv[0] * data.vSizes[index1] + uv[1] * data.vSizes[index2];
lc = BGM_MeshSize(gf, center[0], center[1], p.x(), p.y(), p.z());
if (CTX::instance()->mesh.algo2d == ALGO_2D_BAMG)
lc = 1.;
else
lc = BGM_MeshSize(gf, center[0], center[1], p.x(), p.y(), p.z());
//SMetric3 metr = BGM_MeshMetric(gf, center[0], center[1], p.x(), p.y(), p.z());
// vMetricsBGM.push_back(metr);
......
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 sign in to comment