Changeset 14583
- Timestamp:
- 04/15/13 15:02:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp
r14377 r14583 97 97 double tolerance; 98 98 Options *options = NULL; 99 double minimumvertices_double; 99 100 int minimumvertices; 100 101 … … 130 131 131 132 /*Process options*/ 132 options->Get(&minimumvertices,"min",3); 133 if(minimumvertices<1) _error_("'min' (minimum number of verties) should be a positive integer"); 133 options->Get(&minimumvertices_double,"min",3.); 134 if(minimumvertices_double<1.) _error_("'min' (minimum number of verties) should be a positive integer"); 135 minimumvertices = int(minimumvertices_double); 134 136 135 137 /*Read old contours and allocate new contours*/
Note:
See TracChangeset
for help on using the changeset viewer.