Changeset 1681 in Sophya


Ignore:
Timestamp:
Oct 11, 2001, 2:40:41 PM (24 years ago)
Author:
cmv
Message:

correction d un bug d adressage t_abs[-1] cmv 11/10/01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/vsop87.c

    r1457 r1681  
    152152
    153153            /* precision threshold */
    154             p = q/(t_abs[alpha] + alpha * t_abs[alpha-1] * 1e-4 + 1e-35);
     154            if(alpha>0) p = t_abs[alpha-1]; else p=0.;
     155            p = q/(t_abs[alpha] + alpha * p * 1e-4 + 1e-35);
    155156#if VSOP_SPHERICAL
    156157            if (cooidx == 2)    /* scale by semimajor axis for radius */
     
    211212
    212213/* For RCS Only -- Do Not Edit */
    213 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: vsop87.c,v $ $Date: 2001-04-10 14:40:47 $ $Revision: 1.1.1.1 $ $Name: not supported by cvs2svn $"};
     214static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: vsop87.c,v $ $Date: 2001-10-11 12:40:41 $ $Revision: 1.2 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.