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

fix the fix -- don't use round()

parent 50b75ed1
No related branches found
No related tags found
No related merge requests found
......@@ -46,13 +46,6 @@
#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);
......@@ -2253,7 +2246,7 @@ bool GFaceCompound::checkTopology() const
double D = H;
if (_interior_loops.size() > 0) D = getSizeBB(_U0);
int AR1 = (int) checkAspectRatio();
int AR2 = (int) round(H/D);
int AR2 = (int) (H/D + 0.5);
int AR = std::max(AR1, AR2);
if (G != 0 || Nb < 1){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment