From aa58e0af13ed6b7aa825818df4db390fd62b6957 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 14 Jun 2016 12:42:49 +0300 Subject: [PATCH] Compilation error on Ubuntu 16 --- doc/salome/examples/3dmesh.py | 9 +++++++++ src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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 ) -- 2.39.2