From: eap Date: Tue, 14 Jun 2016 09:42:49 +0000 (+0300) Subject: Compilation error on Ubuntu 16 X-Git-Tag: V8_1_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=aa58e0af13ed6b7aa825818df4db390fd62b6957 Compilation error on Ubuntu 16 --- diff --git a/doc/salome/examples/3dmesh.py b/doc/salome/examples/3dmesh.py index 665534d80..47383fee9 100644 --- a/doc/salome/examples/3dmesh.py +++ b/doc/salome/examples/3dmesh.py @@ -93,3 +93,12 @@ triaStr = "" for tria in tetra.GetElementsByType( SMESH.FACE ): nodes = tetra.GetElemNodes( tria ) triaStr += "%s (%s, %s, %s) " % ( tria, nodes[0], nodes[1], nodes[2] ) + +# Retrieve group contents +groupStr = "" +for group in tetra.GetGroups(): + ids = group.GetIDs() + name = group.GetName() + eType = group.GetType() + groupStr += "'%s' %s: %s \n" % ( name, eType, ids ) + diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index e6aaa2889..7eb2f3348 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -310,7 +310,7 @@ void StdMeshersGUI_DistrPreview::update() if ( std::fabs(y[i]) >= HUGE_VAL) y[i] = HUGE_VAL/100.; #else - if ( isinf(y[i])) + if ( std::isinf(y[i])) y[i] = std::numeric_limits::max()/100.; #endif // if ( y[i] > 1e3 )