Skip to content

Commit

Permalink
Minor fix to the implementation of show method for RefinementRule
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Jul 18, 2023
1 parent ee1b98f commit 6ce09af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adaptivity/RefinementRules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function RefinementRule(T::RefinementRuleType,poly::Polytope,ref_grid::DiscreteM
return RefinementRule(T,poly,ref_grid,p2c_cache)
end

function Base.show(io::IO,rr::RefinementRule{P}) where P
function Base.show(io::IO,rr::RefinementRule{P,A}) where {P,A}
T = RefinementRuleType(rr)
print(io,"RefinementRule{$T,$P}")
print(io,"RefinementRule{$P,$A}. RefinementRuleType=$T")
end

ReferenceFEs.get_polytope(rr::RefinementRule) = rr.poly
Expand Down

0 comments on commit 6ce09af

Please sign in to comment.