Changeset 5739 for issm/trunk/src/c/objects/Gauss/GaussTria.cpp
- Timestamp:
- 09/10/10 09:26:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Gauss/GaussTria.cpp
r5734 r5739 56 56 weights=(double*)xmalloc(numgauss*sizeof(double)); 57 57 58 /*Reverse grid1 and 2 if necessary*/58 /*Reverse index1 and 2 if necessary*/ 59 59 if (index1>index2){ 60 60 index3=index1; index1=index2; index2=index3; … … 150 150 coord2=ONETHIRD; 151 151 coord3=ONETHIRD; 152 153 } 154 /*}}}*/ 155 /*FUNCTION GaussTria::GaussEdgeCenter{{{1*/ 156 void GaussTria::GaussEdgeCenter(int index1,int index2){ 157 158 int index3; 159 160 /*Reverse index1 and 2 if necessary*/ 161 if (index1>index2){ 162 index3=index1; index1=index2; index2=index3; 163 } 164 165 /*update static arrays*/ 166 if (index1==0 && index2==1){ 167 coord1=0.5; 168 coord2=0.5; 169 coord3=0.0; 170 } 171 else if (index1==0 && index2==2){ 172 coord1=0.5; 173 coord2=0.0; 174 coord3=0.5; 175 } 176 else if (index1==1 && index2==2){ 177 coord1=0.0; 178 coord2=0.5; 179 coord3=0.5; 180 } 181 else 182 ISSMERROR("The 2 indices provided are not supported yet (user provided %i and %i)",index1,index2); 152 183 153 184 }
Note:
See TracChangeset
for help on using the changeset viewer.