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

Definition at line 284 of file palTest.c.

References i, PAL__DS2R, palAop(), palAoppa(), palAoppat(), palOap(), palOapqk(), and vvd().

Referenced by main().

284  {
285 
286  int i;
287 
288  double rap, dap, date, dut, elongm, phim, hm, xp, yp,
289  tdk, pmb, rh, wl, tlr, aob, zob, hob, dob, rob, aoprms[14];
290 
291  dap = -0.1234;
292  date = 51000.1;
293  dut = 25.0;
294  elongm = 2.1;
295  phim = 0.5;
296  hm = 3000.0;
297  xp = -0.5e-6;
298  yp = 1.0e-6;
299  tdk = 280.0;
300  pmb = 550.0;
301  rh = 0.6;
302  tlr = 0.006;
303 
304  for (i=1; i<=3; i++) {
305 
306  if ( i == 1 ) {
307  rap = 2.7;
308  wl = 0.45;
309  } else if ( i == 2 ) {
310  rap = 2.345;
311  } else {
312  wl = 1.0e6;
313  }
314 
315  palAop ( rap, dap, date, dut, elongm, phim, hm, xp, yp,
316  tdk, pmb, rh, wl, tlr, &aob, &zob, &hob, &dob, &rob );
317 
318  if ( i == 1 ) {
319  vvd( aob, 1.812817787123283034, 1e-10, "palAop",
320  "lo aob", status );
321  vvd( zob, 1.393860816635714034, 1e-8, "palAop",
322  "lo zob", status );
323  vvd( hob, -1.297808009092456683, 1e-8, "palAop",
324  "lo hob", status );
325  vvd( dob, -0.122967060534561, 1e-8, "palAop",
326  "lo dob", status );
327  vvd( rob, 2.699270287872084, 1e-8, "palAop",
328  "lo rob", status );
329  } else if ( i == 2 ) {
330  vvd( aob, 2.019928026670621442, 1e-10, "palAop",
331  "aob/o", status );
332  vvd( zob, 1.101316172427482466, 1e-10, "palAop",
333  "zob/o", status );
334  vvd( hob, -0.9432923558497740862, 1e-10, "palAop",
335  "hob/o", status );
336  vvd( dob, -0.1232144708194224, 1e-10, "palAop",
337  "dob/o", status );
338  vvd( rob, 2.344754634629428, 1e-10, "palAop",
339  "rob/o", status );
340  } else {
341  vvd( aob, 2.019928026670621442, 1e-10, "palAop",
342  "aob/r", status );
343  vvd( zob, 1.101267532198003760, 1e-10, "palAop",
344  "zob/r", status );
345  vvd( hob, -0.9432533138143315937, 1e-10, "palAop",
346  "hob/r", status );
347  vvd( dob, -0.1231850665614878, 1e-10, "palAop",
348  "dob/r", status );
349  vvd( rob, 2.344715592593984, 1e-10, "palAop",
350  "rob/r", status );
351  }
352  }
353 
354  date = 48000.3;
355  wl = 0.45;
356 
357  palAoppa ( date, dut, elongm, phim, hm, xp, yp, tdk,
358  pmb, rh, wl, tlr, aoprms );
359  vvd( aoprms[0], 0.4999993892136306, 1e-13, "palAoppa",
360  "0", status );
361  vvd( aoprms[1], 0.4794250025886467, 1e-13, "palAoppa",
362  "1", status );
363  vvd( aoprms[2], 0.8775828547167932, 1e-13, "palAoppa",
364  "2", status );
365  vvd( aoprms[3], 1.363180872136126e-6, 1e-13, "palAoppa",
366  "3", status );
367  vvd( aoprms[4], 3000.0, 1e-10, "palAoppa", "4",
368  status );
369  vvd( aoprms[5], 280.0, 1e-11, "palAoppa", "5",
370  status );
371  vvd( aoprms[6], 550.0, 1e-11, "palAoppa", "6",
372  status );
373  vvd( aoprms[7], 0.6, 1e-13, "palAoppa", "7",
374  status );
375  vvd( aoprms[8], 0.45, 1e-13, "palAoppa", "8",
376  status );
377  vvd( aoprms[9], 0.006, 1e-15, "palAoppa", "9",
378  status );
379  vvd( aoprms[10], 0.0001562803328459898, 1e-13,
380  "palAoppa", "10", status );
381  vvd( aoprms[11], -1.792293660141e-7, 1e-13,
382  "palAoppa", "11", status );
383  vvd( aoprms[12], 2.101874231495843, 1e-13,
384  "palAoppa", "12", status );
385  vvd( aoprms[13], 7.601916802079765, 1e-8,
386  "palAoppa", "13", status );
387 
388  palOap ( "r", 1.6, -1.01, date, dut, elongm, phim,
389  hm, xp, yp, tdk, pmb, rh, wl, tlr, &rap, &dap );
390  vvd( rap, 1.601197569844787, 1e-10, "palOap",
391  "rr", status );
392  vvd( dap, -1.012528566544262, 1e-10, "palOap",
393  "rd", status );
394  palOap ( "h", -1.234, 2.34, date, dut, elongm, phim,
395  hm, xp, yp, tdk, pmb, rh, wl, tlr, &rap, &dap );
396  vvd( rap, 5.693087688154886463, 1e-10, "palOap",
397  "hr", status );
398  vvd( dap, 0.8010281167405444, 1e-10, "palOap",
399  "hd", status );
400  palOap ( "a", 6.1, 1.1, date, dut, elongm, phim,
401  hm, xp, yp, tdk, pmb, rh, wl, tlr, &rap, &dap );
402  vvd( rap, 5.894305175192448940, 1e-10, "palOap",
403  "ar", status );
404  vvd( dap, 1.406150707974922, 1e-10, "palOap",
405  "ad", status );
406 
407  palOapqk ( "r", 2.1, -0.345, aoprms, &rap, &dap );
408  vvd( rap, 2.10023962776202, 1e-10, "palOapqk",
409  "rr", status );
410  vvd( dap, -0.3452428692888919, 1e-10, "palOapqk",
411  "rd", status );
412  palOapqk ( "h", -0.01, 1.03, aoprms, &rap, &dap );
413  vvd( rap, 1.328731933634564995, 1e-10, "palOapqk",
414  "hr", status );
415  vvd( dap, 1.030091538647746, 1e-10, "palOapqk",
416  "hd", status );
417  palOapqk ( "a", 4.321, 0.987, aoprms, &rap, &dap );
418  vvd( rap, 0.4375507112075065923, 1e-10, "palOapqk",
419  "ar", status );
420  vvd( dap, -0.01520898480744436, 1e-10, "palOapqk",
421  "ad", status );
422 
423  palAoppat ( date + PAL__DS2R, aoprms );
424  vvd( aoprms[13], 7.602374979243502, 1e-8, "palAoppat",
425  " ", status );
426 }
static const double PAL__DS2R
Definition: palmac.h:93
int i
Definition: db_dim_client.c:21
void palAoppat(double date, double aoprms[14])
Definition: palAoppat.c:78
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: palTest.c:99
void palOap(const char *type, double ob1, double ob2, double date, double dut, double elongm, double phim, double hm, double xp, double yp, double tdk, double pmb, double rh, double wl, double tlr, double *rap, double *dap)
Definition: palOap.c:222
void palAoppa(double date, double dut, double elongm, double phim, double hm, double xp, double yp, double tdk, double pmb, double rh, double wl, double tlr, double aoprms[14])
Definition: palAoppa.c:172
void palAop(double rap, double dap, double date, double dut, double elongm, double phim, double hm, double xp, double yp, double tdk, double pmb, double rh, double wl, double tlr, double *aob, double *zob, double *hob, double *dob, double *rob)
Definition: palAop.c:225
void palOapqk(const char *type, double ob1, double ob2, const double aoprms[14], double *rap, double *dap)
Definition: palOapqk.c:150

+ Here is the call graph for this function:

+ Here is the caller graph for this function: