Skip to content
Snippets Groups Projects
Commit db526b40 authored by Gaetan Compere's avatar Gaetan Compere
Browse files

Rudi Peeters: Added function round since it does not exist in the Visual Studio 2010 math library.

parent 67723cda
Branches
Tags
No related merge requests found
......@@ -46,6 +46,13 @@
#include "Numeric.h"
#include "meshGFace.h"
#if AE_COMPILER==AE_MSVC
int round(double number)
{
return (number >= 0) ? (int)(number + 0.5) : (int)(number - 0.5);
}
#endif
static void fixEdgeToValue(GEdge *ed, double value, dofManager<double> &myAssembler)
{
myAssembler.fixVertex(ed->getBeginVertex()->mesh_vertices[0], 0, 1, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment