@@ -66,7 +66,7 @@ bool is_HYPRE_USING_CUDA(){
6666 HYPRE_Int *col);
6767
6868*/
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 ){
7070 // HypreParVec constructer requires outside object alive
7171 // We keep reference to such outside numpy array in ProxyClass
7272 tmp_arr1_ = (PyArrayObject *)PyList_GetItem ($input,0 );
@@ -75,9 +75,9 @@ bool is_HYPRE_USING_CUDA(){
7575 $1 = (double *) PyArray_DATA (tmp_arr1_);
7676 $2 = (HYPRE_BigInt *) PyArray_DATA (tmp_arr2_);
7777}
78- %typemap(freearg) (double *data_, HYPRE_BigInt *col){
78+ %typemap(freearg) (mfem:: real_t *data_, HYPRE_BigInt *col){
7979}
80- %typemap(typecheck )(double *data_, HYPRE_BigInt *col){
80+ %typemap(typecheck )(mfem:: real_t *data_, HYPRE_BigInt *col){
8181 /* check if list of 2 numpy array or not */
8282 if (!PyList_Check ($input)) $1 = 0 ;
8383 else {
@@ -103,7 +103,7 @@ bool is_HYPRE_USING_CUDA(){
103103
104104%typemap(in) (int *I,
105105 HYPRE_BigInt *J,
106- double *data,
106+ mfem:: real_t *data,
107107 HYPRE_BigInt *rows,
108108 HYPRE_BigInt *cols)
109109 (PyArrayObject *tmp_arr1_ = NULL ,
@@ -131,7 +131,7 @@ bool is_HYPRE_USING_CUDA(){
131131 }
132132}
133133%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){
135135 Py_XDECREF (tmp_arr1_$argnum);
136136 Py_XDECREF (tmp_arr2_$argnum);
137137 Py_XDECREF (tmp_arr3_$argnum);
@@ -142,7 +142,7 @@ bool is_HYPRE_USING_CUDA(){
142142}
143143
144144%typemap(typecheck ) (int *I, HYPRE_BigInt *J,
145- double *data, HYPRE_BigInt *rows,
145+ mfem:: real_t *data, HYPRE_BigInt *rows,
146146 HYPRE_BigInt *cols){
147147 /* check if list of 5 numpy array or not */
148148 if (!PyList_Check ($input)) $1 = 0 ;
0 commit comments