Skip to content

Commit ff129f5

Browse files
Added necessary lines of code to keep the old FESpaceWithDofRemoved
alive for backwards compatibility
1 parent 462b375 commit ff129f5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

NEWS.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [0.14.1]
88

99
### Added
10-
- Added VectorWithEntryInserted and VectorWithEntryRemoved. Since PR [#401](https://github.com/gridap/Gridap.jl/pull/401/)
10+
- Added VectorWithEntryInserted and VectorWithEntryRemoved. Since PR [#401](https://github.com/gridap/Gridap.jl/pull/401/).
11+
12+
### Deprecated
13+
- The name FESpaceWithLastDofRemoved has been deprecated in favor of its generalization FESpaceWithConstantFixed. Since PR [#396](https://github.com/gridap/Gridap.jl/pull/396).
1114

1215
## [0.14.0] - 2020-08-27
1316

src/FESpaces/FESpaces.jl

-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ export collect_cell_jacobian
204204
export collect_cell_jacobian_and_residual
205205
export collect_cell_residual
206206

207-
const FESpaceWithLastDofRemoved = FESpaceWithConstantFixed
208207
export FESpaceWithConstantFixed
209208
export FESpaceWithLastDofRemoved
210209

src/FESpaces/FESpacesWithConstantFixed.jl

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ struct FESpaceWithConstantFixed{CS,CA<:ConstantApproach} <: SingleFieldFESpace
3030
end
3131
end
3232

33+
const FESpaceWithLastDofRemoved{CS} = FESpaceWithConstantFixed{CS,FixConstant}
34+
@deprecate FESpaceWithLastDofRemoved(space::SingleFieldFESpace) = FESpaceWithConstantFixed(space,true)
35+
3336
# Genuine functions
3437
function num_free_dofs(f::FESpaceWithConstantFixed{CS,FixConstant}) where {CS}
3538
num_free_dofs(f.space)-1

0 commit comments

Comments
 (0)