This commit is contained in:
Louis Gombert 2024-08-28 12:10:12 +00:00
parent 955a1a5422
commit dd63353c2b
3 changed files with 10 additions and 9 deletions

View File

@ -2999,14 +2999,12 @@ void SMDS_Mesh::CompactMesh()
this->myCompactTime = this->myModifTime; this->myCompactTime = this->myModifTime;
bool idsChange = HasNumerationHoles(); bool idsChange = HasNumerationHoles();
if ( idsChange ) if ( idsChange )
{ {
std::set< SMDS_ElementHolder* >::iterator holder = myElemHolders.begin(); std::set< SMDS_ElementHolder* >::iterator holder = myElemHolders.begin();
for ( ; holder != myElemHolders.end(); ++holder ) for ( ; holder != myElemHolders.end(); ++holder )
(*holder)->beforeCompacting(); (*holder)->beforeCompacting();
} }
smIdType oldCellSize = myCellFactory->GetMaxID(); smIdType oldCellSize = myCellFactory->GetMaxID();
// remove "holes" in SMDS numeration // remove "holes" in SMDS numeration

View File

@ -118,7 +118,7 @@ SET(SMESHimpl_SOURCES
SMESH_HypoFilter.cxx SMESH_HypoFilter.cxx
SMESH_ProxyMesh.cxx SMESH_ProxyMesh.cxx
SMESH_MesherHelper.cxx SMESH_MesherHelper.cxx
# MG_ADAPT.cxx MG_ADAPT.cxx
SMESH_Homard.cxx SMESH_Homard.cxx
SMESH_DriverMesh.cxx SMESH_DriverMesh.cxx
SMESH_DriverShape.cxx SMESH_DriverShape.cxx

View File

@ -51,8 +51,10 @@
#include "memoire.h" #include "memoire.h"
#include <functional> #include <functional>
// #include <QString> #ifndef __EMSCRIPTEN__
// #include <QProcess> #include <QString>
#include <QProcess>
#endif
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>
@ -446,9 +448,11 @@ bool SMESH_Gen::parallelComputeSubMeshes(
shapeSM, aShapeOnly, allowedSubShapes, shapeSM, aShapeOnly, allowedSubShapes,
aShapesId); aShapesId);
}else{ }else{
// boost::asio::post(*(aParMesh.GetPool()), std::bind(compute_function, smToCompute, computeEvent, #ifndef __EMSCRIPTEN__
// shapeSM, aShapeOnly, allowedSubShapes, boost::asio::post(*(aParMesh.GetPool()), std::bind(compute_function, smToCompute, computeEvent,
// aShapesId)); shapeSM, aShapeOnly, allowedSubShapes,
aShapesId));
#endif
} }
} }
@ -762,7 +766,6 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh,
aMesh.GetMeshDS()->Modified(); aMesh.GetMeshDS()->Modified();
aMesh.GetMeshDS()->CompactMesh(); aMesh.GetMeshDS()->CompactMesh();
} }
return ret; return ret;
} }