Changeset 21419
- Timestamp:
- 11/23/16 09:20:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/ExtrapolationAnalysis.cpp
r21401 r21419 84 84 85 85 /*Intermediaries */ 86 bool extrapolatebydiffusion = true; 86 87 int dim, domaintype, extrapolationcase; 87 88 int i,row,col,stabilization; 88 bool extrapolatebydiffusion;89 89 IssmDouble Jdet,D_scalar,h; 90 90 IssmDouble norm_dlsf; … … 128 128 workelement->GetVerticesCoordinates(&xyz_list); 129 129 130 if(element->ObjectEnum()==PentaEnum){ 131 for(i=0;i<3;i++) xyz_list[3*i+2] = 0.; 132 for(i=3;i<6;i++) xyz_list[3*i+2] = 1.; 133 } 134 130 135 /* Start looping on the number of gaussian points: */ 131 136 Gauss* gauss=workelement->NewGauss(2); … … 139 144 D_scalar=gauss->weight*Jdet; 140 145 141 extrapolatebydiffusion=true;142 146 if(extrapolatebydiffusion){ 143 147 … … 214 218 }/*}}}*/ 215 219 ElementVector* ExtrapolationAnalysis::CreatePVector(Element* element){/*{{{*/ 216 217 /*Intermediaries */ 218 Element* workelement=NULL; 219 220 /*Get problem dimension*/ 221 int extrapolationcase=GetExtrapolationCase(element); 222 switch(extrapolationcase){ 223 case 0: 224 if(!element->IsOnBase()) return NULL; 225 workelement = element->SpawnBasalElement(); 226 break; 227 case 1: case 2: case 3: workelement=element; break; 228 } 229 230 /*Fetch number of nodes */ 231 int numnodes = workelement->GetNumberOfNodes(); 232 233 /*Initialize Element vector*/ 234 ElementVector* pe = workelement->NewElementVector(); 235 236 if(extrapolationcase==0){ 237 workelement->DeleteMaterials(); 238 delete workelement; 239 } 240 241 return pe; 220 return NULL; 221 242 222 }/*}}}*/ 243 223 void ExtrapolationAnalysis::GetB(IssmDouble* B,Element* element,IssmDouble* xyz_list,Gauss* gauss, int dim){/*{{{*/
Note:
See TracChangeset
for help on using the changeset viewer.