]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorcvw <cvw>
Fri, 16 Mar 2012 15:03:12 +0000 (15:03 +0000)
committercvw <cvw>
Fri, 16 Mar 2012 15:03:12 +0000 (15:03 +0000)
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx
src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx

index 0a770e75ce07a893ba03846e082c7843e0817794..41c66d57d6b0659b39e6fd53837440c7f30819df 100644 (file)
@@ -375,7 +375,7 @@ void MeshCollectionDriver::writeMedFile(int idomain, const std::string& distfile
           std::string tmp,newName=distfilename;
           tmp+="_"+fieldName+"_"+IntToStr(nbfFieldFound)+".med";
           newName.replace(newName.find(".med"),4,tmp);
-          std::cout << "WARNING : writeMedFile : new file name with only one field :" << newName << std::endl;
+          std::cout << "WARNING : writeMedFile : create a new file name with only one field because MEDLoader::WriteField throw:" << newName << std::endl;
           MEDLoader::WriteField(newName.c_str(),field,true);
         }
     }
index 0b3883fe78d365979269e7a6788f1613ed106227..4ac1a4cb2655d13d6f3751fddc800f0d275b50d5 100644 (file)
@@ -141,7 +141,7 @@ int MeshCollectionMedXmlDriver::read(const char* filename, ParaDomainSelector* d
           MyGlobals::_Mesh_Names[i]=(const char*)xpathMeshObj->nodesetval->nodeTab[0]->children->content;
 
           if ( !domainSelector || domainSelector->isMyDomain(i))
-            readSubdomain(i);  //cvwat03
+            readSubdomain(i);
           xmlXPathFreeObject(xpathObjfilename);
           xmlXPathFreeObject(xpathMeshObj);
         } //loop on domains
index b08a3156176f1ccefe235814d24cc95adbe7e4c4..50f27a1d6c36f54f3c20f32303945185ae5b0bd9 100644 (file)
@@ -137,16 +137,13 @@ void METISGraph::partGraph(int ndomain,
                   //it was keeped
                   ran=CreateRandomSize(n);
                   RandomizeAdj(&xadj[0],&adjncy[0],ran,vx,va);
-                  ParMETIS_PartKway( //cvwat11
-                                    vtxdist, &vx[0], &va[0], vwgt, 
+                  ParMETIS_PartKway(vtxdist, &vx[0], &va[0], vwgt, 
                                     adjwgt, &wgtflag, &base, &nparts, options, 
                                     &edgecut, partition, &comm );
                 }
               else
                 {
-                  //MPI_Barrier(MPI_COMM_WORLD);
-                  ParMETIS_PartKway( //cvwat11
-                                    vtxdist, xadj, adjncy, vwgt, 
+                  ParMETIS_PartKway(vtxdist, xadj, adjncy, vwgt, 
                                     adjwgt, &wgtflag, &base, &nparts, options, 
                                     &edgecut, partition, &comm );
                 }
@@ -170,11 +167,6 @@ void METISGraph::partGraph(int ndomain,
               //shit ParMETIS "Error! Key -2 not found!" not catched...
               throw INTERP_KERNEL::Exception("Problem in ParMETIS_PartKway");
             }
-          if (n<8 && nparts==3)
-            {
-              for (int i=0; i<n; i++)
-                partition[i]=i%3;
-            }
 #else
           throw INTERP_KERNEL::Exception("ParMETIS is not available. Check your products, please.");
 #endif