From 5f5464d34bb79b13070b1507e6912f11313e1cb6 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 18 Jan 2010 10:16:31 +0000 Subject: [PATCH] 0020634: [CEA 381] MEDMEM:REMAPPER : intersection error + unsigned getNumberOfNodesConstituentTheSon2(unsigned sonId, const int *nodalConn, int lgth) const; --- src/INTERP_KERNEL/CellModel.cxx | 29 +++++++++++++++++++++++++++++ src/INTERP_KERNEL/CellModel.hxx | 1 + 2 files changed, 30 insertions(+) diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 418936050..77a648582 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -313,4 +313,33 @@ namespace INTERP_KERNEL } } } + + //================================================================================ + /*! + * \brief Return number of nodes in sonId-th son of a Dynamic() cell + */ + //================================================================================ + + unsigned CellModel::getNumberOfNodesConstituentTheSon2(unsigned sonId, const int *nodalConn, int lgth) const + { + if(!isDynamic()) + return getNumberOfNodesConstituentTheSon(sonId); + + if(_dim==2)//polygon + { + return 2; + } + else + {//polyedron + const int *where=nodalConn; + for(int i=0;i