diff --git a/Mesh/BackgroundMesh.cpp b/Mesh/BackgroundMesh.cpp index 8d087366ba6ab34c5daa1cfe86a383d938a6a031..abc45eded11a52f1ad3522f093467b668ca0dddd 100644 --- a/Mesh/BackgroundMesh.cpp +++ b/Mesh/BackgroundMesh.cpp @@ -1,4 +1,4 @@ -// $Id: BackgroundMesh.cpp,v 1.49 2008-04-01 12:47:10 geuzaine Exp $ +// $Id: BackgroundMesh.cpp,v 1.50 2008-04-01 16:04:14 geuzaine Exp $ // // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // @@ -187,10 +187,6 @@ double BGM_MeshSize(GEntity *ge, double U, double V, double X, double Y, double bool Extend1dMeshIn2dSurfaces() { - // never extend the 1d mesh in surfaces if there is a background - // field - if(GModel::current()->getFields()->background_field != -1) return false; - return CTX.mesh.lc_extend_from_boundary ? true : false; } diff --git a/benchmarks/2d/Square-Attr1.geo b/benchmarks/2d/Square-Attr1.geo index d039e77cd67e9c41a7638ec2ff1acd896dacc197..69e623cf4f18b381ae801f2ed9cc6ff9ccbf9a1a 100644 --- a/benchmarks/2d/Square-Attr1.geo +++ b/benchmarks/2d/Square-Attr1.geo @@ -26,5 +26,5 @@ Field[2].DistMax = 0.3; Background Field = 2; -// comment this to NOT take into account lc/200 at Point(2): -Mesh.ConstrainedBackgroundMesh = 1; +Mesh.CharacteristicLengthFromPoints = 0; +Mesh.CharacteristicLengthExtendFromBoundary = 0;