From e6cc32b868e4d429162c131ea7f4a29f7396d44c Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 8 Jun 2012 12:56:52 +0000 Subject: [PATCH] Bug correction for buildDescendingConnectivity on mesh with meshDim==1. --- src/INTERP_KERNEL/CellModel.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 687901388..528bacca3 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -119,12 +119,19 @@ namespace INTERP_KERNEL break; case NORM_SEG2: { - _nb_of_pts=2; _nb_of_sons=0; _dim=1; _extruded_type=NORM_QUAD4; _quadratic_type=NORM_SEG3; _is_simplex=true; _is_extruded=true; + _nb_of_pts=2; _nb_of_sons=2; _dim=1; _extruded_type=NORM_QUAD4; _quadratic_type=NORM_SEG3; _is_simplex=true; _is_extruded=true; + _sons_type[0]=NORM_POINT1; _sons_type[1]=NORM_POINT1; + _sons_con[0][0]=0; _nb_of_sons_con[0]=1; + _sons_con[1][0]=1; _nb_of_sons_con[1]=1; } break; case NORM_SEG3: { - _nb_of_pts=3; _nb_of_sons=0; _dim=1; _extruded_type=NORM_QUAD8; _linear_type=NORM_SEG2; _quadratic=true; _is_simplex=false; + _nb_of_pts=3; _nb_of_sons=3; _dim=1; _extruded_type=NORM_QUAD8; _linear_type=NORM_SEG2; _quadratic=true; _is_simplex=false; + _sons_type[0]=NORM_POINT1; _sons_type[1]=NORM_POINT1; _sons_type[2]=NORM_POINT1; + _sons_con[0][0]=0; _nb_of_sons_con[0]=1; + _sons_con[1][0]=1; _nb_of_sons_con[1]=1; + _sons_con[2][0]=2; _nb_of_sons_con[2]=1; } break; case NORM_TETRA4: -- 2.39.2