Changeset 18064 for issm/trunk-jpl/src/c/classes/Loads/Riftfront.cpp
- Timestamp:
- 05/26/14 21:40:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Riftfront.cpp
r17924 r18064 20 20 21 21 /*Riftfront constructors and destructor*/ 22 /*FUNCTION Riftfront::Riftfront(){{{*/ 23 Riftfront::Riftfront(){ 22 Riftfront::Riftfront(){/*{{{*/ 24 23 this->parameters=NULL; 25 24 this->hnodes=NULL; … … 31 30 } 32 31 /*}}}*/ 33 /*FUNCTION Riftfront::Riftfront(int id, int i, IoModel* iomodel,int analysis_type){{{*/ 34 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel,int riftfront_analysis_type){ 32 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel,int riftfront_analysis_type){/*{{{*/ 35 33 36 34 /*data: */ … … 101 99 } 102 100 /*}}}*/ 103 /*FUNCTION Riftfront::~Riftfront(){{{*/ 104 Riftfront::~Riftfront(){ 101 Riftfront::~Riftfront(){/*{{{*/ 105 102 this->parameters=NULL; 106 103 delete hnodes; … … 111 108 112 109 /*Object virtual functions definitions:*/ 113 /*FUNCTION Riftfront::Echo {{{*/ 114 void Riftfront::Echo(void){ 110 void Riftfront::Echo(void){/*{{{*/ 115 111 116 112 _printf_("Riftfront:\n"); … … 138 134 } 139 135 /*}}}*/ 140 /*FUNCTION Riftfront::DeepEcho{{{*/ 141 void Riftfront::DeepEcho(void){ 136 void Riftfront::DeepEcho(void){/*{{{*/ 142 137 143 138 _printf_("Riftfront:\n"); … … 151 146 } 152 147 /*}}}*/ 153 /*FUNCTION Riftfront::Id {{{*/ 154 int Riftfront::Id(void){ return id; } 155 /*}}}*/ 156 /*FUNCTION Riftfront::ObjectEnum{{{*/ 157 int Riftfront::ObjectEnum(void){ 148 int Riftfront::Id(void){ return id; }/*{{{*/ 149 /*}}}*/ 150 int Riftfront::ObjectEnum(void){/*{{{*/ 158 151 159 152 return RiftfrontEnum; … … 161 154 } 162 155 /*}}}*/ 163 /*FUNCTION Riftfront::copy {{{*/ 164 Object* Riftfront::copy() { 156 Object* Riftfront::copy() {/*{{{*/ 165 157 166 158 Riftfront* riftfront=NULL; … … 209 201 210 202 /*Update virtual functions definitions:*/ 211 /*FUNCTION Riftfront::InputUpdateFromConstant(bool constant,int name) {{{*/ 212 void Riftfront::InputUpdateFromConstant(bool constant,int name){ 213 } 214 /*}}}*/ 215 /*FUNCTION Riftfront::InputUpdateFromConstant(IssmDouble constant,int name) {{{*/ 216 void Riftfront::InputUpdateFromConstant(IssmDouble constant,int name){ 217 218 } 219 /*}}}*/ 220 /*FUNCTION Riftfront::InputUpdateFromVector(IssmDouble* constant,int name) {{{*/ 221 void Riftfront::InputUpdateFromVector(IssmDouble* vector, int name, int type){ 203 void Riftfront::InputUpdateFromConstant(bool constant,int name){/*{{{*/ 204 } 205 /*}}}*/ 206 void Riftfront::InputUpdateFromConstant(IssmDouble constant,int name){/*{{{*/ 207 208 } 209 /*}}}*/ 210 void Riftfront::InputUpdateFromVector(IssmDouble* vector, int name, int type){/*{{{*/ 222 211 223 212 _error_("not implemented yet"); … … 227 216 228 217 /*Load virtual functions definitions:*/ 229 /*FUNCTION Riftfront::Configure {{{*/ 230 void Riftfront::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 218 void Riftfront::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){/*{{{*/ 231 219 232 220 /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective … … 246 234 } 247 235 /*}}}*/ 248 /*FUNCTION Riftfront::IsPenalty{{{*/ 249 bool Riftfront::IsPenalty(void){ 236 bool Riftfront::IsPenalty(void){/*{{{*/ 250 237 return true; 251 238 } 252 239 /*}}}*/ 253 /*FUNCTION Riftfront::SetCurrentConfiguration {{{*/ 254 void Riftfront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 255 256 } 257 /*}}}*/ 258 /*FUNCTION Riftfront::PenaltyCreateKMatrix {{{*/ 259 void Riftfront::PenaltyCreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs,IssmDouble kmax){ 240 void Riftfront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){/*{{{*/ 241 242 } 243 /*}}}*/ 244 void Riftfront::PenaltyCreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs,IssmDouble kmax){/*{{{*/ 260 245 261 246 /*Retrieve parameters: */ … … 282 267 } 283 268 /*}}}*/ 284 /*FUNCTION Riftfront::PenaltyCreatePVector {{{*/ 285 void Riftfront::PenaltyCreatePVector(Vector<IssmDouble>* pf,IssmDouble kmax){ 269 void Riftfront::PenaltyCreatePVector(Vector<IssmDouble>* pf,IssmDouble kmax){/*{{{*/ 286 270 287 271 /*Retrieve parameters: */ … … 308 292 } 309 293 /*}}}*/ 310 /*FUNCTION Riftfront::CreateKMatrix {{{*/ 311 void Riftfront::CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs){ 294 void Riftfront::CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs){/*{{{*/ 312 295 /*do nothing: */ 313 296 return; 314 297 } 315 298 /*}}}*/ 316 /*FUNCTION Riftfront::CreatePVector {{{*/ 317 void Riftfront::CreatePVector(Vector<IssmDouble>* pf){ 299 void Riftfront::CreatePVector(Vector<IssmDouble>* pf){/*{{{*/ 318 300 /*do nothing: */ 319 301 return; 320 302 } 321 303 /*}}}*/ 322 /*FUNCTION Riftfront::GetNodesSidList{{{*/ 323 void Riftfront::GetNodesSidList(int* sidlist){ 304 void Riftfront::GetNodesSidList(int* sidlist){/*{{{*/ 324 305 325 306 _assert_(sidlist); … … 329 310 } 330 311 /*}}}*/ 331 /*FUNCTION Riftfront::GetNodesLidList{{{*/ 332 void Riftfront::GetNodesLidList(int* lidlist){ 312 void Riftfront::GetNodesLidList(int* lidlist){/*{{{*/ 333 313 334 314 _assert_(lidlist); … … 338 318 } 339 319 /*}}}*/ 340 /*FUNCTION Riftfront::GetNumberOfNodes{{{*/ 341 int Riftfront::GetNumberOfNodes(void){ 320 int Riftfront::GetNumberOfNodes(void){/*{{{*/ 342 321 343 322 return NUMVERTICES; 344 323 } 345 324 /*}}}*/ 346 /*FUNCTION Riftfront::InAnalysis{{{*/ 347 bool Riftfront::InAnalysis(int in_analysis_type){ 325 bool Riftfront::InAnalysis(int in_analysis_type){/*{{{*/ 348 326 if (in_analysis_type==this->analysis_type) return true; 349 327 else return false; 350 328 } 351 329 /*}}}*/ 352 /*FUNCTION Riftfront::SetwiseNodeConnectivity{{{*/ 353 void Riftfront::SetwiseNodeConnectivity(int* pd_nz,int* po_nz,Node* node,bool* flags,int* flagsindices,int set1_enum,int set2_enum){ 330 void Riftfront::SetwiseNodeConnectivity(int* pd_nz,int* po_nz,Node* node,bool* flags,int* flagsindices,int set1_enum,int set2_enum){/*{{{*/ 354 331 355 332 /*Output */ … … 407 384 408 385 /*Riftfront numerics*/ 409 /*FUNCTION Riftfront::PenaltyCreateKMatrixStressbalanceHoriz {{{*/ 410 ElementMatrix* Riftfront::PenaltyCreateKMatrixStressbalanceHoriz(IssmDouble kmax){ 386 ElementMatrix* Riftfront::PenaltyCreateKMatrixStressbalanceHoriz(IssmDouble kmax){/*{{{*/ 411 387 412 388 const int numdof = NDOF2*NUMVERTICES; … … 485 461 } 486 462 /*}}}*/ 487 /*FUNCTION Riftfront::PenaltyCreatePVectorStressbalanceHoriz {{{*/ 488 ElementVector* Riftfront::PenaltyCreatePVectorStressbalanceHoriz(IssmDouble kmax){ 463 ElementVector* Riftfront::PenaltyCreatePVectorStressbalanceHoriz(IssmDouble kmax){/*{{{*/ 489 464 490 465 int j; … … 580 555 } 581 556 /*}}}*/ 582 /*FUNCTION Riftfront::Constrain {{{*/583 557 #define _ZIGZAGCOUNTER_ 584 585 int Riftfront::Constrain(int* punstable){ 558 int Riftfront::Constrain(int* punstable){/*{{{*/ 586 559 587 560 IssmDouble penetration; … … 664 637 } 665 638 /*}}}*/ 666 /*FUNCTION Riftfront::FreezeConstraints{{{*/ 667 void Riftfront::FreezeConstraints(void){ 639 void Riftfront::FreezeConstraints(void){/*{{{*/ 668 640 669 641 /*Just set frozen flag to 1: */ … … 672 644 } 673 645 /*}}}*/ 674 /*FUNCTION Riftfront::IsFrozen{{{*/ 675 bool Riftfront::IsFrozen(void){ 646 bool Riftfront::IsFrozen(void){/*{{{*/ 676 647 677 648 /*Just set frozen flag to 1: */
Note:
See TracChangeset
for help on using the changeset viewer.