Skip to content
Snippets Groups Projects
Commit 04c5114d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix msvc compile

parent e8b9bb7b
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ public: ...@@ -148,7 +148,7 @@ public:
} }
double angle_deg(const BDS_Vector &v) const double angle_deg(const BDS_Vector &v) const
{ {
return angle(v) * 180 / M_PI; return angle(v) * 180. / 3.1415926535897932;
} }
double operator * (const BDS_Vector &v) const double operator * (const BDS_Vector &v) const
{ {
......
// $Id: CutParametric.cpp,v 1.22 2007-09-11 14:01:54 geuzaine Exp $ // $Id: CutParametric.cpp,v 1.23 2008-01-22 20:44:36 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -37,7 +37,7 @@ extern Context_T CTX; ...@@ -37,7 +37,7 @@ extern Context_T CTX;
StringXNumber CutParametricOptions_Number[] = { StringXNumber CutParametricOptions_Number[] = {
{GMSH_FULLRC, "MinU", GMSH_CutParametricPlugin::callbackMinU, 0.}, {GMSH_FULLRC, "MinU", GMSH_CutParametricPlugin::callbackMinU, 0.},
{GMSH_FULLRC, "MaxU", GMSH_CutParametricPlugin::callbackMaxU, 2*M_PI}, {GMSH_FULLRC, "MaxU", GMSH_CutParametricPlugin::callbackMaxU, 2*3.1416},
{GMSH_FULLRC, "nPointsU", GMSH_CutParametricPlugin::callbackN, 360.}, {GMSH_FULLRC, "nPointsU", GMSH_CutParametricPlugin::callbackN, 360.},
{GMSH_FULLRC, "ConnectPoints", GMSH_CutParametricPlugin::callbackConnect, 0.}, {GMSH_FULLRC, "ConnectPoints", GMSH_CutParametricPlugin::callbackConnect, 0.},
{GMSH_FULLRC, "iView", NULL, -1.} {GMSH_FULLRC, "iView", NULL, -1.}
......
// $Id: HarmonicToTime.cpp,v 1.12 2007-09-11 14:01:55 geuzaine Exp $ // $Id: HarmonicToTime.cpp,v 1.13 2008-01-22 20:44:36 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
// Please report all bugs and problems to <gmsh@geuz.org>. // Please report all bugs and problems to <gmsh@geuz.org>.
#include "HarmonicToTime.h" #include "HarmonicToTime.h"
#include "Numeric.h"
StringXNumber HarmonicToTimeOptions_Number[] = { StringXNumber HarmonicToTimeOptions_Number[] = {
{GMSH_FULLRC, "RealPart", NULL, 0.}, {GMSH_FULLRC, "RealPart", NULL, 0.},
......
// $Id: TransformLatLon.cpp,v 1.1 2008-01-10 14:56:54 remacle Exp $ // $Id: TransformLatLon.cpp,v 1.2 2008-01-22 20:44:36 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
// Please report all bugs and problems to <gmsh@geuz.org>. // Please report all bugs and problems to <gmsh@geuz.org>.
#include "TransformLatLon.h" #include "TransformLatLon.h"
#include "Numeric.h"
StringXNumber TransformLatLonOptions_Number[] = { StringXNumber TransformLatLonOptions_Number[] = {
{GMSH_FULLRC,(char*) "iView", NULL, -1.}, {GMSH_FULLRC,(char*) "iView", NULL, -1.},
......
# $Id: Makefile,v 1.26 2008-01-20 11:39:47 geuzaine Exp $ # $Id: Makefile,v 1.27 2008-01-22 20:44:36 geuzaine Exp $
# #
# Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
# #
...@@ -142,7 +142,7 @@ ${LIB}: ${OBJ} ...@@ -142,7 +142,7 @@ ${LIB}: ${OBJ}
# don't apply ugly hack above for files in this directory # don't apply ugly hack above for files in this directory
nglib_addon${OBJEXT}: nglib_addon${OBJEXT}:
${CXX} ${CFLAGS} ${DASH}c $< ${CXX} ${CFLAGS} ${DASH}c nglib_addon.cpp
clean: clean:
rm -f *${OBJEXT} libsrc/*/*${OBJEXT} rm -f *${OBJEXT} libsrc/*/*${OBJEXT}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment