diff --git a/NEWS.md b/NEWS.md index 5d4678dd..c4020112 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed bug in `TrialFESpace!`. Since PR[#208](https://github.com/gridap/GridapDistributed.jl/pull/208). + ## [0.4.16] - 2026-04-29 ### Fixed diff --git a/src/FESpaces.jl b/src/FESpaces.jl index 29465f2c..01109490 100644 --- a/src/FESpaces.jl +++ b/src/FESpaces.jl @@ -408,10 +408,10 @@ function FESpaces.TrialFESpace(fun,f::DistributedSingleFieldFESpace) end function FESpaces.TrialFESpace!(f::DistributedSingleFieldFESpace,fun) - spaces = map(f.spaces) do s + map(f.spaces) do s TrialFESpace!(s,fun) end - DistributedSingleFieldFESpace(spaces,f.gids,f.trian,f.vector_type,f.metadata) + return f end function FESpaces.TrialFESpace(f::DistributedSingleFieldFESpace,cf::DistributedCellField)