Changeset 4530
- Timestamp:
- 07/12/10 11:54:35 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/io/FetchData.cpp
r3961 r4530 236 236 bool boolean; 237 237 238 if (!mxIsDouble(dataref)){ 239 ISSMERROR("input data_type is not a scalar!"); 240 } 241 else{ 238 if (mxIsClass(dataref,"logical") || mxIsDouble(dataref)){ 242 239 /*Recover the double: */ 243 240 boolean=(bool)mxGetScalar(dataref); 241 } 242 else{ 243 ISSMERROR("input data_type is not a bool!"); 244 244 } 245 245
Note:
See TracChangeset
for help on using the changeset viewer.