Commit ba393798 authored by jannick.wolters's avatar jannick.wolters
Browse files

solved python compiler warnings

parent 9f3e992f
Pipeline #116156 failed with stage
in 14 minutes and 6 seconds
......@@ -31,6 +31,7 @@
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL KITRT_IO_ARRAY_API
#include <numpy/arrayobject.h>
using vtkPointsSP = vtkSmartPointer<vtkPoints>;
......@@ -365,6 +366,8 @@ Matrix createSU2MeshFromImage( std::string imageName, std::string SU2Filename )
ErrorMessages::Error( "Output directory '" + outDir.string() + "' does not exists!", CURRENT_FUNCTION );
}
_import_array();
std::string pyPath = KITRT_PYTHON_PATH;
if( !Py_IsInitialized() ) {
......
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL KITRT_MLOPT_ARRAY_API
#include <numpy/arrayobject.h>
#include "common/config.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment