Changeset 4160
- Timestamp:
- 06/23/10 10:03:16 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Params
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Params/BoolParam.cpp
r4091 r4160 130 130 } 131 131 /*}}}*/ 132 /*FUNCTION BoolParam::ProcessParams(double* partition,int numberofvertices);{{{1*/133 void BoolParam::Process(double* partition,int numberofvertices){134 }135 /*}}}*/136 132 /*FUNCTION BoolParam::SetMatlabField(mxArray* dataref);{{{1*/ 137 133 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/BoolParam.h
r4091 r4160 82 82 83 83 char* GetParameterName(void); 84 void Process(double* partition,int numberofvertices);85 84 #ifdef _SERIAL_ 86 85 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/DoubleMatParam.cpp
r4091 r4160 171 171 } 172 172 /*}}}*/ 173 /*FUNCTION DoubleMatParam::ProcessParams(double* partition,int numberofvertices);{{{1*/174 void DoubleMatParam::Process(double* partition,int numberofvertices){175 }176 /*}}}*/177 173 /*FUNCTION DoubleMatParam::SetMatlabField(mxArray* dataref);{{{1*/ 178 174 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/DoubleMatParam.h
r4091 r4160 86 86 87 87 char* GetParameterName(void); 88 void Process(double* partition,int numberofvertices);89 88 #ifdef _SERIAL_ 90 89 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/DoubleParam.cpp
r4091 r4160 150 150 } 151 151 /*}}}*/ 152 153 /*FUNCTION DoubleParam::ProcessParams(double* partition,int numberofvertices);{{{1*/154 void DoubleParam::Process(double* partition,int numberofvertices){155 }156 /*}}}*/157 152 /*FUNCTION DoubleParam::SetMatlabField(mxArray* dataref);{{{1*/ 158 153 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/DoubleParam.h
r4091 r4160 84 84 85 85 char* GetParameterName(void); 86 void Process(double* partition,int numberofvertices);87 86 #ifdef _SERIAL_ 88 87 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/DoubleVecParam.cpp
r4091 r4160 164 164 } 165 165 /*}}}*/ 166 /*FUNCTION DoubleVecParam::ProcessParams(double* partition,int numberofvertices);{{{1*/167 void DoubleVecParam::Process(double* partition,int numberofvertices) {168 169 int i;170 double* newvalues=NULL;171 172 /*This param holds a vector of size numberofvertices, which means we are being asked to173 * repartition it: */174 175 if(this->M==numberofvertices){176 177 newvalues=(double*)xmalloc(this->M*sizeof(double));178 179 for(i=0;i<this->M;i++){180 newvalues[(int)(partition[i])]=this->values[i];181 }182 183 /*Reassign values to new values: */184 xfree((void**)&this->values);185 this->values=newvalues;186 }187 188 }189 /*}}}*/190 166 /*FUNCTION DoubleVecParam::SetMatlabField(mxArray* dataref);{{{1*/ 191 167 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/DoubleVecParam.h
r4091 r4160 83 83 84 84 char* GetParameterName(void); 85 void Process(double* partition,int numberofvertices);86 85 #ifdef _SERIAL_ 87 86 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/IntParam.cpp
r4091 r4160 130 130 } 131 131 /*}}}*/ 132 /*FUNCTION IntParam::ProcessParams(double* partition,int numberofvertices);{{{1*/133 void IntParam::Process(double* partition,int numberofvertices){134 }135 /*}}}*/136 132 /*FUNCTION IntParam::SetMatlabField(mxArray* dataref);{{{1*/ 137 133 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/IntParam.h
r4091 r4160 83 83 84 84 char* GetParameterName(void); 85 void Process(double* partition,int numberofvertices);86 85 #ifdef _SERIAL_ 87 86 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/Param.h
r4059 r4160 53 53 54 54 virtual char* GetParameterName(void)=0; 55 virtual void Process(double* partition,int numberofvertices)=0;56 55 #ifdef _SERIAL_ 57 56 virtual void SetMatlabField(mxArray* dataref)=0; -
issm/trunk/src/c/objects/Params/PetscMatParam.cpp
r4091 r4160 201 201 } 202 202 /*}}}*/ 203 /*FUNCTION PetscMatParam::ProcessParams(double* partition,int numberofvertices);{{{1*/204 void PetscMatParam::Process(double* partition,int numberofvertices){205 }206 /*}}}*/207 203 /*FUNCTION PetscMatParam::SetMatlabField(mxArray* dataref);{{{1*/ 208 204 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/PetscMatParam.h
r4091 r4160 83 83 84 84 char* GetParameterName(void); 85 void Process(double* partition,int numberofvertices);86 85 #ifdef _SERIAL_ 87 86 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/PetscVecParam.cpp
r4091 r4160 194 194 } 195 195 /*}}}*/ 196 /*FUNCTION PetscVecParam::ProcessParams(double* partition,int numberofvertices);{{{1*/197 void PetscVecParam::Process(double* partition,int numberofvertices){198 }199 /*}}}*/200 196 /*FUNCTION PetscVecParam::SetMatlabField(mxArray* dataref);{{{1*/ 201 197 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/PetscVecParam.h
r4091 r4160 83 83 84 84 char* GetParameterName(void); 85 void Process(double* partition,int numberofvertices);86 85 #ifdef _SERIAL_ 87 86 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/StringArrayParam.cpp
r4091 r4160 223 223 } 224 224 /*}}}*/ 225 /*FUNCTION StringArrayParam::ProcessParams(double* partition,int numberofvertices);{{{1*/226 void StringArrayParam::Process(double* partition,int numberofvertices){227 }228 /*}}}*/229 225 /*FUNCTION StringArrayParam::SetMatlabField(mxArray* dataref);{{{1*/ 230 226 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/StringArrayParam.h
r4091 r4160 85 85 86 86 char* GetParameterName(void); 87 void Process(double* partition,int numberofvertices);88 87 #ifdef _SERIAL_ 89 88 void SetMatlabField(mxArray* dataref); -
issm/trunk/src/c/objects/Params/StringParam.cpp
r4091 r4160 160 160 } 161 161 /*}}}*/ 162 /*FUNCTION StringParam::ProcessParams(double* partition,int numberofvertices);{{{1*/163 void StringParam::Process(double* partition,int numberofvertices){164 }165 /*}}}*/166 162 /*FUNCTION StringParam::SetMatlabField(mxArray* dataref);{{{1*/ 167 163 #ifdef _SERIAL_ -
issm/trunk/src/c/objects/Params/StringParam.h
r4091 r4160 83 83 84 84 char* GetParameterName(void); 85 void Process(double* partition,int numberofvertices);86 85 #ifdef _SERIAL_ 87 86 void SetMatlabField(mxArray* dataref);
Note:
See TracChangeset
for help on using the changeset viewer.