Changeset 4882
- Timestamp:
- 07/29/10 11:52:20 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Makefile.am
r4873 r4882 163 163 ./objects/Elements/PentaHook.h\ 164 164 ./objects/Elements/PentaHook.cpp\ 165 ./objects/Elements/PentaRef.h\ 166 ./objects/Elements/PentaRef.cpp\ 165 167 ./objects/Materials/Matice.h\ 166 168 ./objects/Materials/Matice.cpp\ … … 727 729 ./objects/Elements/PentaHook.h\ 728 730 ./objects/Elements/PentaHook.cpp\ 731 ./objects/Elements/PentaRef.h\ 732 ./objects/Elements/PentaRef.cpp\ 729 733 ./objects/Materials/Matice.h\ 730 734 ./objects/Materials/Matice.cpp\ -
issm/trunk/src/c/objects/Elements/Penta.cpp
r4880 r4882 27 27 this->matpar=NULL; 28 28 this->neighbors=NULL; 29 30 29 this->inputs=NULL; 30 this->parameters=NULL; 31 31 this->results=NULL; 32 this->parameters=NULL;33 32 } 34 33 /*}}}*/ … … 41 40 /*}}}*/ 42 41 /*FUNCTION Penta::Penta(int id, int index, IoModel* iomodel,int nummodels) {{{1*/ 43 Penta::Penta(int penta_id, int index, IoModel* iomodel,int nummodels) :44 45 PentaHook(nummodels,index+1,iomodel->numberofelements+1) //index+1: matice id, iomodel->numberofelements+1: matpar id42 Penta::Penta(int penta_id, int index, IoModel* iomodel,int nummodels) 43 :PentaRef(nummodels) 44 ,PentaHook(nummodels,index+1,iomodel->numberofelements+1) //index+1: matice id, iomodel->numberofelements+1: matpar id 46 45 { //i is the element index 47 46 … … 58 57 this->id=penta_id; 59 58 60 /*penta_elements_ids: */ 61 if isnan(iomodel->upperelements[index]){ 62 penta_elements_ids[1]=this->id; //upper penta is the same penta 63 } 64 else{ 65 penta_elements_ids[1]=(int)(iomodel->upperelements[index]); 66 } 67 68 if isnan(iomodel->lowerelements[index]){ 69 penta_elements_ids[0]=this->id; //lower penta is the same penta 70 } 71 else{ 72 penta_elements_ids[0]=(int)(iomodel->lowerelements[index]); 73 } 59 /*Build neighbors list*/ 60 if isnan(iomodel->upperelements[index]) penta_elements_ids[1]=this->id; //upper penta is the same penta 61 else penta_elements_ids[1]=(int)(iomodel->upperelements[index]); 62 if isnan(iomodel->lowerelements[index]) penta_elements_ids[0]=this->id; //lower penta is the same penta 63 else penta_elements_ids[0]=(int)(iomodel->lowerelements[index]); 74 64 this->InitHookNeighbors(penta_elements_ids); 75 65 … … 1752 1742 /*Intermediaries*/ 1753 1743 IssmInt i; 1754 int penta_node_ids[6]; 1755 int penta_vertex_ids[6]; 1756 double nodeinputs[6]; 1744 int penta_type; 1745 int penta_node_ids[6]; 1746 int penta_vertex_ids[6]; 1747 double nodeinputs[6]; 1757 1748 1758 1749 /*Checks if debuging*/ … … 1760 1751 ISSMASSERT(iomodel->elements); 1761 1752 /*}}}*/ 1753 1754 /*Recover element type*/ 1755 if ((analysis_type==PrognosticAnalysisEnum || analysis_type==BalancedthicknessAnalysisEnum) && iomodel->prognostic_DG){ 1756 /*P1 Discontinuous Galerkin*/ 1757 penta_type=P1DGEnum; 1758 } 1759 else{ 1760 /*P1 Continuous Galerkin*/ 1761 penta_type=P1Enum; 1762 } 1763 this->SetElementType(penta_type,analysis_counter); 1762 1764 1763 1765 /*Recover vertices ids needed to initialize inputs*/ -
issm/trunk/src/c/objects/Elements/Penta.h
r4880 r4882 3 3 */ 4 4 5 #ifndef _PENTA_H 6 #define _PENTA_H 5 #ifndef _PENTA_H_ 6 #define _PENTA_H_ 7 7 8 8 /*Headers:*/ … … 10 10 #include "./Element.h" 11 11 #include "./PentaHook.h" 12 #include "./PentaRef.h" 12 13 class Object; 13 14 class Parameters; … … 19 20 class Tria; 20 21 22 #include "../../include/include.h" 21 23 #include "../../shared/Exceptions/exceptions.h" 22 #include "../../include/include.h"23 24 24 /*}}}*/ 25 25 26 class Penta: public Element,public PentaHook {26 class Penta: public Element,public PentaHook,public PentaRef{ 27 27 28 28 public: -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4880 r4882 2080 2080 tria_type=P1Enum; 2081 2081 } 2082 2083 /*Set TriaRef*/2084 2082 this->SetElementType(tria_type,analysis_counter); 2085 2083 -
issm/trunk/src/c/objects/Inputs/PentaVertexInput.cpp
r4698 r4882 24 24 /*}}}*/ 25 25 /*FUNCTION PentaVertexInput::PentaVertexInput(int in_enum_type,double* values){{{1*/ 26 PentaVertexInput::PentaVertexInput(int in_enum_type,double* in_values){ 26 PentaVertexInput::PentaVertexInput(int in_enum_type,double* in_values) 27 :PentaRef(1) 28 { 29 30 /*Set PentaRef*/ 31 this->SetElementType(P1Enum,0); 32 this->element_type=P1Enum; 27 33 28 34 enum_type=in_enum_type; -
issm/trunk/src/c/objects/Inputs/PentaVertexInput.h
r4704 r4882 10 10 /*{{{1*/ 11 11 #include "./Input.h" 12 #include "../Elements/PentaRef.h" 12 13 /*}}}*/ 13 14 14 class PentaVertexInput: public Input {15 class PentaVertexInput: public Input, public PentaRef{ 15 16 16 17 public: -
issm/trunk/src/c/objects/objects.h
r4873 r4882 37 37 #include "./Elements/Penta.h" 38 38 #include "./Elements/PentaHook.h" 39 #include "./Elements/PentaRef.h" 39 40 #include "./Elements/Tria.h" 40 41 #include "./Elements/TriaHook.h"
Note:
See TracChangeset
for help on using the changeset viewer.