Changeset 21715
- Timestamp:
- 05/16/17 16:03:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp ¶
r21714 r21715 1033 1033 1034 1034 /*Output*/ 1035 int num indices;1035 int numseg; 1036 1036 int* indices = NULL; 1037 1037 1038 1038 switch(finiteelement){ 1039 1039 case P1Enum: case P1DGEnum: 1040 num indices = 3*2;1041 indices = xNew<int>(numindices);1040 numseg = 3; 1041 indices = xNew<int>(numseg*2); 1042 1042 indices[0*2 + 0] = 0; indices[0*2 + 1] = 3; 1043 1043 indices[1*2 + 0] = 1; indices[1*2 + 1] = 4; … … 1045 1045 break; 1046 1046 case P1bubbleEnum: case P1bubblecondensedEnum: 1047 num indices = 3*2;1048 indices = xNew<int>(numindices);1047 numseg = 3; 1048 indices = xNew<int>(numseg*2); 1049 1049 indices[0*2 + 0] = 0; indices[0*2 + 1] = 3; 1050 1050 indices[1*2 + 0] = 1; indices[1*2 + 1] = 4; … … 1052 1052 break; 1053 1053 case P2xP1Enum: 1054 num indices = 6*2;1055 indices = xNew<int>(numindices);1054 numseg = 6; 1055 indices = xNew<int>(numseg*2); 1056 1056 indices[0*2 + 0] = 0; indices[0*2 + 1] = 3; 1057 1057 indices[1*2 + 0] = 1; indices[1*2 + 1] = 4; … … 1062 1062 break; 1063 1063 case P1xP2Enum: 1064 num indices = 3*2;1065 indices = xNew<int>(numindices);1064 numseg = 3; 1065 indices = xNew<int>(numseg*2); 1066 1066 indices[0*2 + 0] = 0; indices[0*2 + 1] = 6; 1067 1067 indices[1*2 + 0] = 1; indices[1*2 + 1] = 7; … … 1069 1069 break; 1070 1070 case P1xP3Enum: 1071 num indices = 3*2;1072 indices = xNew<int>(numindices);1071 numseg = 3; 1072 indices = xNew<int>(numseg*2); 1073 1073 indices[0*2 + 0] = 0; indices[0*2 + 1] = 6; 1074 1074 indices[1*2 + 0] = 1; indices[1*2 + 1] = 7; … … 1076 1076 break; 1077 1077 case P2Enum: 1078 num indices = 6*2;1079 indices = xNew<int>(numindices);1078 numseg = 6; 1079 indices = xNew<int>(numseg*2); 1080 1080 indices[0*2 + 0] = 0; indices[0*2 + 1] = 6; 1081 1081 indices[1*2 + 0] = 1; indices[1*2 + 1] = 7; … … 1086 1086 break; 1087 1087 case P2bubbleEnum: 1088 num indices = 6*2;1089 indices = xNew<int>(numindices);1088 numseg = 6; 1089 indices = xNew<int>(numseg*2); 1090 1090 indices[0*2 + 0] = 0; indices[0*2 + 1] = 6; 1091 1091 indices[1*2 + 0] = 1; indices[1*2 + 1] = 7; … … 1096 1096 break; 1097 1097 case P2xP4Enum: 1098 num indices = 6*2;1099 indices = xNew<int>(numindices);1098 numseg = 6; 1099 indices = xNew<int>(numseg*2); 1100 1100 indices[0*2 + 0] = 0; indices[0*2 + 1] = 6; 1101 1101 indices[1*2 + 0] = 1; indices[1*2 + 1] = 7; … … 1110 1110 1111 1111 /*Assign output pointer*/ 1112 *pnumseg = num indices/2;1112 *pnumseg = numseg; 1113 1113 *pindices = indices; 1114 1114 }
Note:
See TracChangeset
for help on using the changeset viewer.