Skip to content
Snippets Groups Projects
Commit f8e7d601 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

swig : fix build without numpy

parent 9b83d57a
No related branches found
No related tags found
No related merge requests found
%include "GmshConfig.h"
%fragment("fullMatrixConversionInit", "init") {
%#ifdef HAVE_NUMPY
import_array();
......@@ -157,11 +158,10 @@
if (newMatrix$argnum && $1) delete $1;
}
%#include "GmshConfig.h"
%#ifdef HAVE_NUMPY
#ifdef HAVE_NUMPY
%typemap(out, fragment="fullMatrixConversion") fullMatrix<double> {
$result = fullMatrix2PyArray($1);
}
%#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment