From 4ff7c5eed6b546ae42692f3a869a5ccc095a9cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 16 Dec 2019 15:40:15 +0100 Subject: Mantaflow [Part 1]: Added preprocessed Mantaflow source files Includes preprocessed Mantaflow source files for both OpenMP and TBB (if OpenMP is not present, TBB files will be used instead). These files come directly from the Mantaflow repository. Future updates to the core fluid solver will take place by updating the files. Reviewed By: sergey, mont29 Maniphest Tasks: T59995 Differential Revision: https://developer.blender.org/D3850 --- extern/mantaflow/helper/pwrapper/pythonInclude.h | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 extern/mantaflow/helper/pwrapper/pythonInclude.h (limited to 'extern/mantaflow/helper/pwrapper/pythonInclude.h') diff --git a/extern/mantaflow/helper/pwrapper/pythonInclude.h b/extern/mantaflow/helper/pwrapper/pythonInclude.h new file mode 100644 index 00000000000..0f78c6641d2 --- /dev/null +++ b/extern/mantaflow/helper/pwrapper/pythonInclude.h @@ -0,0 +1,48 @@ +/****************************************************************************** + * + * MantaFlow fluid solver framework + * Copyright 2011 Tobias Pfaff, Nils Thuerey + * + * This program is free software, distributed under the terms of the + * Apache License, Version 2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Base class for particle systems + * + ******************************************************************************/ + +#ifndef _PYTHONINCLUDE_H +#define _PYTHONINCLUDE_H + +#if defined(WIN32) || defined(_WIN32) + +// note - we have to include these first! +# include +# include +# include + +#endif + +// the PYTHON_DEBUG_WITH_RELEASE define enables linking with python debug libraries +#if (defined(_DEBUG) || (DEBUG == 1)) && defined(DEBUG_PYTHON_WITH_RELEASE) + +// special handling, disable linking with debug version of python libs +# undef _DEBUG +# define NDEBUG +# include +# if NUMPY == 1 +# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION +# include "numpy/arrayobject.h" +# endif +# define _DEBUG +# undef NDEBUG + +#else +# include +# if NUMPY == 1 +# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION +# include "numpy/arrayobject.h" +# endif +#endif + +#endif -- cgit v1.2.3