Skip to content

Commit f5fbf57

Browse files
committed
changed import_array() to import_array1(-1) to reduce warning: converting to non-pointer type ‘int’ from NULL. the same warning comes from mpi4py too
1 parent 5fcbd6d commit f5fbf57

202 files changed

Lines changed: 202 additions & 203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mfem/_par/array.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define PY_SSIZE_T_CLEAN
2020
%}
2121
%init %{
22-
import_array();
22+
import_array1(-1);
2323
%}
2424

2525
%include "exception.i"

mfem/_par/arrays_by_name.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#ifdef FILE_EXISTS_GENERAL_ARRAYS_BY_NAME
1717
%init %{
18-
import_array();
18+
import_array1(-1);
1919
%}
2020

2121
%include "exception.i"

mfem/_par/attribute_sets.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifdef FILE_EXISTS_MESH_ATTRIBUTE_SETS
1616

1717
%init %{
18-
import_array();
18+
import_array1(-1);
1919
%}
2020

2121
%include "exception.i"

mfem/_par/auxiliary.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
%}
1515

1616
%init %{
17-
import_array();
17+
import_array1(-1);
1818
%}
1919

2020
%include "../common/mfem_config.i"

mfem/_par/bilinearform.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace mfem;
1414
%}
1515

1616
%init %{
17-
import_array();
17+
import_array1(-1);
1818
%}
1919
%include "exception.i"
2020

mfem/_par/bilininteg.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
%}
1616

1717
%init %{
18-
import_array();
18+
import_array1(-1);
1919
%}
2020

2121
//%include "../common/cpointers.i"

mfem/_par/blockmatrix.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
%}
1414
// initialization required to return numpy array from SWIG
1515
%init %{
16-
import_array();
16+
import_array1(-1);
1717
%}
1818

1919
%include "exception.i"

mfem/_par/blockoperator.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
%}
1414
// initialization required to return numpy array from SWIG
1515
%init %{
16-
import_array();
16+
import_array1(-1);
1717
%}
1818
%import "array.i"
1919
%import "vector.i"

mfem/_par/blockvector.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%}
1010
// initialization required to return numpy array from SWIG
1111
%init %{
12-
import_array();
12+
import_array1(-1);
1313
%}
1414

1515
%include "exception.i"

mfem/_par/bounds.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifdef FILE_EXISTS_FEM_BOUNDS
1717

1818
%init %{
19-
import_array();
19+
import_array1(-1);
2020
%}
2121
%include "exception.i"
2222
%import "vector.i"

0 commit comments

Comments
 (0)