SALOME_TESTS/Grids/smesh/3D_mesh_NETGEN_02/C1

File descriptor 0 is valid
This commit is contained in:
eap 2014-04-29 20:31:59 +04:00
parent 4a8521d5db
commit 4edb4666f4
3 changed files with 4 additions and 2 deletions

View File

@ -114,6 +114,8 @@ Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()
SMESH_File file( myFile, /*open=*/false );
if ( !file.open() ) {
fprintf(stderr, ">> ERROR : cannot open file %s \n", myFile.c_str());
if ( file.error().empty() )
fprintf(stderr, ">> ERROR : %s \n", file.error().c_str());
return DRS_FAIL;
}

View File

@ -719,6 +719,6 @@ int SMDS_VtkVolume::NbUniqueNodes() const
*/
SMDS_ElemIteratorPtr SMDS_VtkVolume::uniqueNodesIterator() const
{
MESSAGE("uniqueNodesIterator");
//MESSAGE("uniqueNodesIterator");
return SMDS_ElemIteratorPtr(new SMDS_VtkCellIterator(SMDS_Mesh::_meshList[myMeshId], myVtkID, GetEntityType()));
}

View File

@ -78,7 +78,7 @@ bool SMESH_File::open()
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
bool ok = ( _file > 0 );
bool ok = ( _file >= 0 );
#endif
if ( ok )
{