| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef LIBFMI_LIB
- /* This is a wrapper file including all source files. Use this when you need to compile everything into a single
- compilation unit, where all internal functions and variables are static. This is necessary when combining
- the source code with others FMUs exported by CATIA DBM or Dymola.*/
- /* set to be able to compile everything in a single compilation unit, which enables static functions
- and symbols, which in turn enables creation of static libraries without name clashes */
- #ifndef FMU_SOURCE_SINGLE_UNIT
- #define FMU_SOURCE_SINGLE_UNIT
- #endif
- /* must set explicitly for FMI code */
- #define DYMOLA_STATIC static
- #define DYMOLA_STATIC_IMPORT extern
- /* for Sundials code */
- #define SUNDIALS_EXPORT static
- #define RT
- /*dsblock1.c has dependecies on definitions from this header*/
- #include "fmiModelIdentifier.h"
- /* dsmodel */
- #include "dsmodel.c"
- #include "extendedIncludes.h"
- /* libfmi */
- #ifdef FMI_2
- #include "fmi2Functions.c"
- #else
- #include "fmiFunctions.c"
- #endif
- #include "fmiCommonFunctions_int.c"
- #include "fmiMEFunctions_int.c"
- #include "util.c"
- #include "fmiCoSimFunctions_int.c"
- #ifndef ONLY_INCLUDE_INLINE_INTEGRATION
- #include "integration.c"
- #include "jac.c"
- /* CVODE */
- #include "cvode.c"
- #include "cvode_dense.c"
- #include "cvode_direct.c"
- #include "cvode_io.c"
- #include "nvector_serial.c"
- #include "sundials_dense.c"
- #include "sundials_direct.c"
- #include "sundials_math.c"
- #include "sundials_nvector.c"
- #endif /*ONLY_INCLUDE_INLINE_INTEGRATION*/
- #endif
|