Salome HOME
[bos #41978][EDF] Edit table of density on wire discretization. Load properly the...
[modules/smesh.git] / src / SMESH / SMESH_Mesh.hxx
index c0cbb37b66c88b0694a366f6da9ba77be5118650..f9cc2e91367db9c4fd942d449bcf14d26a0a9c8f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -51,7 +51,6 @@
 
 #ifndef WIN32
 #include <boost/filesystem.hpp>
-#include <boost/asio/thread_pool.hpp>
 #endif
 #include <boost/thread.hpp>
 
@@ -306,6 +305,9 @@ class SMESH_EXPORT SMESH_Mesh
                   const SMESHDS_Mesh* mesh,
                   const char *        meshName = 0,
                   const bool          groupElemsByType = false);
+  void ExportStructuredCGNS(const char *        file,
+                            const SMESHDS_Mesh* mesh,
+                            const char *        meshName = 0);
   void ExportGMF(const char *        file,
                  const SMESHDS_Mesh* mesh,
                  bool                withRequiredGroups = true );
@@ -395,17 +397,10 @@ class SMESH_EXPORT SMESH_Mesh
   virtual void Lock(){};
   virtual void Unlock(){};
 
-  virtual int GetNbThreads(){return 0;};
-  virtual void SetNbThreads(long nbThreads){(void) nbThreads;};
+  virtual void wait(){};
 
-  virtual void InitPoolThreads(){std::cout << "Should not pass here: InitPoolThread" << std::endl;};
-  virtual void DeletePoolThreads(){std::cout << "Should not pass here: DeletePoolThread" << std::endl;};
-  virtual void wait(){std::cout << "Should not pass here: wait" << std::endl;};
-
-  virtual bool IsParallel(){std::cout << "Should not pass here: IsParallel" << std::endl;return false;};
-
-  virtual boost::filesystem::path GetTmpFolder() {return "";};
-  virtual boost::asio::thread_pool* GetPool() {return NULL;};
+  virtual bool IsParallel(){throw SALOME_Exception("Calling SMESH_Mesh::IsParallel");return false;};
+  virtual int GetParallelElement(){throw SALOME_Exception("Calling SMESH_Mesh::GetParallelElement");return 0;};
 
   virtual bool ComputeSubMeshes(
             SMESH_Gen* gen,
@@ -417,7 +412,7 @@ class SMESH_EXPORT SMESH_Mesh
             SMESH_subMesh::compute_event &computeEvent,
             const bool includeSelf,
             const bool complexShapeFirst,
-            const bool aShapeOnly){(void) gen;(void) aMesh;(void) aShape;(void) aDim;(void) aShapesId;(void) allowedSubShapes;(void) computeEvent;(void) includeSelf;(void) complexShapeFirst;(void) aShapeOnly;std::cout << "Should not pass here: computesubmesh" << std::endl;return false;};
+            const bool aShapeOnly){(void) gen;(void) aMesh;(void) aShape;(void) aDim;(void) aShapesId;(void) allowedSubShapes;(void) computeEvent;(void) includeSelf;(void) complexShapeFirst;(void) aShapeOnly;throw SALOME_Exception("Calling SMESH_Mesh::ComputeSubMeshes");return false;};
 
 private:
 
@@ -465,12 +460,6 @@ protected:
   // 2) to forget not loaded mesh data at hyp modification
   TCallUp*                    _callUp;
 
-  // Mutex for multhitreading write in SMESH_Mesh
-#ifndef WIN32
-  boost::mutex _my_lock;
-#endif
-  int _NbThreads=-1;
-
 protected:
   SMESH_Mesh();
   SMESH_Mesh(const SMESH_Mesh&) {};