Skip to content

Commit f779087

Browse files
authored
Merge pull request #196 from gridap/divconforming
Minor change in sign map creation
2 parents f982cb0 + 41bc283 commit f779087

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Fixed `is_slave == false` (comparison instead of assignment) in `DivConformingFESpaces`, and simplified the boundary-facet branch by removing the now-redundant `if/else`.
1213
- Fixed `BlockPMatrix{V}(::UndefInitializer, rows, cols)` constructor dropping the `cols` argument, causing a `MethodError` at runtime.
1314
- Fixed `local_views(::BlockPMatrix, rows, cols)` indexing 1D block-range vectors with a 2D `CartesianIndex`, causing `BoundsError` for any multi-field problem with ≥2 fields.
1415
- Fixed `mul!(y::BlockPVector, A::BlockPMatrix, x::BlockPVector, α, β)` computing `α*β*(A*x)` instead of `α*(A*x) + β*y`; the 3-arg `mul!` was also updated to correctly zero `y` before accumulating.

src/DivConformingFESpaces.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ function _generate_sign_flips(model,cell_reffes)
126126
cells_around_facets,
127127
facet_gid)
128128
is_slave=false
129-
if (length(facet_cells_around)==1)
130-
is_slave == false
131-
else
129+
if length(facet_cells_around) > 1
132130
mx=maximum(loc_to_glo[facet_cells_around])
133131
is_slave = (loc_to_glo[cell] == mx)
134132
end

0 commit comments

Comments
 (0)