std::vector< const SMDS_MeshElement* > foundVolumes;
if ( !hasGeom && theHelper->GetMesh()->NbVolumes() > 0 )
elemSearcher = SMESH_MeshAlgos::GetElementSearcher( *theMeshDS );
- unique_ptr< SMESH_ElementSearcher > elemSearcherDeleter( elemSearcher ); //auto_ptr
+ unique_ptr< SMESH_ElementSearcher > elemSearcherDeleter( elemSearcher );
// IMP 0022172: [CEA 790] create the groups corresponding to domains
std::vector< std::vector< const SMDS_MeshElement* > > elemsOfDomain;
TCollection_AsciiString aSmdsToGhs3dIdMapFileName;
aSmdsToGhs3dIdMapFileName = aGenericName + ".ids"; // ids relation
ofstream aIdsFile ( aSmdsToGhs3dIdMapFileName.ToCString() , ios::out);
- Ok = aIdsFile.rdbuf()->is_open();
- if (!Ok) {
+ if ( !aIdsFile.rdbuf()->is_open() ) {
INFOS( "Can't write into " << aSmdsToGhs3dIdMapFileName);
//return error(SMESH_Comment("Can't write into ") << aSmdsToGhs3dIdMapFileName);
}
virtual bool Compute(SMESH_Mesh& theMesh,
SMESH_MesherHelper* theHelper);
- virtual bool Compute(SMESH_Mesh & aMesh,
+ virtual bool Compute(SMESH_Mesh & aMesh,
const TopoDS_Shape & aShape);
static const char* Name() { return "MG-Tetra Optimization"; }
{
volatile bool& _cancelled_flag;
double& _progress;
- LibData(volatile bool& cancelled_flag, double& progress): _cancelled_flag{cancelled_flag}, _progress{progress} {}
+ LibData(volatile bool& cancelled_flag, double& progress):
+ _cancelled_flag{cancelled_flag}, _progress{progress}
+ {}
};
#endif // ifdef USE_MG_LIBS
{
myEnforcedTableWidget->disconnect(SIGNAL( itemChanged(QTableWidgetItem *)));
bool okToCreate = true;
- double itemX=0.,itemY=0.,itemZ=0.,itemSize = 0; // todo: itemX, itemY, itemZ must be explicitly initialized to avoid warning (see below)
+ double itemX=0.,itemY=0.,itemZ=0.,itemSize = 0;
QString itemEntry, itemGroupName = QString("");
// bool itemIsCompound;
int rowCount = myEnforcedTableWidget->rowCount();
break;
- if (( !isCompound && ((itemX == x) && (itemY == y) && (itemZ == z))) || // todo: itemX, itemY, itemZ must be explicitly initialized to avoid warning (see above)
+ if (( !isCompound && ((itemX == x) && (itemY == y) && (itemZ == z))) ||
( !itemEntry.isEmpty() && ( itemEntry == geomEntry.c_str() )))
{
// update size
_PTR(SObject) aSObj = aStudy->FindObjectID(enfMesh->entry.c_str());
SMESH::SMESH_IDSource_var theSource = SMESH::SObjectToInterface<SMESH::SMESH_IDSource>( aSObj );
- SMESH::ElementType elementType = SMESH::NODE; // todo: elementType must be explicitly initialized to avoid warning (see below)
+ SMESH::ElementType elementType = SMESH::NODE;
switch(enfMesh->elementType) {
case 0:
elementType = SMESH::NODE;
break;
}
- ok = h->p_SetEnforcedMesh(theSource, elementType, enfMesh->name.c_str(), enfMesh->groupName.c_str()); // todo: elementType must be explicitly initialized to avoid warning (see above)
+ ok = h->p_SetEnforcedMesh(theSource, elementType, enfMesh->name.c_str(), enfMesh->groupName.c_str());
} // for
} // try
catch ( const SALOME::SALOME_Exception& ex )