Changeset 17962 for issm/trunk-jpl/src/c/classes/Elements/Seg.cpp
- Timestamp:
- 05/08/14 10:52:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Seg.cpp
r17516 r17962 19 19 #define NUMVERTICES 2 20 20 /*Constructors/destructor/copy*/ 21 /*FUNCTION Seg::Seg(int id, int sid,int index, IoModel* iomodel,int nummodels){{{*/ 22 Seg::Seg(int seg_id, int seg_sid, int index, IoModel* iomodel,int nummodels) 21 Seg::Seg(int seg_id, int seg_sid, int index, IoModel* iomodel,int nummodels)/*{{{*/ 23 22 :SegRef(nummodels),ElementHook(nummodels,index+1,NUMVERTICES,iomodel){ 24 23 … … 40 39 } 41 40 /*}}}*/ 42 /*FUNCTION Seg::~Seg(){{{*/ 43 Seg::~Seg(){ 41 Seg::~Seg(){/*{{{*/ 44 42 this->parameters=NULL; 45 43 } 46 44 /*}}}*/ 47 /*FUNCTION Seg::copy {{{*/ 48 Object* Seg::copy() { 45 Object* Seg::copy(){/*{{{*/ 49 46 _error_("not implemented yet"); 50 47 } 51 48 /*}}}*/ 52 49 53 /*FUNCTION Seg::CharacteristicLength{{{*/ 54 IssmDouble Seg::CharacteristicLength(void){ 50 IssmDouble Seg::CharacteristicLength(void){/*{{{*/ 55 51 56 52 IssmDouble xyz_list[NUMVERTICES][3]; … … 65 61 } 66 62 /*}}}*/ 67 /*FUNCTION Seg::FiniteElement{{{*/ 68 int Seg::FiniteElement(void){ 63 int Seg::FiniteElement(void){/*{{{*/ 69 64 return this->element_type; 70 65 } 71 66 /*}}}*/ 72 /*FUNCTION Seg::ObjectEnum{{{*/ 73 int Seg::ObjectEnum(void){ 67 int Seg::ObjectEnum(void){/*{{{*/ 74 68 75 69 return SegEnum; … … 77 71 } 78 72 /*}}}*/ 79 80 void Seg::GetIcefrontCoordinates(IssmDouble** pxyz_front,IssmDouble* xyz_list,int levelsetenum){/*{{{*/ 73 void Seg::GetIcefrontCoordinates(IssmDouble** pxyz_front,IssmDouble* xyz_list,int levelsetenum){/*{{{*/ 81 74 82 75 /* Intermediaries */ … … 106 99 *pxyz_front=xyz_front; 107 100 }/*}}}*/ 108 /*FUNCTION Seg::GetNumberOfNodes;{{{*/ 109 int Seg::GetNumberOfNodes(void){ 101 int Seg::GetNumberOfNodes(void){/*{{{*/ 110 102 return this->NumberofNodes(); 111 103 } 112 104 /*}}}*/ 113 /*FUNCTION Seg::GetNumberOfVertices;{{{*/ 114 int Seg::GetNumberOfVertices(void){ 105 int Seg::GetNumberOfVertices(void){/*{{{*/ 115 106 return NUMVERTICES; 116 107 } 117 108 /*}}}*/ 118 /*FUNCTION Seg::GetVerticesCoordinates(IssmDouble** pxyz_list){{{*/ 119 void Seg::GetVerticesCoordinates(IssmDouble** pxyz_list){ 109 void Seg::GetVerticesCoordinates(IssmDouble** pxyz_list){/*{{{*/ 120 110 121 111 IssmDouble* xyz_list = xNew<IssmDouble>(NUMVERTICES*3); … … 126 116 127 117 }/*}}}*/ 128 bool Seg::IsIcefront(void){/*{{{*/118 bool Seg::IsIcefront(void){/*{{{*/ 129 119 130 120 bool isicefront; … … 145 135 return isicefront; 146 136 }/*}}}*/ 147 /*FUNCTION Seg::JacobianDeterminant{{{*/ 148 void Seg::JacobianDeterminant(IssmDouble* pJdet,IssmDouble* xyz_list,Gauss* gauss){ 137 void Seg::JacobianDeterminant(IssmDouble* pJdet,IssmDouble* xyz_list,Gauss* gauss){/*{{{*/ 149 138 150 139 _assert_(gauss->Enum()==GaussSegEnum); … … 153 142 } 154 143 /*}}}*/ 155 /*FUNCTION Seg::JacobianDeterminantSurface{{{*/ 156 void Seg::JacobianDeterminantSurface(IssmDouble* pJdet,IssmDouble* xyz_list,Gauss* gauss){ 144 void Seg::JacobianDeterminantSurface(IssmDouble* pJdet,IssmDouble* xyz_list,Gauss* gauss){/*{{{*/ 157 145 158 146 *pJdet = 1.; … … 160 148 } 161 149 /*}}}*/ 162 /*FUNCTION Seg::NewGauss(){{{*/ 163 Gauss* Seg::NewGauss(void){ 150 Gauss* Seg::NewGauss(void){/*{{{*/ 164 151 return new GaussSeg(); 165 152 } 166 153 /*}}}*/ 167 /*FUNCTION Seg::NewGauss(int order){{{*/ 168 Gauss* Seg::NewGauss(int order){ 154 Gauss* Seg::NewGauss(int order){/*{{{*/ 169 155 return new GaussSeg(order); 170 156 } 171 157 /*}}}*/ 172 /*FUNCTION Seg::NewGauss(IssmDouble* xyz_list, IssmDouble* xyz_list_front,int order){{{*/ 173 Gauss* Seg::NewGauss(IssmDouble* xyz_list, IssmDouble* xyz_list_front,int order){ 158 Gauss* Seg::NewGauss(IssmDouble* xyz_list, IssmDouble* xyz_list_front,int order){/*{{{*/ 174 159 175 160 /*Output*/ … … 189 174 } 190 175 /*}}}*/ 191 /*FUNCTION Seg::NodalFunctions{{{*/ 192 void Seg::NodalFunctions(IssmDouble* basis, Gauss* gauss){ 176 void Seg::NodalFunctions(IssmDouble* basis, Gauss* gauss){/*{{{*/ 193 177 194 178 _assert_(gauss->Enum()==GaussSegEnum); … … 197 181 } 198 182 /*}}}*/ 199 /*FUNCTION Seg::NodalFunctionsDerivatives{{{*/ 200 void Seg::NodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list,Gauss* gauss){ 183 void Seg::NodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list,Gauss* gauss){/*{{{*/ 201 184 202 185 _assert_(gauss->Enum()==GaussSegEnum); … … 205 188 } 206 189 /*}}}*/ 207 /*FUNCTION Seg::NormalSection{{{*/ 208 void Seg::NormalSection(IssmDouble* normal,IssmDouble* xyz_list_front){ 190 void Seg::NormalSection(IssmDouble* normal,IssmDouble* xyz_list_front){/*{{{*/ 209 191 210 192 IssmDouble* xyz_list = xNew<IssmDouble>(NUMVERTICES*3);
Note:
See TracChangeset
for help on using the changeset viewer.