Changeset 14055


Ignore:
Timestamp:
11/29/12 16:18:13 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added numthreads as an option and error messages for interpolation requiring GSL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp

    r14053 r14055  
    2222        /*Intermediaries*/
    2323        int           mindata,maxdata;
    24         double        dmindata,dmaxdata; //FIXME (Options come as double but we want to retrive integers)
     24        double        dmindata,dmaxdata,dnumthreads; //FIXME (Options come as double but we want to retrive integers)
    2525        double        radius;
    2626        char         *output       = NULL;
     
    4040        options->Get(&dmindata,"mindata",1.);  mindata=int(dmindata);//FIXME (Options come as double but we want to retrive integers)
    4141        options->Get(&dmaxdata,"maxdata",50.); maxdata=int(dmaxdata);//FIXME (Options come as double but we want to retrive integers)
     42        options->Get(&dnumthreads,"numthreads",double(num)); num=int(dnumthreads);//FIXME (Options come as double but we want to retrive integers)
    4243
    4344        /*Process observation dataset*/
     
    119120        }
    120121        else if(strcmp(output,"v4")==0){ //Inverse distance weighting
     122#if !defined(_HAVE_GSL_)
     123                _error_("GSL is required for v4 interpolation");
     124#endif
    121125                /*initialize thread parameters: */
    122126                gate.n_interp     = n_interp;
     
    138142        }
    139143        else if(strcmp(output,"prediction")==0){
     144#if !defined(_HAVE_GSL_)
     145                _error_("GSL is required for v4 interpolation");
     146#endif
    140147
    141148                /*initialize thread parameters: */
Note: See TracChangeset for help on using the changeset viewer.