Compilation error on Ubuntu 16

This commit is contained in:
eap 2016-06-14 12:42:49 +03:00
parent ef3921b2af
commit aa58e0af13
2 changed files with 10 additions and 1 deletions

View File

@ -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 )

View File

@ -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<double>::max()/100.;
#endif
// if ( y[i] > 1e3 )