Changeset 14583


Ignore:
Timestamp:
04/15/13 15:02:09 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: minimumvertices must be passed as a double

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp

    r14377 r14583  
    9797        double   tolerance;
    9898        Options *options      = NULL;
     99        double   minimumvertices_double;
    99100        int      minimumvertices;
    100101
     
    130131
    131132        /*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);
    134136
    135137        /*Read old contours and allocate new contours*/
Note: See TracChangeset for help on using the changeset viewer.