Skip to content

Commit

Permalink
Access grid from ch.dh
Browse files Browse the repository at this point in the history
  • Loading branch information
KnutAM committed Feb 6, 2023
1 parent 5e593fa commit f5c6ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dofs/ConstraintHandler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ function add!(ch::ConstraintHandler{<:MixedDofHandler}, dbc::Dirichlet)
end

function add!(ch::ConstraintHandler, fh::FieldHandler, dbc::Dirichlet; warn_not_in_cellset=true)
if warn_not_in_cellset && !(_in_cellset(grid, cellset, faceset; all=true))
if warn_not_in_cellset && !(_in_cellset(ch.dh.grid, cellset, faceset; all=true))
@warn("You are trying to add a constraint a face/edge/node that is not in the cellset of the fieldhandler. This location will be skipped")
end

Expand Down

0 comments on commit f5c6ec7

Please sign in to comment.