Changeset 63


Ignore:
Timestamp:
04/27/09 10:59:54 (16 years ago)
Author:
Eric.Larour
Message:

Maxiter is a double* parameter, not int*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/control.cpp

    r52 r63  
    3838        double* optscal=NULL;
    3939        double* u_g_obs=NULL;
    40         int*    maxiter=NULL;
     40        double*    maxiter=NULL;
    4141        double  tolx;
    4242        double*   p_g=NULL;
     
    117117                _printf_("%s\n","      optimizing along gradient direction...");
    118118                optargs.femmodel=&femmodel; optargs.p_g=p_g; optargs.u_g_obs=u_g_obs; optargs.grad_g=grad_g_double; optargs.inputs=inputs;optargs.n=n;
    119                 optpars.xmin=-1; optpars.xmax=1; optpars.tolerance=tolx; optpars.maxiter=maxiter[n];
     119                optpars.xmin=-1; optpars.xmax=1; optpars.tolerance=tolx; optpars.maxiter=(int)maxiter[n];
    120120                BrentSearch(&search_scalar,J+n,&optpars,&objectivefunctionC,&optargs);
    121121                _printf_("%s\n","      done.");
Note: See TracChangeset for help on using the changeset viewer.