Changeset 20810 for issm/trunk-jpl/src/c/classes/Misfit.h
- Timestamp:
- 06/27/16 09:22:48 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Misfit.h
r19198 r20810 25 25 26 26 int definitionenum; 27 bool local; 28 int model_enum; 27 29 char* name; 28 int model_enum;29 30 int observation_enum; 31 char* timeinterpolation; 30 32 int weights_enum; 31 char* timeinterpolation;32 bool local;33 33 34 int lock; // if lock is on, we just return the value stored in "misfit". this is used so we don't compute misfit past the final_time 34 35 IssmDouble misfit; //value carried over in time. 35 int lock; // if lock is on, we just return the value stored in "misfit". this is used so we don't compute misfit past the final_time36 36 37 37 /*Misfit constructors, destructors :*/ … … 76 76 /*}}}*/ 77 77 /*Object virtual function resolutoin: */ 78 Object* copy() {/*{{{*/ 79 Misfit* mf = new Misfit(this->name,this->definitionenum, this->model_enum,this->observation_enum,this->timeinterpolation,this->local,this->weights_enum); 80 mf->misfit=this->misfit; 81 mf->lock=this->lock; 82 return (Object*) mf; 83 } 84 /*}}}*/ 85 void DeepEcho(void){/*{{{*/ 86 this->Echo(); 87 } 88 /*}}}*/ 78 89 void Echo(void){/*{{{*/ 79 90 _printf_(" Misfit: " << name << " " << this->definitionenum << "\n"); … … 85 96 } 86 97 /*}}}*/ 87 void DeepEcho(void){/*{{{*/88 this->Echo();89 }90 /*}}}*/91 98 int Id(void){/*{{{*/ 92 99 return -1; 93 }94 /*}}}*/95 int ObjectEnum(void){/*{{{*/96 return MisfitEnum;97 }98 /*}}}*/99 Object* copy() {/*{{{*/100 Misfit* mf = new Misfit(this->name,this->definitionenum, this->model_enum,this->observation_enum,this->timeinterpolation,this->local,this->weights_enum);101 mf->misfit=this->misfit;102 mf->lock=this->lock;103 return (Object*) mf;104 100 } 105 101 /*}}}*/ … … 108 104 } 109 105 /*}}}*/ 106 int ObjectEnum(void){/*{{{*/ 107 return MisfitEnum; 108 } 109 /*}}}*/ 110 110 /*Definition virtual function resolutoin: */ 111 int DefinitionEnum(){/*{{{*/ 112 113 return this->definitionenum; 114 } 115 /*}}}*/ 111 116 char* Name(){/*{{{*/ 112 117 … … 115 120 116 121 return name2; 117 }118 /*}}}*/119 int DefinitionEnum(){/*{{{*/120 121 return this->definitionenum;122 122 } 123 123 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.