Changeset 5640 for issm/trunk/src/c/Container/Inputs.cpp
- Timestamp:
- 09/01/10 07:59:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Container/Inputs.cpp
r5537 r5640 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION Inputs::GetParameterValue(double* pvalue,GaussTria* gauss,int enum_type){{{1*/ 74 void Inputs::GetParameterValue(double* pvalue,GaussTria* gauss, int enum_type){ 75 76 vector<Object*>::iterator object; 77 Input* input=NULL; 78 bool found=false; 79 80 /*Go through inputs and check whether any input with the same name is already in: */ 81 for ( object=objects.begin() ; object < objects.end(); object++ ){ 82 83 input=(Input*)(*object); 84 if (input->EnumType()==enum_type){ 85 found=true; 86 break; 87 } 88 } 89 90 if (!found){ 91 /*we could not find an input with the correct enum type. No defaults values were provided, 92 * error out: */ 93 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type)); 94 } 95 96 /*Ok, we have an input if we made it here, request the input to return the values: */ 97 input->GetParameterValue(pvalue,gauss); 98 99 } 100 /*}}}*/ 73 101 /*FUNCTION Inputs::GetParameterValue(double* pvalue,double* gauss,int enum_type,double defaultvalue){{{1*/ 74 102 void Inputs::GetParameterValue(double* pvalue,double* gauss, int enum_type,double defaultvalue){
Note:
See TracChangeset
for help on using the changeset viewer.