use c++ casts

This commit is contained in:
Arne Morten Kvarving 2025-01-23 10:43:09 +01:00
parent 9ed93eeecc
commit e108e4b8c1

View File

@ -319,7 +319,7 @@ private:
}
HYPRE_IJMatrixAssemble(A_hypre_);
HYPRE_IJMatrixGetObject(A_hypre_, (void**)&parcsr_A_);
HYPRE_IJMatrixGetObject(A_hypre_, reinterpret_cast<void**>(&parcsr_A_));
}
/**
@ -350,8 +350,8 @@ private:
HYPRE_IJVectorAssemble(x_hypre_);
HYPRE_IJVectorAssemble(b_hypre_);
HYPRE_IJVectorGetObject(x_hypre_, (void**)&par_x_);
HYPRE_IJVectorGetObject(b_hypre_, (void**)&par_b_);
HYPRE_IJVectorGetObject(x_hypre_, reinterpret_cast<void**>(&par_x_));
HYPRE_IJVectorGetObject(b_hypre_, reinterpret_cast<void**>(&par_b_));
}
/**