From 8e72a2fe1ee7bf3a2fddc5c2c41301471ad97d8b Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 20 Feb 2012 16:21:50 +0000 Subject: [PATCH] Correction of bug on buildDescendingConnectivity2 on 3D mesh with shared faces. --- src/INTERP_KERNEL/CellModel.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 4c1ea74dd..f57dcab21 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -438,6 +438,9 @@ namespace INTERP_KERNEL if(it==tmp.begin()) return true; if(it!=tmp.end()) + return _dim!=1; + std::vector::reverse_iterator it2=std::search(tmp.rbegin(),tmp.rend(),conn2,conn2+lgth); + if(it2!=tmp.rend()) return false; throw INTERP_KERNEL::Exception("CellModel::getOrientationStatus : Request of orientation status of non equal connectively cells !"); } -- 2.39.2