+//=============================================================================
+/*!
+ * \brief Get the number of Threads to be used for the pool of Threads
+ */
+//=============================================================================
+int SMESH_ParallelMesh::GetPoolNbThreads()
+{
+ int nbThreads = -1;
+
+ if(_method == ParallelismMethod::MultiThread){
+ nbThreads = _NbThreads;
+ }else if( _method == ParallelismMethod::MultiNode){
+ //TODO: Check of that is the right way
+ nbThreads = std::max(_nbProc, _nbNode*_nbProcPerNode);
+ } else {
+ throw SALOME_Exception("Unknown method "+std::to_string(_method));
+ }
+
+ return nbThreads;
+}
+
+//=============================================================================
+/*!
+ * \brief Set Number of thread for multithread run
+ */
+//=============================================================================
+void SMESH_ParallelMesh::SetNbThreads(long nbThreads)
+{
+ if(nbThreads < 1)
+ throw SALOME_Exception("Number of threads should be higher than 1");
+ _NbThreads=nbThreads;
+};
+
+//=============================================================================
+/*!
+ * \brief Get the element associated to the dimension of the parallelism
+ */
+//=============================================================================
+int SMESH_ParallelMesh::GetParallelElement()
+{
+ if (_paraDim==2){
+ return TopAbs_FACE;
+ }else{
+ return TopAbs_SOLID;
+ }
+};
+
+//=============================================================================
+/*!
+ * \brief Get the element associated to the dimension of the parallelism
+ */
+//=============================================================================
+int SMESH_ParallelMesh::GetDumpElement()
+{
+ if (_paraDim==2){
+ return TopAbs_EDGE;
+ }else{
+ return TopAbs_FACE;
+ }
+};
+