@@ -4388,8 +4388,6 @@ int grav_planets(const double *pos_src, const double *pos_obs, const novas_plane
4388
4388
* @param pos_obs [AU] Position 3-vector of observer (or the geocenter), with respect to
4389
4389
* origin at solar system barycenter, referred to ICRS axes,
4390
4390
* components in AU.
4391
- * @param accuracy NOVAS_FULL_ACCURACY (0) for sub-μas accuracy or NOVAS_REDUCED_ACCURACY (1)
4392
- * for sub-mas accuracy.
4393
4391
* @param planets Apparent planet data containing positions and velocities for the major
4394
4392
* gravitating bodies in the solar-system.
4395
4393
* @param[out] out [AU] Nominal position vector of observed object, with respect to origin at
@@ -4405,12 +4403,12 @@ int grav_planets(const double *pos_src, const double *pos_obs, const novas_plane
4405
4403
* @since 1.1
4406
4404
* @author Attila Kovacs
4407
4405
*/
4408
- int grav_undo_planets (const double * pos_app , const double * pos_obs , enum novas_accuracy accuracy , const novas_planet_bundle * planets , double * out ) {
4406
+ int grav_undo_planets (const double * pos_app , const double * pos_obs , const novas_planet_bundle * planets , double * out ) {
4409
4407
static const char * fn = "grav_undo_planets" ;
4410
4408
4409
+ const double tol = 1e-13 ;
4411
4410
double pos_def [3 ] = { }, pos0 [3 ] = { };
4412
4411
double l ;
4413
- double tol = accuracy == NOVAS_FULL_ACCURACY ? 1e-13 : 1e-10 ;
4414
4412
int i ;
4415
4413
4416
4414
if (!pos_app || !pos_obs )
@@ -4499,7 +4497,6 @@ int obs_planets(double jd_tdb, enum novas_accuracy accuracy, const double *pos_o
4499
4497
if (!pos_obs )
4500
4498
return novas_error (-1 , EINVAL , fn , "NULL observer position parameter" );
4501
4499
4502
-
4503
4500
// Set up the structures of type 'object' containing the body information.
4504
4501
if (!initialized ) {
4505
4502
for (i = 0 ; i < NOVAS_PLANETS ; i ++ )
@@ -4666,7 +4663,7 @@ int grav_undef(double jd_tdb, enum novas_accuracy accuracy, const double *pos_ap
4666
4663
return novas_error (-1 , EINVAL , fn , "NULL source position 3-vector: pos_app=%p, out=%p" , pos_app , out );
4667
4664
4668
4665
prop_error (fn , obs_planets (jd_tdb , accuracy , pos_obs , pl_mask , & planets ), 0 );
4669
- prop_error (fn , grav_undo_planets (pos_app , pos_obs , accuracy , & planets , out ), 0 );
4666
+ prop_error (fn , grav_undo_planets (pos_app , pos_obs , & planets , out ), 0 );
4670
4667
return 0 ;
4671
4668
}
4672
4669
0 commit comments