/[ascend]/trunk/base/generic/integrator/ida.c
ViewVC logotype

Diff of /trunk/base/generic/integrator/ida.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1446 by jpye, Sun Apr 22 07:02:46 2007 UTC revision 1447 by jpye, Sun May 27 01:22:45 2007 UTC
# Line 1922  int integrator_ida_stats(void *ida_mem, Line 1922  int integrator_ida_stats(void *ida_mem,
1922    
1923  #if SUNDIALS_VERSION_MAJOR==2 && SUNDIALS_VERSION_MINOR==2  #if SUNDIALS_VERSION_MAJOR==2 && SUNDIALS_VERSION_MINOR==2
1924    
1925      return IDA_MEM_NULL;      int res;
1926    
1927        /*
1928            There is an error in the documentation for this function in Sundials 2.2.
1929            According the the header file, the hinused stat is not provided.
1930        */
1931        res = IDAGetIntegratorStats(ida_mem, &s->nsteps, &s->nrevals, &s->nlinsetups,
1932            &s->netfails, &s->qlast, &s->qcur, &s->hlast, &s->hcur,
1933            &s->tcur
1934        );
1935    
1936        /* get the missing statistic */
1937        IDAGetActualInitStep(ida_mem, &s->hinused);
1938        
1939        return res;
1940  #else  #else
1941    
1942      return IDAGetIntegratorStats(ida_mem, &s->nsteps, &s->nrevals, &s->nlinsetups      return IDAGetIntegratorStats(ida_mem, &s->nsteps, &s->nrevals, &s->nlinsetups

Legend:
Removed from v.1446  
changed lines
  Added in v.1447

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22