diff -rupN gmsh-2.10.1-source/Geo/GEdge.cpp gmsh-2.10.1-source-new/Geo/GEdge.cpp
--- gmsh-2.10.1-source/Geo/GEdge.cpp 2015-06-26 10:58:42.000000000 +0200
+++ gmsh-2.10.1-source-new/Geo/GEdge.cpp 2015-08-08 09:23:32.123629026 +0200
@@ -259,7 +259,7 @@ std::string GEdge::getAdditionalInfoStri
sstream << " transfinite (" << meshAttributes.nbPointsTransfinite;
int type = meshAttributes.typeTransfinite;
if(std::abs(type) == 1)
- sstream << ", progression " << sign(type) * meshAttributes.coeffTransfinite;
+ sstream << ", progression " << SIGN(type) * meshAttributes.coeffTransfinite;
else if(std::abs(type) == 2)
sstream << ", bump " << meshAttributes.coeffTransfinite;
sstream << ")";
diff -rupN gmsh-2.10.1-source/Geo/Geo.cpp gmsh-2.10.1-source-new/Geo/Geo.cpp
--- gmsh-2.10.1-source/Geo/Geo.cpp 2015-05-15 15:39:10.000000000 +0200
+++ gmsh-2.10.1-source-new/Geo/Geo.cpp 2015-08-08 09:23:32.125629068 +0200
@@ -4566,7 +4566,7 @@ void setSurfaceGeneratrices(Surface *s,
(i != 0 && iLoop < 0)){ // hole
for(int j = 0; j < List_Nbr(el->Curves); j++) {
List_Read(el->Curves, j, &ic);
- ic *= sign(iLoop);
+ ic *= SIGN(iLoop);
if(i != 0) ic *= -1; // hole
if(!(c = FindCurve(ic)))
fromModel.push_back(ic);
@@ -4577,7 +4577,7 @@ void setSurfaceGeneratrices(Surface *s,
else{
for(int j = List_Nbr(el->Curves)-1; j >= 0; j--) {
List_Read(el->Curves, j, &ic);
- ic *= sign(iLoop);
+ ic *= SIGN(iLoop);
if(i != 0) ic *= -1; // hole
if(!(c = FindCurve(ic)))
fromModel.push_back(ic);
@@ -4623,7 +4623,7 @@ void setVolumeSurfaces(Volume *v, List_T
// create "negative" surfaces. So we just store the signs in
// another list
List_Add(v->Surfaces, &s);
- int tmp = sign(is) * sign(il);
+ int tmp = SIGN(is) * SIGN(il);
if(i > 0) tmp *= -1; // this is a hole
List_Add(v->SurfacesOrientations, &tmp);
}
diff -rupN gmsh-2.10.1-source/Geo/GModelIO_GEO.cpp gmsh-2.10.1-source-new/Geo/GModelIO_GEO.cpp
--- gmsh-2.10.1-source/Geo/GModelIO_GEO.cpp 2015-07-21 07:56:24.000000000 +0200
+++ gmsh-2.10.1-source-new/Geo/GModelIO_GEO.cpp 2015-08-08 09:23:32.126629089 +0200
@@ -325,7 +325,7 @@ int GModel::importGEOInternals()
case MSH_PHYSICAL_SURFACE: ge = getFaceByTag(tag); break;
case MSH_PHYSICAL_VOLUME: ge = getRegionByTag(tag); break;
}
- int pnum = CTX::instance()->geom.orientedPhysicals ? (sign(num) * p->Num) : p->Num;
+ int pnum = CTX::instance()->geom.orientedPhysicals ? (SIGN(num) * p->Num) : p->Num;
if(ge && std::find(ge->physicals.begin(), ge->physicals.end(), pnum) ==
ge->physicals.end())
ge->physicals.push_back(pnum);
diff -rupN gmsh-2.10.1-source/Geo/gmshEdge.cpp gmsh-2.10.1-source-new/Geo/gmshEdge.cpp
--- gmsh-2.10.1-source/Geo/gmshEdge.cpp 2015-07-27 20:48:27.000000000 +0200
+++ gmsh-2.10.1-source-new/Geo/gmshEdge.cpp 2015-08-08 09:23:32.126629089 +0200
@@ -99,7 +99,7 @@ std::string gmshEdge::getAdditionalInfoS
sstream << " transfinite (" << meshAttributes.nbPointsTransfinite;
int type = meshAttributes.typeTransfinite;
if(std::abs(type) == 1)
- sstream << ", progression " << sign(type) * meshAttributes.coeffTransfinite;
+ sstream << ", progression " << SIGN(type) * meshAttributes.coeffTransfinite;
else if(std::abs(type) == 2)
sstream << ", bump " << meshAttributes.coeffTransfinite;
sstream << ")";
diff -rupN gmsh-2.10.1-source/Geo/gmshRegion.cpp gmsh-2.10.1-source-new/Geo/gmshRegion.cpp
--- gmsh-2.10.1-source/Geo/gmshRegion.cpp 2015-03-08 14:03:26.000000000 +0100
+++ gmsh-2.10.1-source-new/Geo/gmshRegion.cpp 2015-08-08 09:23:32.127629110 +0200
@@ -32,7 +32,7 @@ gmshRegion::gmshRegion(GModel *m, ::Volu
GFace *f = m->getFaceByTag(abs(is));
if(f){
l_faces.push_back(f);
- l_dirs.push_back(sign(is));
+ l_dirs.push_back(SIGN(is));
f->addRegion(this);
}
else
diff -rupN gmsh-2.10.1-source/Mesh/meshGEdge.cpp gmsh-2.10.1-source-new/Mesh/meshGEdge.cpp
--- gmsh-2.10.1-source/Mesh/meshGEdge.cpp 2015-07-27 20:48:26.000000000 +0200
+++ gmsh-2.10.1-source-new/Mesh/meshGEdge.cpp 2015-08-08 09:23:32.127629110 +0200
@@ -168,7 +168,7 @@ static double F_Transfinite(GEdge *ge, d
case 1: // Geometric progression ar^i; Sum of n terms = length = a (r^n-1)/(r-1)
{
- double r = (sign(type) >= 0) ? coef : 1. / coef;
+ double r = (SIGN(type) >= 0) ? coef : 1. / coef;
double a = length * (r - 1.) / (pow(r, nbpt - 1.) - 1.);
int i = (int)(log(t * length / a * (r - 1.) + 1.) / log(r));
val = d / (a * pow(r, (double)i));
diff -rupN gmsh-2.10.1-source/Numeric/Numeric.h gmsh-2.10.1-source-new/Numeric/Numeric.h
--- gmsh-2.10.1-source/Numeric/Numeric.h 2015-03-08 14:03:21.000000000 +0100
+++ gmsh-2.10.1-source-new/Numeric/Numeric.h 2015-08-08 09:23:32.128629131 +0200
@@ -14,7 +14,7 @@
#include "SVector3.h"
#define myhypot(a,b) (sqrt((a)*(a)+(b)*(b)))
-#define sign(x) (((x)>=0)?1:-1)
+#define SIGN(x) (((x)>=0)?1:-1)
#define SQU(a) ((a)*(a))
struct mean_plane
diff -rupN gmsh-2.10.1-source/Parser/Gmsh.tab.cpp gmsh-2.10.1-source-new/Parser/Gmsh.tab.cpp
--- gmsh-2.10.1-source/Parser/Gmsh.tab.cpp 2015-07-27 20:48:27.000000000 +0200
+++ gmsh-2.10.1-source-new/Parser/Gmsh.tab.cpp 2015-08-08 09:24:53.349538297 +0200
@@ -8727,7 +8727,7 @@ yyreduce:
if(c){
c->Method = MESH_TRANSFINITE;
c->nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2;
- c->typeTransfinite = type * sign(d);
+ c->typeTransfinite = type * SIGN(d);
c->coeffTransfinite = coef;
}
else{
@@ -8735,7 +8735,7 @@ yyreduce:
if(ge){
ge->meshAttributes.method = MESH_TRANSFINITE;
ge->meshAttributes.nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2;
- ge->meshAttributes.typeTransfinite = type * sign(d);
+ ge->meshAttributes.typeTransfinite = type * SIGN(d);
ge->meshAttributes.coeffTransfinite = coef;
}
else if(sign > 0)
diff -rupN gmsh-2.10.1-source/Parser/Gmsh.y gmsh-2.10.1-source-new/Parser/Gmsh.y
--- gmsh-2.10.1-source/Parser/Gmsh.y 2015-07-27 20:48:27.000000000 +0200
+++ gmsh-2.10.1-source-new/Parser/Gmsh.y 2015-08-08 09:23:32.129629152 +0200
@@ -3735,7 +3735,7 @@ Constraints :
if(c){
c->Method = MESH_TRANSFINITE;
c->nbPointsTransfinite = ($5 > 2) ? (int)$5 : 2;
- c->typeTransfinite = type * sign(d);
+ c->typeTransfinite = type * SIGN(d);
c->coeffTransfinite = coef;
}
else{
@@ -3743,7 +3743,7 @@ Constraints :
if(ge){
ge->meshAttributes.method = MESH_TRANSFINITE;
ge->meshAttributes.nbPointsTransfinite = ($5 > 2) ? (int)$5 : 2;
- ge->meshAttributes.typeTransfinite = type * sign(d);
+ ge->meshAttributes.typeTransfinite = type * SIGN(d);
ge->meshAttributes.coeffTransfinite = coef;
}
else if(sign > 0)
diff -rupN gmsh-2.10.1-source/Plugin/FaultZone.cpp gmsh-2.10.1-source-new/Plugin/FaultZone.cpp
--- gmsh-2.10.1-source/Plugin/FaultZone.cpp 2015-04-20 16:06:03.000000000 +0200
+++ gmsh-2.10.1-source-new/Plugin/FaultZone.cpp 2015-08-08 09:23:32.130629173 +0200
@@ -430,7 +430,7 @@ void GMSH_FaultZoneMesher::ComputeHeavis
lsn = dot(vectsNor[j], vectsNor[i])*heav[i];
assert(fabs(lsn) > tolerance || heav[i] == 0);
}
- heav[j] = sign(lsn);
+ heav[j] = SIGN(lsn);
}
if (heav[i] != 0){
@@ -508,7 +508,7 @@ std::vector < int > GMSH_FaultZoneMesher
assert(dot(vectPoint, vectTan) > 0);
lsn = 0;
}
- heav.push_back(sign(lsn));
+ heav.push_back(SIGN(lsn));
}
else if (_nodesByJunctionNode.find( mVert ) != _nodesByJunctionNode.end()){
// if it is a junction node
@@ -518,7 +518,7 @@ std::vector < int > GMSH_FaultZoneMesher
SVector3 vectNorm = _vectNormByFissure[fissures[i]];
double lsn = dot(vectPoint, vectNorm);
if (fabs(lsn) > tolerance) // tolerance seems to be ok
- heav.push_back(sign(lsn));
+ heav.push_back(SIGN(lsn));
else
heav.push_back(0);
}