Changeset 4248 for issm/trunk/src/c/objects/Elements/Sing.cpp
- Timestamp:
- 06/26/10 12:30:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Sing.cpp
r4236 r4248 17 17 #include "../../include/include.h" 18 18 19 /* Objectconstructors and destructor*/19 /*Sing constructors and destructor*/ 20 20 /*FUNCTION Sing::Sing(){{{1*/ 21 21 Sing::Sing(){ … … 37 37 /*}}}*/ 38 38 39 /*Object management*/ 40 /*FUNCTION Sing::Configure {{{1*/ 41 void Sing::Configure(Elements* elementsin,Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 42 43 ISSMERROR(" not supported yet!"); 44 45 } 46 /*}}}*/ 47 /*FUNCTION Sing::copy {{{1*/ 48 Object* Sing::copy() { 49 50 int i; 51 Sing* sing=NULL; 52 53 sing=new Sing(); 54 55 /*copy fields: */ 56 sing->id=this->id; 57 if(this->inputs){ 58 sing->inputs=(Inputs*)this->inputs->Copy(); 59 } 60 else{ 61 sing->inputs=new Inputs(); 62 } 63 /*point parameters: */ 64 sing->parameters=this->parameters; 65 66 /*pointers: */ 67 sing->node=this->node; 68 sing->matice=this->matice; 69 sing->matpar=this->matpar; 70 71 return sing; 39 /*Object virtual functions definitions: */ 40 /*FUNCTION Sing::Echo{{{1*/ 41 42 void Sing::Echo(void){ 43 44 printf("Sing:\n"); 45 printf(" id: %i\n",id); 46 node->Echo(); 47 matice->Echo(); 48 matpar->Echo(); 49 printf(" parameters\n"); 50 parameters->Echo(); 51 printf(" inputs\n"); 52 inputs->Echo(); 72 53 } 73 54 /*}}}*/ … … 88 69 } 89 70 /*}}}*/ 71 /*FUNCTION Sing::Id {{{1*/ 72 int Sing::Id(void){ return id; } 73 /*}}}*/ 74 /*FUNCTION Sing::MyRank {{{1*/ 75 int Sing::MyRank(void){ 76 extern int my_rank; 77 return my_rank; 78 } 79 /*}}}*/ 80 /*FUNCTION Sing::Marshall {{{1*/ 81 void Sing::Marshall(char** pmarshalled_dataset){ 82 ISSMERROR(" not supported yet!"); 83 } 84 /*}}}*/ 85 /*FUNCTION Sing::MashallSize {{{1*/ 86 int Sing::MarshallSize(){ 87 ISSMERROR(" not supported yet!"); 88 } 89 /*}}}*/ 90 90 /*FUNCTION Sing::Demarshall {{{1*/ 91 91 void Sing::Demarshall(char** pmarshalled_dataset){ … … 93 93 } 94 94 /*}}}*/ 95 /*FUNCTION Sing::Echo{{{1*/ 96 97 void Sing::Echo(void){ 98 99 printf("Sing:\n"); 100 printf(" id: %i\n",id); 101 node->Echo(); 102 matice->Echo(); 103 matpar->Echo(); 104 printf(" parameters\n"); 105 parameters->Echo(); 106 printf(" inputs\n"); 107 inputs->Echo(); 95 /*FUNCTION Sing::Enum {{{1*/ 96 int Sing::Enum(void){ 97 98 return SingEnum; 99 100 } 101 /*}}}*/ 102 /*FUNCTION Sing::copy {{{1*/ 103 Object* Sing::copy() { 104 105 int i; 106 Sing* sing=NULL; 107 108 sing=new Sing(); 109 110 /*copy fields: */ 111 sing->id=this->id; 112 if(this->inputs){ 113 sing->inputs=(Inputs*)this->inputs->Copy(); 114 } 115 else{ 116 sing->inputs=new Inputs(); 117 } 118 /*point parameters: */ 119 sing->parameters=this->parameters; 120 121 /*pointers: */ 122 sing->node=this->node; 123 sing->matice=this->matice; 124 sing->matpar=this->matpar; 125 126 return sing; 127 } 128 /*}}}*/ 129 130 /*Sing management*/ 131 /*FUNCTION Sing::Configure {{{1*/ 132 void Sing::Configure(Elements* elementsin,Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 133 134 ISSMERROR(" not supported yet!"); 135 108 136 } 109 137 /*}}}*/ … … 117 145 } 118 146 /*}}}*/ 119 /*FUNCTION Sing::Marshall {{{1*/120 void Sing::Marshall(char** pmarshalled_dataset){121 ISSMERROR(" not supported yet!");122 }123 /*}}}*/124 /*FUNCTION Sing::MashallSize {{{1*/125 int Sing::MarshallSize(){126 ISSMERROR(" not supported yet!");127 }128 /*}}}*/129 147 /*FUNCTION Sing::InputUpdateFromSolution {{{1*/ 130 148 void Sing::InputUpdateFromSolution(double* solution){ … … 148 166 /*}}}*/ 149 167 150 /* Objectfunctions*/168 /*Sing functions*/ 151 169 /*FUNCTION Sing::ComputeBasalStress {{{1*/ 152 170 void Sing::ComputeBasalStress(Vec p_g){ … … 304 322 } 305 323 /*}}}*/ 306 /*FUNCTION Sing::Enum {{{1*/307 int Sing::Enum(void){308 309 return SingEnum;310 311 }312 /*}}}*/313 324 /*FUNCTION Sing::GetBedList {{{1*/ 314 325 void Sing::GetBedList(double*){ … … 341 352 } 342 353 /*}}}*/ 343 /*FUNCTION Sing::Id {{{1*/344 int Sing::Id(void){ return id; }345 /*}}}*/346 354 /*FUNCTION Sing::GetMatPar {{{1*/ 347 355 void* Sing::GetMatPar(){ … … 399 407 double Sing::Misfit(void){ 400 408 ISSMERROR(" not supported yet!"); 401 }402 /*}}}*/403 /*FUNCTION Sing::MyRank {{{1*/404 int Sing::MyRank(void){405 extern int my_rank;406 return my_rank;407 409 } 408 410 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.