Changeset 6213 for issm/trunk/src/c/Container/Parameters.cpp
- Timestamp:
- 10/08/10 16:49:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Container/Parameters.cpp
r4873 r6213 175 175 } 176 176 /*}}}*/ 177 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int enum_type){{{1*/ 178 int Parameters::FindParam(int** pintarray,int* pM, int enum_type){ 179 180 /*Go through a dataset, and find a Param* object 181 *which parameter name is "name" : */ 182 183 vector<Object*>::iterator object; 184 Param* param=NULL; 185 186 int found=0; 187 188 for ( object=objects.begin() ; object < objects.end(); object++ ){ 189 190 /*Ok, this object is a parameter, recover it and ask which name it has: */ 191 param=(Param*)(*object); 192 193 if(param->EnumType()==enum_type){ 194 /*Ok, this is the one! Recover the value of this parameter: */ 195 param->GetParameterValue(pintarray,pM); 196 found=1; 197 break; 198 } 199 } 200 return found; 201 202 } 203 /*}}}*/ 177 204 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{1*/ 178 205 int Parameters::FindParam(double** pdoublearray,int* pM, int enum_type){
Note:
See TracChangeset
for help on using the changeset viewer.