Skip to content

Commit

Permalink
Merge pull request #609 from gridap/add_deprecation_errors
Browse files Browse the repository at this point in the history
Adding deprecation errors for get_free_values and get_dirichlet_values
  • Loading branch information
fverdugo authored Jun 3, 2021
2 parents 33dea3c + 08ae620 commit a71e7c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ using Gridap.CellData: ∫; export ∫
@publish Visualization writevtk
@publish Visualization createvtk

# Deprecated / removed

export apply
function apply(args...)
Helpers.@unreachable """\n
Expand Down Expand Up @@ -237,3 +239,6 @@ function FESource(args...)
This error message will be deleted in future versions.
"""
end

@publish FESpaces get_free_values
@publish FESpaces get_dirichlet_values
10 changes: 10 additions & 0 deletions src/FESpaces/FESpaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,14 @@ include("ExtendedFESpaces.jl")

include("FESpacesWithLinearConstraints.jl")

export get_free_values
function get_free_values(args...)
@unreachable "get_free_values has been removed. Use get_free_dof_values instead."
end

export get_dirichlet_values
function get_dirichlet_values(args...)
@unreachable "get_dirichlet_values has been removed. Use get_dirichlet_dof_values instead."
end

end # module

0 comments on commit a71e7c1

Please sign in to comment.