Changeset 17605
- Timestamp:
- 03/31/14 14:41:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Inputs/PentaInput.cpp
r17514 r17605 335 335 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error_("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")"); 336 336 337 /*vertically integrate depending on type :*/337 /*vertically integrate depending on type (and use P1 interpolation from now on)*/ 338 338 switch(this->element_type){ 339 case P1Enum: { 340 GaussPenta *gauss=new GaussPenta(); 341 for(int iv=0;iv<3;iv++){ 342 gauss->GaussVertex(iv); 343 thickness_input->GetInputValue(&thickness,gauss); 344 this->values[iv]=0.5*(this->values[iv]+this->values[iv+3]) * thickness; 345 this->values[iv+3]=this->values[iv]; 346 } 347 delete gauss; 348 return; } 339 case P1Enum: 340 case P1bubbleEnum: 341 case P2Enum: 342 { 343 this->element_type=P1Enum; 344 GaussPenta *gauss=new GaussPenta(); 345 for(int iv=0;iv<3;iv++){ 346 gauss->GaussVertex(iv); 347 thickness_input->GetInputValue(&thickness,gauss); 348 this->values[iv]=0.5*(this->values[iv]+this->values[iv+3]) * thickness; 349 this->values[iv+3]=this->values[iv]; 350 } 351 delete gauss; 352 return; 353 } 349 354 default: 350 355 _error_("not supported yet for type "<<EnumToStringx(this->element_type));
Note:
See TracChangeset
for help on using the changeset viewer.