Changeset 12330 for issm/trunk/src/c/objects/Options/OptionDouble.cpp
- Timestamp:
- 06/01/12 17:26:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Options/OptionDouble.cpp
r9761 r12330 120 120 } 121 121 /*}}}*/ 122 /*FUNCTION OptionDouble::Get(int* pvalue) {{{1*/ 123 void OptionDouble::Get(int* pvalue){ 124 125 /*We should first check that the size is one*/ 126 if(this->NumEl()!=1){ 127 _error_("option \"%s\" has %i elements and cannot return a single int",this->name,this->NumEl()); 128 } 129 130 /*Assign output pointer*/ 131 *pvalue=(int)this->values[0]; 132 } 133 /*}}}*/ 122 134 /*FUNCTION OptionDouble::Get(double* pvalue) {{{1*/ 123 135 void OptionDouble::Get(double* pvalue){
Note:
See TracChangeset
for help on using the changeset viewer.