Changeset 3828
- Timestamp:
- 05/18/10 16:51:19 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/EnumDefinitions/EnumAsString.cpp
r3775 r3828 192 192 case VzOldEnum : return "VzOld"; 193 193 case WeightsEnum : return "Weights"; 194 case P1Enum : return "P1"; 194 195 case BetaEnum : return "Beta"; 195 196 case CmGradientEnum : return "CmGradient"; -
issm/trunk/src/c/EnumDefinitions/StringAsEnum.cpp
r3775 r3828 190 190 else if (strcmp(name,"VzOld")==0) return VzOldEnum; 191 191 else if (strcmp(name,"Weights")==0) return WeightsEnum; 192 else if (strcmp(name,"P1")==0) return P1Enum; 192 193 else if (strcmp(name,"Beta")==0) return BetaEnum; 193 194 else if (strcmp(name,"CmGradient")==0) return CmGradientEnum; -
issm/trunk/src/c/Makefile.am
r3821 r3828 68 68 ./objects/Elements/TriaHook.h\ 69 69 ./objects/Elements/TriaHook.cpp\ 70 ./objects/Elements/TriaRef.h\ 71 ./objects/Elements/TriaRef.cpp\ 70 72 ./objects/Inputs/Input.h\ 71 73 ./objects/Inputs/TriaVertexInput.h\ … … 513 515 ./objects/Elements/TriaHook.h\ 514 516 ./objects/Elements/TriaHook.cpp\ 517 ./objects/Elements/TriaRef.h\ 518 ./objects/Elements/TriaRef.cpp\ 515 519 ./objects/Inputs/Input.h\ 516 520 ./objects/Inputs/TriaVertexInput.h\ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r3821 r3828 48 48 /*id: */ 49 49 this->id=tria_id; 50 51 /*interpolation type: */ 52 this->InitInterpolationType(P1Enum); 50 53 51 54 /*hooks: */ … … 186 189 /*copy fields: */ 187 190 tria->id=this->id; 191 tria->interpolation_type=this->interpolation_type; 188 192 if(this->inputs){ 189 193 tria->inputs=(Inputs*)this->inputs->Copy(); … … 240 244 *object data (thanks to DataSet::Demarshall):*/ 241 245 memcpy(&id,marshalled_dataset,sizeof(id));marshalled_dataset+=sizeof(id); 246 memcpy(&interpolation_type,marshalled_dataset,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type); 242 247 243 248 /*demarshall hooks: */ … … 306 311 /*marshall Tria data: */ 307 312 memcpy(marshalled_dataset,&id,sizeof(id));marshalled_dataset+=sizeof(id); 313 memcpy(marshalled_dataset,&interpolation_type,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type); 308 314 309 315 /*Marshall hooks: */ … … 330 336 331 337 return sizeof(id) 338 +sizeof(interpolation_type) 332 339 +hnodes.MarshallSize() 333 340 +hmatice.MarshallSize() -
issm/trunk/src/c/objects/Elements/Tria.h
r3821 r3828 10 10 #include "./Element.h" 11 11 #include "./TriaHook.h" 12 #include "./TriaRef.h" 12 13 class Parameters; 13 14 class Inputs; … … 21 22 /*}}}*/ 22 23 23 class Tria: public Element,public TriaHook {24 class Tria: public Element,public TriaHook,public TriaRef{ 24 25 25 26 public: … … 116 117 double GetAreaCoordinate(double x, double y, int which_one); 117 118 /*}}}*/ 118 119 /*updates:*/ 119 /*FUNCTION updates{{{1*/ 120 120 void UpdateFromDakota(void* inputs); 121 121 void UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type); … … 134 134 void UpdateInputsFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");} 135 135 void pdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type); 136 136 /*}}}*/ 137 137 138 138 }; -
issm/trunk/src/c/objects/Inputs/TriaVertexInput.cpp
r3816 r3828 133 133 134 134 /*Object functions*/ 135 /*FUNCTION TriaVertexInput::GetParameterValue(bool* pvalue) {{{1*/136 void TriaVertexInput::GetParameterValue(bool* pvalue){ISSMERROR(" not supported yet!");}137 /*}}}*/138 /*FUNCTION TriaVertexInput::GetParameterValue(int* pvalue){{{1*/139 void TriaVertexInput::GetParameterValue(int* pvalue){ISSMERROR(" not supported yet!");}140 /*}}}*/141 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue){{{1*/142 void TriaVertexInput::GetParameterValue(double* pvalue){ISSMERROR(" not supported yet!");}143 /*}}}*/144 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,Node* node){{{1*/145 void TriaVertexInput::GetParameterValue(double* pvalue,Node* node){ISSMERROR(" not supported yet!");}146 /*}}}*/147 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){{{1*/148 void TriaVertexInput::GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){ISSMERROR(" not supported yet!");}149 /*}}}*/150 135 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,double* gauss){{{1*/ 151 136 void TriaVertexInput::GetParameterValue(double* pvalue,double* gauss){ … … 162 147 163 148 } 164 /*}}}*/165 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,double* gauss,double defaultvalue){{{1*/166 void TriaVertexInput::GetParameterValue(double* pvalue,double* gauss,double defaultvalue){ISSMERROR(" not supported yet!");}167 149 /*}}}*/ 168 150 /*FUNCTION TriaVertexInput::GetParameterValues(double* values,double* gauss_pointers, int numgauss){{{1*/ -
issm/trunk/src/c/objects/Inputs/TriaVertexInput.h
r3810 r3828 10 10 /*{{{1*/ 11 11 #include "./Input.h" 12 #include "../Elements/TriaRef.h" 12 13 /*}}}*/ 13 14 14 class TriaVertexInput: public Input {15 class TriaVertexInput: public Input,public TriaRef{ 15 16 16 17 private: … … 49 50 /*}}}*/ 50 51 /*numerics: {{{1*/ 51 void GetParameterValue(bool* pvalue); 52 void GetParameterValue(int* pvalue); 53 void GetParameterValue(double* pvalue); 54 void GetParameterValue(double* pvalue,Node* node); 55 void GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord); 52 void GetParameterValue(bool* pvalue){ISSMERROR("not implemented yet");} 53 void GetParameterValue(int* pvalue){ISSMERROR("not implemented yet");} 54 void GetParameterValue(double* pvalue){ISSMERROR("not implemented yet");} 55 56 void GetParameterValue(double* pvalue,Node* node){ISSMERROR("not implemented yet");} 57 void GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){ISSMERROR("not implemented yet");} 56 58 void GetParameterValue(double* pvalue,double* gauss); 57 void GetParameterValue(double* pvalue,double* gauss,double defaultvalue); 58 59 void GetParameterValue(double* pvalue,double* gauss,double defaultvalue){ISSMERROR("not implemented yet");} 59 60 void GetParameterValues(double* values,double* gauss_pointers, int numgauss); 60 61 -
issm/trunk/src/c/objects/objects.h
r3681 r3828 36 36 #include "./Elements/Element.h" 37 37 #include "./Elements/Penta.h" 38 #include "./Elements/PentaHook.h" 38 39 #include "./Elements/Tria.h" 40 #include "./Elements/TriaHook.h" 41 #include "./Elements/TriaRef.h" 39 42 #include "./Elements/Sing.h" 40 43
Note:
See TracChangeset
for help on using the changeset viewer.