Go to the documentation of this file.
24 #ifndef __GyotoDefs_H_
25 #define __GyotoDefs_H_
39 #define sincos(t, s, c) *s=sin(t); *c=cos(t)
42 # define sincos(t, s, c) (undefined)
77 #define GYOTO_QUANTITY_INTENSITY 1
79 #define GYOTO_QUANTITY_EMISSIONTIME 2
84 #define GYOTO_QUANTITY_MIN_DISTANCE 4
86 #define GYOTO_QUANTITY_FIRST_DMIN 8
88 #define GYOTO_QUANTITY_REDSHIFT 16
93 #define GYOTO_QUANTITY_IMPACTCOORDS 32
95 #define GYOTO_QUANTITY_SPECTRUM 512
97 #define GYOTO_QUANTITY_BINSPECTRUM 1024
100 #define GYOTO_QUANTITY_USER1 32768
102 #define GYOTO_QUANTITY_USER2 16384
104 #define GYOTO_QUANTITY_USER3 8192
106 #define GYOTO_QUANTITY_USER4 4096
108 #define GYOTO_QUANTITY_USER5 2048
129 #define GYOTO_DEFAULT_DEBUG_MODE 0
137 #define GYOTO_QUIET_VERBOSITY 1
146 #define GYOTO_SEVERE_VERBOSITY 3
155 #define GYOTO_WARNING_VERBOSITY GYOTO_SEVERE_VERBOSITY
164 #define GYOTO_DEFAULT_VERBOSITY 5
173 #define GYOTO_INFO_VERBOSITY 10
183 #define GYOTO_DEBUG_VERBOSITY 3000
195 #define GYOTO_QUIET if (Gyoto::verbose() >= GYOTO_QUIET_VERBOSITY) std::cout
203 #define GYOTO_SEVERE if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY) std::cerr<<"SEVERE: "
211 #define GYOTO_WARNING if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY) std::cerr<<"WARNING: "
222 #define GYOTO_MSG if (Gyoto::verbose() >= GYOTO_DEFAULT_VERBOSITY) std::cout
233 #define GYOTO_INFO if (Gyoto::verbose() >= GYOTO_INFO_VERBOSITY) std::cerr<<"INFO: "
243 #define GYOTO_WARNING_UDUNITS(from, to) \
244 GYOTO_WARNING << "unit ignored (trying to convert from \"" << from \
247 << "\"), you may have more chance recompiling Gyoto with --with-udunits\n"
262 #define GYOTO_DEBUG_EXPR(a) GYOTO_DEBUG << #a << "=" << a << std::endl
281 #define GYOTO_DEBUG_ARRAY(a,n) if (GYOTO_DEBUG_MODE) { \
282 std::cerr << "DEBUG: " << __PRETTY_FUNCTION__ << ": " \
283 << #a << "=[" << a[0] ; \
284 for (size_t _gyoto_debug_array_i=1; _gyoto_debug_array_i < n; ++_gyoto_debug_array_i) \
285 std::cerr << "," << a[_gyoto_debug_array_i] ; \
286 std::cerr << "]" << std::endl ;}
298 #define GYOTO_DEBUG if (GYOTO_DEBUG_MODE) std::cerr << "DEBUG: " << __PRETTY_FUNCTION__ << ": "
305 #define GYOTO_IF_DEBUG if (GYOTO_DEBUG_MODE) {
312 #define GYOTO_ENDIF_DEBUG }
315 #define GYOTO_DEBUG_MODE Gyoto::debug()
332 #define GYOTO_COORDKIND_UNSPECIFIED 0
333 #define GYOTO_COORDKIND_CARTESIAN 1
334 #define GYOTO_COORDKIND_SPHERICAL 2
343 #define GYOTO_DEFAULT_X_SIZE 1024
352 #define GYOTO_DEFAULT_DELTA 0.01
357 #define GYOTO_DEFAULT_MAXITER 100000
364 #define GYOTO_T_TOL 1e-4
368 #define GYOTO_SCREEN_DMAX 1e7
372 #define GYOTO_PREC 15
374 #define GYOTO_WIDTH 25
378 #ifndef GYOTO_DEFAULT_PLUGINS
379 #define GYOTO_DEFAULT_PLUGINS "stdplug,nofail:lorene"
382 #ifndef GYOTO_PLUGIN_SFX
383 #define GYOTO_PLUGIN_SFX "so"
393 #define GYOTO_C 299792458.
395 #define GYOTO_C_CGS 2.99792458e10
397 #define GYOTO_G 6.67428e-11
399 #define GYOTO_G_CGS 6.67428e-8
401 #define GYOTO_G_OVER_C_SQUARE 7.426138e-28
403 #define GYOTO_PLANCK 6.62606896e-34
405 #define GYOTO_PLANCK_CGS 6.62606896e-27
407 #define GYOTO_PLANCK_OVER_C_SQUARE 7.372496e-51
409 #define GYOTO_BOLTZMANN 1.3806504e-23
411 #define GYOTO_BOLTZMANN_CGS 1.3806504e-16
413 #define GYOTO_PLANCK_OVER_BOLTZMANN 4.7992373e-11
415 #define GYOTO_GAS_CST 8.3144621
417 #define GYOTO_GAS_CST_CGS 8.3144621e7
419 #define GYOTO_AVOGADRO 6.0221413e23
421 #define GYOTO_THOMSON_CGS 6.6524e-25
423 #define GYOTO_ALPHA_F 0.00729927
425 #define GYOTO_PROTON_MASS_CGS 1.67262158e-24
427 #define GYOTO_ELECTRON_MASS_CGS 9.10938188e-28
429 #define GYOTO_ELECTRON_CLASSICAL_RADIUS_CGS 2.8179e-13
431 #define GYOTO_ELEMENTARY_CHARGE_CGS 4.80320427e-10
433 #define GYOTO_EULER_MASCHERONI 0.577216
435 #define GYOTO_ATOMIC_MASS_UNIT_CGS 1.660537781e-24
437 #define GYOTO_INU_CGS_TO_SI 0.001
440 #define GYOTO_SUN_MASS 1.98843e30
442 #define GYOTO_SUN_MASS_CGS 1.98843e33
444 #define GYOTO_SUN_RADIUS 6.955e8
446 #define GYOTO_KPC 3.08568025e19
448 #define GYOTO_ASTRONOMICAL_UNIT 1.49597870700e11
450 #define GYOTO_LIGHT_YEAR 9.4607304725808e15
453 #define GYOTO_RADEG 57.2957795130823
455 #define GYOTO_DEGRAD 0.0174532925199433
457 #define GYOTO_MINRAD 2.908882086657216e-04
459 #define GYOTO_SECRAD 4.848136811095360e-06
461 #define GYOTO_MASRAD 4.848136811095360e-09
463 #define GYOTO_MUASRAD 4.848136811095360e-12
466 #define GYOTO_eV2Hz 2.417989348e+14