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;
bool idsChange = HasNumerationHoles();
if ( idsChange )
{
std::set< SMDS_ElementHolder* >::iterator holder = myElemHolders.begin();
for ( ; holder != myElemHolders.end(); ++holder )
(*holder)->beforeCompacting();
}
smIdType oldCellSize = myCellFactory->GetMaxID();
// remove "holes" in SMDS numeration

View File

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

View File

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