From dd63353c2b41fa5fafc642d5940ec7f220cb0497 Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Wed, 28 Aug 2024 12:10:12 +0000 Subject: [PATCH] cleanup --- src/SMDS/SMDS_Mesh.cxx | 2 -- src/SMESH/CMakeLists.txt | 2 +- src/SMESH/SMESH_Gen.cxx | 15 +++++++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index 1475b5951..04b495259 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -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 diff --git a/src/SMESH/CMakeLists.txt b/src/SMESH/CMakeLists.txt index cb4dbc086..6cc676e54 100644 --- a/src/SMESH/CMakeLists.txt +++ b/src/SMESH/CMakeLists.txt @@ -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 diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index abeb74508..1eb2dec18 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -51,8 +51,10 @@ #include "memoire.h" #include -// #include -// #include +#ifndef __EMSCRIPTEN__ +#include +#include +#endif #ifdef WIN32 #include @@ -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; }