Skip to content
Snippets Groups Projects
Commit 4afa96c8 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'issue/face-measure-calculation' into 'develop'

Fix face area/length calculation (used the obsolete L2Norm function)

See merge request !109
parents 590ee9b8 9d377774
No related branches found
No related tags found
1 merge request!109Fix face area/length calculation (used the obsolete L2Norm function)
...@@ -85,7 +85,7 @@ class MeshData : public IMeshData ...@@ -85,7 +85,7 @@ class MeshData : public IMeshData
FaceValue<double> ll{m_mesh.connectivity()}; FaceValue<double> ll{m_mesh.connectivity()};
parallel_for( parallel_for(
m_mesh.numberOfFaces(), PUGS_LAMBDA(FaceId face_id) { ll[face_id] = L2Norm(Nl[face_id]); }); m_mesh.numberOfFaces(), PUGS_LAMBDA(FaceId face_id) { ll[face_id] = l2Norm(Nl[face_id]); });
m_ll = ll; m_ll = ll;
} }
...@@ -103,7 +103,6 @@ class MeshData : public IMeshData ...@@ -103,7 +103,6 @@ class MeshData : public IMeshData
FaceValue<Rd> nl{m_mesh.connectivity()}; FaceValue<Rd> nl{m_mesh.connectivity()};
const auto& face_to_node_matrix = m_mesh.connectivity().faceToNodeMatrix();
parallel_for( parallel_for(
m_mesh.numberOfFaces(), PUGS_LAMBDA(FaceId face_id) { nl[face_id] = (1. / ll[face_id]) * Nl[face_id]; }); m_mesh.numberOfFaces(), PUGS_LAMBDA(FaceId face_id) { nl[face_id] = (1. / ll[face_id]) * Nl[face_id]; });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment