diff --git a/NEWS.md b/NEWS.md index 4405f7e5..7e00beec 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Updated `RichardsonLinearSolver` to also accept the relaxation parameter as an `AbstractVector{Float64}` (in addition to a scalar `Float64`). Since PR[#106](https://github.com/gridap/GridapSolvers.jl/pull/106/files). + ## [0.7.0] - 2026-03-10 ### Breaking diff --git a/src/LinearSolvers/RichardsonLinearSolvers.jl b/src/LinearSolvers/RichardsonLinearSolvers.jl index b5270d50..64c38362 100644 --- a/src/LinearSolvers/RichardsonLinearSolvers.jl +++ b/src/LinearSolvers/RichardsonLinearSolvers.jl @@ -8,10 +8,10 @@ Richardson Iteration, with an optional left preconditioners `Pl`. The relaxation parameter (ω) can either be of type Float64 or Vector{Float64}. -This gives flexiblity in relaxation. +This gives flexibility in relaxation. """ struct RichardsonLinearSolver<:Gridap.Algebra.LinearSolver - ω::Union{Vector{Float64},Float64} + ω::Union{AbstractVector{Float64},Float64} Pl::Union{Gridap.Algebra.LinearSolver,Nothing} log::ConvergenceLog{Float64} end