From b2f9236d4d85f6399739691de8b0d8e2fa19e88d Mon Sep 17 00:00:00 2001 From: Thomas Toulorge <thomas.toulorge@mines-paristech.fr> Date: Wed, 13 Feb 2013 18:10:52 +0000 Subject: [PATCH] Cleaned up inappropriate comments about metric intersection --- Geo/STensor3.cpp | 2 +- Mesh/BackgroundMesh.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Geo/STensor3.cpp b/Geo/STensor3.cpp index a42faf2d49..4a61ce2f6b 100644 --- a/Geo/STensor3.cpp +++ b/Geo/STensor3.cpp @@ -37,7 +37,7 @@ SMetric3 intersection (const SMetric3 &m1, const SMetric3 &m2) double l2 = std::max(dot(v2,m1,v2),dot(v2,m2,v2)); // Correction from the PhD thesis of Frederic Alauzet p.16 - // If m2 = alpha*m1, then take the largest metric (incoherent with definition intersection) + // If m2 = alpha*m1, then take the largest metric static const double eps = 1.e-2; // Tolerance to detect triple eigenvalue (i.e. proportional metrics) const double max_eig = std::max(S(0), std::max(S(1), S(2))); const double min_eig = std::min(S(0), std::min(S(1), S(2))); diff --git a/Mesh/BackgroundMesh.cpp b/Mesh/BackgroundMesh.cpp index d72e946bd9..5100de89c8 100644 --- a/Mesh/BackgroundMesh.cpp +++ b/Mesh/BackgroundMesh.cpp @@ -400,8 +400,7 @@ double BGM_MeshSize(GEntity *ge, double U, double V, } -// anisotropic version of the background field - for now, only works -// with bamg in 2D, work in progress +// anisotropic version of the background field SMetric3 BGM_MeshMetric(GEntity *ge, double U, double V, double X, double Y, double Z) @@ -445,7 +444,7 @@ SMetric3 BGM_MeshMetric(GEntity *ge, } bool Extend1dMeshIn2dSurfaces() -{ +{rm return CTX::instance()->mesh.lcExtendFromBoundary ? true : false; } -- GitLab