Changeset 3613
- Timestamp:
- 04/23/10 13:08:53 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Penta.cpp
r3612 r3613 529 529 CreateKMatrixPrognostic( Kgg,inputs,analysis_type,sub_analysis_type); 530 530 } 531 else if (analysis_type==BalancedthicknessAnalysisEnum){ 532 533 CreateKMatrixBalancedthickness( Kgg,inputs,analysis_type,sub_analysis_type); 534 } 535 else if (analysis_type==BalancedvelocitiesAnalysisEnum){ 536 537 CreateKMatrixBalancedvelocities( Kgg,inputs,analysis_type,sub_analysis_type); 538 } 531 539 else if (analysis_type==ThermalAnalysisEnum){ 532 540 … … 540 548 ISSMERROR("%s%i%s\n","analysis: ",analysis_type," not supported yet"); 541 549 } 550 551 } 552 /*}}}*/ 553 /*FUNCTION CreateKMatrixBalancedthickness {{{1*/ 554 555 void Penta::CreateKMatrixBalancedthickness(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type){ 556 557 /*Collapsed formulation: */ 558 Tria* tria=NULL; 559 560 /*If on water, skip: */ 561 if(this->properties.onwater)return; 562 563 /*Is this element on the bed? :*/ 564 if(!this->properties.onbed)return; 565 566 /*Spawn Tria element from the base of the Penta: */ 567 tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria. 568 tria->CreateKMatrix(Kgg,inputs, analysis_type,sub_analysis_type); 569 delete tria; 570 return; 571 572 } 573 /*}}}*/ 574 /*FUNCTION CreateKMatrixBalancedvelocities {{{1*/ 575 576 void Penta::CreateKMatrixBalancedvelocities(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type){ 577 578 /*Collapsed formulation: */ 579 Tria* tria=NULL; 580 581 /*If on water, skip: */ 582 if(this->properties.onwater)return; 583 584 /*Is this element on the bed? :*/ 585 if(!this->properties.onbed)return; 586 587 /*Spawn Tria element from the base of the Penta: */ 588 tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria. 589 tria->CreateKMatrix(Kgg,inputs, analysis_type,sub_analysis_type); 590 delete tria; 591 return; 542 592 543 593 } … … 1567 1617 CreatePVectorPrognostic( pg,inputs,analysis_type,sub_analysis_type); 1568 1618 } 1619 else if (analysis_type==BalancedthicknessAnalysisEnum){ 1620 1621 CreatePVectorPrognostic( pg,inputs,analysis_type,sub_analysis_type); 1622 } 1623 else if (analysis_type==BalancedvelocitiesAnalysisEnum){ 1624 1625 CreatePVectorPrognostic( pg,inputs,analysis_type,sub_analysis_type); 1626 } 1569 1627 else if (analysis_type==ThermalAnalysisEnum){ 1570 1628 … … 1579 1637 } 1580 1638 1639 } 1640 /*}}}*/ 1641 /*FUNCTION CreatePVectorBalancedthickness {{{1*/ 1642 1643 void Penta::CreatePVectorBalancedthickness( Vec pg, void* inputs, int analysis_type,int sub_analysis_type){ 1644 1645 /*Collapsed formulation: */ 1646 Tria* tria=NULL; 1647 1648 /*If on water, skip: */ 1649 if(this->properties.onwater)return; 1650 1651 /*Is this element on the bed? :*/ 1652 if(!this->properties.onbed)return; 1653 1654 /*Spawn Tria element from the base of the Penta: */ 1655 tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria. 1656 tria->CreatePVector(pg,inputs, analysis_type,sub_analysis_type); 1657 delete tria; 1658 return; 1659 } 1660 /*}}}*/ 1661 /*FUNCTION CreatePVectorBalancedvelocities {{{1*/ 1662 1663 void Penta::CreatePVectorBalancedvelocities( Vec pg, void* inputs, int analysis_type,int sub_analysis_type){ 1664 1665 /*Collapsed formulation: */ 1666 Tria* tria=NULL; 1667 1668 /*If on water, skip: */ 1669 if(this->properties.onwater)return; 1670 1671 /*Is this element on the bed? :*/ 1672 if(!this->properties.onbed)return; 1673 1674 /*Spawn Tria element from the base of the Penta: */ 1675 tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria. 1676 tria->CreatePVector(pg,inputs, analysis_type,sub_analysis_type); 1677 delete tria; 1678 return; 1581 1679 } 1582 1680 /*}}}*/ -
issm/trunk/src/c/objects/Penta.h
r3612 r3613 107 107 void CreateKMatrixPrognostic(Mat Kgg,int analysis_type,int sub_analysis_type); 108 108 void CreatePVectorPrognostic( Vec pg, int analysis_type,int sub_analysis_type); 109 void CreateKMatrixBalancedthickness(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type); 110 void CreatePVectorBalancedthickness( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type); 111 void CreateKMatrixBalancedvelocities(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type); 112 void CreatePVectorBalancedvelocities( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type); 109 113 110 114 void CreateKMatrixDiagnosticStokes( Mat Kgg, int analysis_type,int sub_analysis_type);
Note:
See TracChangeset
for help on using the changeset viewer.