Changeset 15752
- Timestamp:
- 08/08/13 11:52:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15751 r15752 406 406 int approximation; 407 407 inputs->GetInputValue(&approximation,ApproximationEnum); 408 if(approximation==HOFSApproximationEnum ){408 if(approximation==HOFSApproximationEnum || approximation==SSAFSApproximationEnum){ 409 409 //Do nothing condensatino already done for Stokes part 410 410 } … … 581 581 int approximation; 582 582 inputs->GetInputValue(&approximation,ApproximationEnum); 583 if(approximation==HOFSApproximationEnum ){583 if(approximation==HOFSApproximationEnum || approximation==SSAFSApproximationEnum){ 584 584 //Do nothing, condensation already done in PVectorCoupling 585 585 } … … 7406 7406 7407 7407 /*compute all stiffness matrices for this element*/ 7408 ElementMatrix* Ke1=CreateKMatrixDiagnosticSSA3d(); 7409 ElementMatrix* Ke2=CreateKMatrixDiagnosticFS(); 7408 ElementMatrix* Ke1=CreateKMatrixDiagnosticFS(); 7409 int indices[3]={18,19,20}; 7410 Ke1->StaticCondensation(3,&indices[0]); 7411 int init = this->element_type; 7412 this->element_type=P1Enum; //P1 needed for HO 7413 ElementMatrix* Ke2=CreateKMatrixDiagnosticSSA3d(); 7414 this->element_type=init; 7410 7415 ElementMatrix* Ke3=CreateKMatrixCouplingSSAFS(); 7411 7416 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2,Ke3); … … 8427 8432 8428 8433 /*compute all load vectors for this element*/ 8434 int init = this->element_type; 8435 this->element_type=P1Enum; 8429 8436 ElementVector* pe1=CreatePVectorDiagnosticSSA(); 8437 this->element_type=init; 8430 8438 ElementVector* pe2=CreatePVectorDiagnosticFS(); 8439 int indices[3]={18,19,20}; 8440 this->element_type=MINIcondensedEnum; 8441 ElementMatrix* Ke = CreateKMatrixDiagnosticFS(); 8442 this->element_type=init; 8443 pe2->StaticCondensation(Ke,3,&indices[0]); 8444 delete Ke; 8431 8445 ElementVector* pe3=CreatePVectorCouplingSSAFS(); 8432 8446 ElementVector* pe =new ElementVector(pe1,pe2,pe3);
Note:
See TracChangeset
for help on using the changeset viewer.