From: geay Date: Thu, 22 May 2014 15:18:25 +0000 (+0200) Subject: OK for first tests in 3D. X-Git-Tag: V7_5_0a1~2^2~32^2~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=568c19b98cdb9973fc7e08ddd3a85b196b670aff;p=tools%2Fmedcoupling.git OK for first tests in 3D. --- diff --git a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx index b73244d43..9436290c9 100644 --- a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx @@ -291,14 +291,13 @@ void FindHole(const INTERP_KERNEL::BoxSplittingOptions& bso, const InternalPatch if(signature[i]==0) if(len>= 2*minCellDirection && i >= minCellDirection-1 && i <= len-minCellDirection-1) hole.push_back(i); - if (hole.size()>0) + if(!hole.empty()) { double center(((double)len/2.)); for(std::size_t i=0;igetConstPart()[axisId].first+1; @@ -331,6 +330,8 @@ void FindInflection(const INTERP_KERNEL::BoxSplittingOptions& bso, const Interna // Gradient absolute value for ( unsigned int i=1;i si empty le reste plante ! + continue; for (unsigned int i=0;i& st, c { nxMin=std::min(nxMin,k); nxMax=std::max(nxMax,k); nyMin=std::min(nyMin,j); nyMax=std::max(nyMax,j); - nzMin=std::min(nyMin,i); nzMax=std::max(nyMax,i); + nzMin=std::min(nzMin,i); nzMax=std::max(nzMax,i); ret++; } }