FACT++  1.0
static void t_pmsafe ( int *  status)
static

Definition at line 5649 of file t_erfa_c.c.

References eraPmsafe(), viv(), and vvd().

Referenced by main().

5664 {
5665  int j;
5666  double ra1, dec1, pmr1, pmd1, px1, rv1, ep1a, ep1b, ep2a, ep2b,
5667  ra2, dec2, pmr2, pmd2, px2, rv2;
5668 
5669 
5670  ra1 = 1.234;
5671  dec1 = 0.789;
5672  pmr1 = 1e-5;
5673  pmd1 = -2e-5;
5674  px1 = 1e-2;
5675  rv1 = 10.0;
5676  ep1a = 2400000.5;
5677  ep1b = 48348.5625;
5678  ep2a = 2400000.5;
5679  ep2b = 51544.5;
5680 
5681  j = eraPmsafe(ra1, dec1, pmr1, pmd1, px1, rv1,
5682  ep1a, ep1b, ep2a, ep2b,
5683  &ra2, &dec2, &pmr2, &pmd2, &px2, &rv2);
5684 
5685  vvd(ra2, 1.234087484501017061, 1e-12,
5686  "eraPmsafe", "ra2", status);
5687  vvd(dec2, 0.7888249982450468574, 1e-12,
5688  "eraPmsafe", "dec2", status);
5689  vvd(pmr2, 0.9996457663586073988e-5, 1e-12,
5690  "eraPmsafe", "pmr2", status);
5691  vvd(pmd2, -0.2000040085106737816e-4, 1e-16,
5692  "eraPmsafe", "pmd2", status);
5693  vvd(px2, 0.9999997295356765185e-2, 1e-12,
5694  "eraPmsafe", "px2", status);
5695  vvd(rv2, 10.38468380113917014, 1e-10,
5696  "eraPmsafe", "rv2", status);
5697  viv ( j, 0, "eraPmsafe", "j", status);
5698 
5699 }
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: t_erfa_c.c:58
int eraPmsafe(double ra1, double dec1, double pmr1, double pmd1, double px1, double rv1, double ep1a, double ep1b, double ep2a, double ep2b, double *ra2, double *dec2, double *pmr2, double *pmd2, double *px2, double *rv2)
Definition: pmsafe.c:3
static void viv(int ival, int ivalok, const char *func, const char *test, int *status)
Definition: t_erfa_c.c:24

+ Here is the call graph for this function:

+ Here is the caller graph for this function: