conf.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* #define-lines below added during FMU creation */
  2. #ifndef FMI_VER
  3. #define FMI_VER 2
  4. #endif
  5. #define FMU_CO_SIM
  6. #define FMU_SOURCE_CODE_EXPORT
  7. /* Configuration file for Dymosim FMI implementation. */
  8. #ifndef conf_h
  9. #define conf_h
  10. /* -- set to 1 or 2 for FMI version 1 and 2 respectively -- */
  11. /* use #ifndef to allow setting from makefile */
  12. #ifndef FMI_VER
  13. #define FMI_VER 1
  14. #endif
  15. /* do not edit from here ... */
  16. #if FMI_VER == 2
  17. #define FMI_2
  18. #endif
  19. #ifdef FMI_2
  20. /* -- save state configuration -- */
  21. /*#define SAVE_STATE_DSMODEL*/
  22. /*#define SAVE_STATE_SUNDIALS*/
  23. #endif
  24. /* -- Define to only inlcude nessesary part for inline integration -- */
  25. /*#ifndef ONLY_INCLUDE_INLINE_INTEGRATION
  26. #define ONLY_INCLUDE_INLINE_INTEGRATION
  27. #endif*/
  28. /*-- DymolaEventOptional_ should Always be 0 when using CVODE and always 1 when using--*/
  29. /*-- inline integration with Co-Simulation. In Model Exchange it should always be --*/
  30. /*-- set to 0 unless the solver will call the event handling even when there are --*/
  31. /*-- no events, in that case define OVERIDE_DYMOLA_EVENT_OPTIONAL --*/
  32. /*#define OVERIDE_DYMOLA_EVENT_OPTIONAL*/
  33. #ifndef DYMOLA_STATIC
  34. #define DYMOLA_STATIC
  35. #endif
  36. /* Skip some parts for model exchange/co-simulation 1.0 code export since standard header files are separate. */
  37. #if !defined(FMI_2) && defined(FMU_SOURCE_CODE_EXPORT)
  38. #if defined(FMU_CO_SIM)
  39. #define FMU_SKIP_MODEL_EXCHANGE
  40. #else
  41. #define FMU_SKIP_CO_SIM
  42. #endif
  43. #endif
  44. /* ... do not edit until here */
  45. /* -- switch to new code generation -- */
  46. /*#define NEW_CODE_GENERATION*/
  47. /* -- for debugging memory leaks -- */
  48. /*#define MEMLEAK_DEBUG*/
  49. #ifdef MEMLEAK_DEBUG
  50. #define NCHUNKS 8092
  51. #endif
  52. /* -- to give extra informational messages -- */
  53. /*#define FMU_VERBOSITY*/
  54. /* -- define if compiled on platform without file system -- */
  55. /*#define NO_FILE*/
  56. /* -- for logging -- */
  57. /*#define LOG_EVENTS*/
  58. #define LOG_STATISTICS
  59. #endif /* conf_h */