@@ -66,7 +66,7 @@ bool is_HYPRE_USING_CUDA(){
66
66
HYPRE_Int *col);
67
67
68
68
*/
69
- %typemap(in) (double *data_, HYPRE_BigInt *col)(PyArrayObject * tmp_arr1_ = NULL , PyArrayObject * tmp_arr2_ = NULL ){
69
+ %typemap(in) (mfem:: real_t *data_, HYPRE_BigInt *col)(PyArrayObject * tmp_arr1_ = NULL , PyArrayObject * tmp_arr2_ = NULL ){
70
70
// HypreParVec constructer requires outside object alive
71
71
// We keep reference to such outside numpy array in ProxyClass
72
72
tmp_arr1_ = (PyArrayObject *)PyList_GetItem ($input,0 );
@@ -75,9 +75,9 @@ bool is_HYPRE_USING_CUDA(){
75
75
$1 = (double *) PyArray_DATA (tmp_arr1_);
76
76
$2 = (HYPRE_BigInt *) PyArray_DATA (tmp_arr2_);
77
77
}
78
- %typemap(freearg) (double *data_, HYPRE_BigInt *col){
78
+ %typemap(freearg) (mfem:: real_t *data_, HYPRE_BigInt *col){
79
79
}
80
- %typemap(typecheck )(double *data_, HYPRE_BigInt *col){
80
+ %typemap(typecheck )(mfem:: real_t *data_, HYPRE_BigInt *col){
81
81
/* check if list of 2 numpy array or not */
82
82
if (!PyList_Check ($input)) $1 = 0 ;
83
83
else {
@@ -103,7 +103,7 @@ bool is_HYPRE_USING_CUDA(){
103
103
104
104
%typemap(in) (int *I,
105
105
HYPRE_BigInt *J,
106
- double *data,
106
+ mfem:: real_t *data,
107
107
HYPRE_BigInt *rows,
108
108
HYPRE_BigInt *cols)
109
109
(PyArrayObject *tmp_arr1_ = NULL ,
@@ -131,7 +131,7 @@ bool is_HYPRE_USING_CUDA(){
131
131
}
132
132
}
133
133
%typemap(freearg) (int *I, HYPRE_BigInt *J,
134
- double *data, HYPRE_BigInt *rows, HYPRE_BigInt *cols){
134
+ mfem:: real_t *data, HYPRE_BigInt *rows, HYPRE_BigInt *cols){
135
135
Py_XDECREF (tmp_arr1_$argnum);
136
136
Py_XDECREF (tmp_arr2_$argnum);
137
137
Py_XDECREF (tmp_arr3_$argnum);
@@ -142,7 +142,7 @@ bool is_HYPRE_USING_CUDA(){
142
142
}
143
143
144
144
%typemap(typecheck ) (int *I, HYPRE_BigInt *J,
145
- double *data, HYPRE_BigInt *rows,
145
+ mfem:: real_t *data, HYPRE_BigInt *rows,
146
146
HYPRE_BigInt *cols){
147
147
/* check if list of 5 numpy array or not */
148
148
if (!PyList_Check ($input)) $1 = 0 ;
0 commit comments