From aecd44242345ed32cfcf8088851dda0b9f95e82e Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 9 Oct 2024 23:00:03 +0200 Subject: [PATCH] Make const fields in HYPRE(Matrix|Vector) const --- src/HYPRE.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/HYPRE.jl b/src/HYPRE.jl index eeec380..c493930 100644 --- a/src/HYPRE.jl +++ b/src/HYPRE.jl @@ -50,11 +50,11 @@ end ############### mutable struct HYPREMatrix # <: AbstractMatrix{HYPRE_Complex} - #= const =# comm::MPI.Comm - #= const =# ilower::HYPRE_BigInt - #= const =# iupper::HYPRE_BigInt - #= const =# jlower::HYPRE_BigInt - #= const =# jupper::HYPRE_BigInt + const comm::MPI.Comm + const ilower::HYPRE_BigInt + const iupper::HYPRE_BigInt + const jlower::HYPRE_BigInt + const jupper::HYPRE_BigInt ijmatrix::HYPRE_IJMatrix parmatrix::HYPRE_ParCSRMatrix end @@ -104,9 +104,9 @@ end ############### mutable struct HYPREVector # <: AbstractVector{HYPRE_Complex} - #= const =# comm::MPI.Comm - #= const =# ilower::HYPRE_BigInt - #= const =# iupper::HYPRE_BigInt + const comm::MPI.Comm + const ilower::HYPRE_BigInt + const iupper::HYPRE_BigInt ijvector::HYPRE_IJVector parvector::HYPRE_ParVector end