From d64e215f5024440db3a328342a5329ae5dcca524 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 30 Nov 2010 08:24:06 +0000 Subject: [PATCH] no warning. --- src/INTERP_KERNEL/InterpKernelCellSimplify.cxx | 2 +- src/INTERP_KERNEL/SplitterTetra.txx | 2 +- src/INTERP_KERNEL/TriangulationIntersector.txx | 3 +-- src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx | 2 +- src/MEDCoupling/MEDCouplingUMesh.cxx | 2 +- src/MEDLoader/MEDFileMeshLL.cxx | 2 +- src/MEDLoader/MEDLoader.cxx | 5 +++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx b/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx index a1389919e..57b668c28 100644 --- a/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx +++ b/src/INTERP_KERNEL/InterpKernelCellSimplify.cxx @@ -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++) { diff --git a/src/INTERP_KERNEL/SplitterTetra.txx b/src/INTERP_KERNEL/SplitterTetra.txx index d1e084876..fd0d06a82 100644 --- a/src/INTERP_KERNEL/SplitterTetra.txx +++ b/src/INTERP_KERNEL/SplitterTetra.txx @@ -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]; diff --git a/src/INTERP_KERNEL/TriangulationIntersector.txx b/src/INTERP_KERNEL/TriangulationIntersector.txx index de8a83954..0c17ed0c9 100644 --- a/src/INTERP_KERNEL/TriangulationIntersector.txx +++ b/src/INTERP_KERNEL/TriangulationIntersector.txx @@ -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 ms; for(int i=0;i #include #include +#include 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::max(); for(int i=0;i ci(cellIds.size()); std::transform(cellIds.begin(),cellIds.end(),ci.begin(),std::bind2nd(std::plus(),-1)); - ParaMEDMEM::MEDCouplingUMesh *mesh2; + ParaMEDMEM::MEDCouplingUMesh *mesh2=0; if(typeOfOutField==ON_CELLS) { if(newMesh) -- 2.39.2