Changeset 13425
- Timestamp:
- 09/24/12 22:22:10 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Parameters.cpp
r13216 r13425 297 297 } 298 298 /*}}}*/ 299 /*FUNCTION Parameters::FindParam(DataSet** pdataset,int enum_type){{{*/ 300 void Parameters::FindParam(DataSet** pdataset,int enum_type){ 301 _assert_(this); 302 303 vector<Object*>::iterator object; 304 Param* param=NULL; 305 306 for ( object=objects.begin() ; object < objects.end(); object++ ){ 307 308 param=(Param*)(*object); 309 if(param->InstanceEnum()==enum_type){ 310 param->GetParameterValue(pdataset); 311 return; 312 } 313 } 314 _error_("could not find parameter " << EnumToStringx(enum_type)); 315 } 316 /*}}}*/ 299 317 300 318 /*FUNCTION Parameters::SetParam(bool boolean,int enum_type);{{{*/ -
issm/trunk-jpl/src/c/Container/Parameters.h
r13216 r13425 44 44 void FindParam(Matrix<IssmDouble>** pmat,int enum_type); 45 45 void FindParam(FILE** pfid,int enum_type); 46 void FindParam(DataSet** pdataset, int enum_type); 46 47 47 48 void SetParam(bool boolean,int enum_type); -
issm/trunk-jpl/src/c/classes/objects/Params/BoolParam.h
r13414 r13425 55 55 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 56 56 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 57 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 57 58 58 59 void SetValue(bool boolean){this->value=boolean;} -
issm/trunk-jpl/src/c/classes/objects/Params/DoubleMatArrayParam.h
r13414 r13425 58 58 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << "cannot return a Mat");} 59 59 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << "cannot return a FILE");} 60 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 60 61 61 62 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << "cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/DoubleMatParam.h
r13414 r13425 57 57 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 58 58 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 59 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 59 60 60 61 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/DoubleParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 57 57 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){this->value=(IssmDouble)boolean;} -
issm/trunk-jpl/src/c/classes/objects/Params/DoubleVecParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 57 57 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/FileParam.h
r13414 r13425 55 55 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 56 56 void GetParameterValue(FILE** pfid){*pfid=value;}; 57 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 57 58 58 59 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a string");} -
issm/trunk-jpl/src/c/classes/objects/Params/GenericParam.h
r13414 r13425 79 79 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(myEnumVal) << " cannot return a Mat");} 80 80 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(myEnumVal) << " cannot return a FILE");} 81 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(myEnumVal) << " cannot return a DataSet");} 81 82 82 83 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(myEnumVal) << " cannot hold a bool");} -
issm/trunk-jpl/src/c/classes/objects/Params/IntMatParam.h
r13414 r13425 57 57 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 58 58 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 59 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 59 60 60 61 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/IntParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 57 57 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a bool");} -
issm/trunk-jpl/src/c/classes/objects/Params/IntVecParam.h
r13414 r13425 57 57 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 58 58 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 59 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 59 60 60 61 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/MatrixParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** poutput); 57 57 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/Param.h
r13216 r13425 41 41 virtual void GetParameterValue(Matrix<IssmDouble>** pmat)=0; 42 42 virtual void GetParameterValue(FILE** pfid)=0; 43 virtual void GetParameterValue(DataSet** pdataset)=0; 43 44 44 45 virtual void SetValue(bool boolean)=0; -
issm/trunk-jpl/src/c/classes/objects/Params/StringArrayParam.h
r13414 r13425 58 58 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 59 59 void GetParameterValue(FILE** pfid){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a FILE");} 60 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 60 61 61 62 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/StringParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 57 57 void GetParameterValue(FILE** pfid){_error_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/TransientParam.h
r13414 r13425 56 56 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Parameter " <<EnumToStringx(enum_type) << " cannot return a Mat");} 57 57 void GetParameterValue(FILE** pfid){_error_("Parameter " <<EnumToStringx(enum_type) << " cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Parameter " <<EnumToStringx(enum_type) << " cannot hold a boolean");} -
issm/trunk-jpl/src/c/classes/objects/Params/VectorParam.h
r13414 r13425 56 56 void GetParameterValue(Vector<IssmDouble>** poutput); 57 57 void GetParameterValue(FILE** pfid){_error_("Vector of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a FILE");} 58 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 58 59 59 60 void SetValue(bool boolean){_error_("Vector of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a boolean");}
Note:
See TracChangeset
for help on using the changeset viewer.