global.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* This file is part of the GNU plotutils package. */
  2. /*
  3. * Copyright (C) 1982-1994, Nicholas B. Tufillaro. All rights reserved.
  4. *
  5. * GNU enhancements Copyright (C) 1996, 1997, 2005, 2008, 2009, Free Software
  6. * Foundation, Inc.
  7. */
  8. /*
  9. * definitions of global variables for ode.
  10. */
  11. #include "sys-defines.h"
  12. #include "ode.h"
  13. #include "extern.h"
  14. /* defined and initialized */
  15. const char *progname = "ode"; /* name of this program */
  16. const char *written = "Written by Nicholas B. Tufillaro and Robert S. Maier.";
  17. const char *copyright = "Copyright (C) 1994 Nicholas B. Tufillaro,\nCopyright (C) 2009 Free Software Foundation, Inc.";
  18. int prec = -1;
  19. long it = 0;
  20. double hmin = HMIN;
  21. double hmax = HMAX;
  22. double ssmin = 1e-11;
  23. double ssmax = 1e-8;
  24. double abmin = 1e-36;
  25. double abmax = 1e36;
  26. double acmax = 1e36;
  27. struct sym *symtab = NULL;
  28. struct sym *fsp = NULL;
  29. struct sym *dqueue = NULL;
  30. struct prt *pqueue = NULL;
  31. struct expr exprzero =
  32. {
  33. O_CONST,
  34. 0.,
  35. NULL,
  36. NULL,
  37. };
  38. struct expr exprone =
  39. {
  40. O_CONST,
  41. 1.,
  42. NULL,
  43. NULL,
  44. };
  45. bool sawstep = false, sawprint = false;
  46. bool sawevery = false, sawfrom = false;
  47. bool tflag = false, pflag = false, sflag = false;
  48. bool eflag = false, rflag = false, hflag = false, conflag = false;
  49. integration_type algorithm = A_RUNGE_KUTTA_FEHLBERG;
  50. /* defined but not initialized */
  51. char *filename;
  52. jmp_buf mark;
  53. int fwd;
  54. int tevery;
  55. double tstart, tstop, tstep, tfrom;
  56. bool printnum, prerr;