diff --git a/Mesh/Makefile b/Mesh/Makefile index ac91f8f3bd4319bb9d037423f5db5812b8576759..a2061a6dbb327115ec2f74dc81eba53081feace4 100644 --- a/Mesh/Makefile +++ b/Mesh/Makefile @@ -106,20 +106,20 @@ Field.o: Field.cpp ../Common/Context.h ../Geo/CGNSOptions.h \ ../Geo/SBoundingBox3d.h ../Common/Message.h ../Post/OctreePost.h \ ../Common/Octree.h ../Common/OctreeInternals.h ../Post/PViewDataList.h \ ../Post/PViewData.h -meshGEdge.o: meshGEdge.cpp meshGEdge.h ../Geo/GEdge.h ../Geo/GEntity.h \ - ../Geo/Range.h ../Geo/SPoint3.h ../Geo/SBoundingBox3d.h \ - ../Geo/SPoint3.h ../Geo/GVertex.h ../Geo/GEntity.h ../Geo/GPoint.h \ - ../Geo/SPoint2.h ../Geo/SVector3.h ../Geo/SPoint3.h ../Geo/SPoint3.h \ - ../Geo/SPoint2.h ../Geo/MElement.h ../Common/GmshDefines.h \ - ../Geo/MVertex.h ../Geo/SPoint3.h ../Geo/MEdge.h ../Geo/MVertex.h \ - ../Geo/SVector3.h ../Geo/MFace.h ../Geo/MVertex.h ../Geo/SVector3.h \ - BackgroundMesh.h ../Numeric/Numeric.h ../Numeric/NumericEmbedded.h \ - ../Common/Message.h ../Common/ListUtils.h ../Common/Context.h \ - ../Geo/CGNSOptions.h ../Mesh/PartitionOptions.h ../Geo/GModel.h \ - ../Geo/GVertex.h ../Geo/GEdge.h ../Geo/GFace.h ../Geo/GEntity.h \ - ../Geo/GPoint.h ../Geo/GEdgeLoop.h ../Geo/GEdge.h ../Geo/SPoint2.h \ - ../Geo/SVector3.h ../Geo/Pair.h ../Geo/GRegion.h ../Geo/GEntity.h \ - ../Geo/SPoint3.h ../Geo/SBoundingBox3d.h +meshGEdge.o: meshGEdge.cpp ../Geo/GModel.h ../Geo/GVertex.h \ + ../Geo/GEntity.h ../Geo/Range.h ../Geo/SPoint3.h \ + ../Geo/SBoundingBox3d.h ../Geo/SPoint3.h ../Geo/GPoint.h \ + ../Geo/SPoint2.h ../Geo/GEdge.h ../Geo/GEntity.h ../Geo/GVertex.h \ + ../Geo/SVector3.h ../Geo/SPoint3.h ../Geo/SPoint3.h ../Geo/SPoint2.h \ + ../Geo/GFace.h ../Geo/GEntity.h ../Geo/GPoint.h ../Geo/GEdgeLoop.h \ + ../Geo/GEdge.h ../Geo/SPoint2.h ../Geo/SVector3.h ../Geo/Pair.h \ + ../Geo/GRegion.h ../Geo/GEntity.h ../Geo/SPoint3.h \ + ../Geo/SBoundingBox3d.h meshGEdge.h ../Geo/MElement.h \ + ../Common/GmshDefines.h ../Geo/MVertex.h ../Geo/SPoint3.h \ + ../Geo/MEdge.h ../Geo/MVertex.h ../Geo/SVector3.h ../Geo/MFace.h \ + ../Geo/MVertex.h ../Geo/SVector3.h BackgroundMesh.h \ + ../Numeric/Numeric.h ../Numeric/NumericEmbedded.h ../Common/Message.h \ + ../Common/Context.h ../Geo/CGNSOptions.h ../Mesh/PartitionOptions.h meshGEdgeExtruded.o: meshGEdgeExtruded.cpp ../Geo/GModel.h \ ../Geo/GVertex.h ../Geo/GEntity.h ../Geo/Range.h ../Geo/SPoint3.h \ ../Geo/SBoundingBox3d.h ../Geo/SPoint3.h ../Geo/GPoint.h \ diff --git a/Mesh/meshGEdge.cpp b/Mesh/meshGEdge.cpp index 4c95465005b2cb6c061ed61884ff47c539bb9a74..67f7ca73b23ef96fd2cd7d9b9f375797966b117c 100644 --- a/Mesh/meshGEdge.cpp +++ b/Mesh/meshGEdge.cpp @@ -3,16 +3,14 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. -#include <stdlib.h> +#include "GModel.h" #include "meshGEdge.h" #include "GEdge.h" #include "MElement.h" #include "BackgroundMesh.h" #include "Numeric.h" #include "Message.h" -#include "ListUtils.h" #include "Context.h" -#include "GModel.h" #define SQU(a) ((a)*(a)) @@ -143,7 +141,7 @@ static double F_Transfinite(GEdge *ge, double t) val = d * coef / ge->length(); } else { - switch (abs(type)) { + switch (std::abs(type)) { case 1: // Geometric progression ar^i; Sum of n terms = length = a (r^n-1)/(r-1) {