Skip to content

[usability] [consistency] get_dirichlet_dof_values #1187

@miguelmaso

Description

@miguelmaso

For post-processing purpose (e.g., monitoring residuals) I find the function get_dirichlet_dof_values very useful.

However, I noticed a possible inconsistency in the API: some related functions such as get_free_dof_values or get_cell_is_dirichlet provide methods that accept a ::FEFunction, while get_dirichlet_dof_values must be called on the finite element space associated with the function. The code below illustrates the difference:

  fv = get_free_dof_values(xh)
  dv = get_dirichlet_dof_values(get_fe_space(xh))

I'm wondering if it makes sense to add an overload accepting a FEFunction, following the pattern of get_cell_is_dirichlet defined in:

function get_cell_is_dirichlet(f::FEFunction)

See #1186 for a possible implementation. Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions