]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
no warning.
authorageay <ageay>
Tue, 30 Nov 2010 08:24:06 +0000 (08:24 +0000)
committerageay <ageay>
Tue, 30 Nov 2010 08:24:06 +0000 (08:24 +0000)
src/INTERP_KERNEL/InterpKernelCellSimplify.cxx
src/INTERP_KERNEL/SplitterTetra.txx
src/INTERP_KERNEL/TriangulationIntersector.txx
src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx
src/MEDCoupling/MEDCouplingUMesh.cxx
src/MEDLoader/MEDFileMeshLL.cxx
src/MEDLoader/MEDLoader.cxx

index a1389919eece401acf8d61bccc82b0ea96477f38..57b668c28d220b701f7678f3b47638652c2d379f 100644 (file)
@@ -319,7 +319,7 @@ INTERP_KERNEL::NormalizedCellType CellSimplify::tryToUnPolyPenta6(const int *con
     {
       int tri3_0=std::distance(conn+lgth,std::find(conn+lgth,conn+lgth+nbOfFaces,(int)INTERP_KERNEL::NORM_TRI3));
       int tri3_1=std::distance(conn+lgth,std::find(conn+lgth+tri3_0+1,conn+lgth+nbOfFaces,(int)INTERP_KERNEL::NORM_TRI3));
-      const int *tri_0,*tri_1;
+      const int *tri_0=0,*tri_1=0;
       const int *w=conn;
       for(int i=0;i<5;i++)
         {
index d1e084876bb25ad00f2eaee72fbf65db71acc4c1..fd0d06a82281ec88f382b45ff11e21d2fc5a8a39 100644 (file)
@@ -242,7 +242,7 @@ namespace INTERP_KERNEL
           {
             // get sons connectivity
             NormalizedCellType faceType;
-            int *faceNodes, nbFaceNodes;
+            int *faceNodes, nbFaceNodes=-1;
             if ( cellModelCell.isDynamic() )
               {
                 faceNodes=new int[nbOfNodes4Type];
index de8a8395447b09c4db9f26e96e4466bc8ec2808f..0c17ed0c923a590455a42a00492cba0cde322d2f 100644 (file)
@@ -191,8 +191,7 @@ namespace INTERP_KERNEL
 
     //Compute the intersection area
     double inter_area[SPACEDIM], total_area = 0.;
-    double total_barycenter[SPACEDIM];
-    total_barycenter[0]=total_barycenter[1] = 0.;
+    double total_barycenter[SPACEDIM]={0.,0.};
 
     const ConnType nbNodesT=targetCell.size()/SPACEDIM;
     for(ConnType iT = 1; iT<nbNodesT-1; iT++)
index 384d8d2e0c2516e9268417ad2b538cbafe2077d2..b9197fde962a765161c3c9b7d0c1d59060336e74 100644 (file)
@@ -461,7 +461,7 @@ namespace INTERP_KERNEL
       int ind1 = (i+1)%3, ind2 = (i+2)%3; // indices of coords on i-th tetra side
 
       int nbCutOnSide = 0;
-      bool isSegmentOnEdge;
+      bool isSegmentOnEdge=false;
       for ( int ip = 0; ip < nbPoints; ++ip )
       {
         int isSegmentEnd = ( ip % 2 );
index 3302710d676284b45c16ef689886b024de566f01..b61ed7caae8782d5454224aea4a9419b01551e56 100644 (file)
@@ -588,7 +588,7 @@ void MEDCouplingUMesh::unPolyze()
       lgthOfCurCell=index[i+1]-posOfCurCell;
       INTERP_KERNEL::NormalizedCellType type=(INTERP_KERNEL::NormalizedCellType)conn[posOfCurCell];
       const INTERP_KERNEL::CellModel& cm=INTERP_KERNEL::CellModel::getCellModel(type);
-      INTERP_KERNEL::NormalizedCellType newType;
+      INTERP_KERNEL::NormalizedCellType newType=INTERP_KERNEL::NORM_ERROR;
       int newLgth;
       if(cm.isDynamic())
         {
index 45f0500aa7860af35e55ebcbd6714c156db5d09d..94d5a172fc1901e5e88b3409547b147584a32630 100644 (file)
@@ -114,7 +114,7 @@ int MEDFileUMeshL2::getMeshIdFromName(med_idt fid, const char *mname) throw(INTE
   char nommaa[MED_TAILLE_NOM+1];
   med_int n=MEDnMaa(fid);
   bool found=false;
-  int ret;
+  int ret=-1;
   std::vector<std::string> ms;
   for(int i=0;i<n;i++)
     {
index 616831a2d55f6afe968f6132c8c7f1191e7197c2..000602cf61d57f3b90ce5d19754f8eb8e9cd6400 100644 (file)
@@ -38,6 +38,7 @@ extern "C"
 #include <iterator>
 #include <algorithm>
 #include <numeric>
+#include <limits>
 
 med_geometrie_element typmai[MED_NBR_GEOMETRIE_MAILLE+2] = { MED_POINT1,
                                                              MED_SEG2,
@@ -777,7 +778,7 @@ double MEDLoader::GetTimeAttachedOnFieldIteration(const char *fileName, const ch
   //
   bool found=false;
   bool found2=false;
-  double ret;
+  double ret=std::numeric_limits<double>::max();
   for(int i=0;i<nbFields && !found;i++)
     {
       med_int ncomp=MEDnChamp(fid,i+1);
@@ -1756,7 +1757,7 @@ ParaMEDMEM::MEDCouplingFieldDouble *MEDLoaderNS::readFieldDoubleLev2(const char
         {
           std::vector<int> ci(cellIds.size());
           std::transform(cellIds.begin(),cellIds.end(),ci.begin(),std::bind2nd(std::plus<int>(),-1));
-          ParaMEDMEM::MEDCouplingUMesh *mesh2;
+          ParaMEDMEM::MEDCouplingUMesh *mesh2=0;
           if(typeOfOutField==ON_CELLS)
             {
               if(newMesh)