Skip to content

Commit

Permalink
note to jordi
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Sep 15, 2024
1 parent e2c29ec commit 4efb067
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions scripts/Embedded/differentiable_trians.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,15 @@ function Geometry.get_glue(ttrian::DifferentiableTriangulation{Dc},val::Val{d})
FaceToFaceGlue(tface_to_mface,tface_to_mface_map,nothing)
end

function CellData.change_domain(a::CellField,strian::DifferentiableTriangulation,sds::ReferenceDomain,ttrian::Triangulation,tds::ReferenceDomain)
change_domain(a,strian.trian,sds,ttrian,tds)
end

function CellData.change_domain(a::CellField,strian::DifferentiableTriangulation,sds::ReferenceDomain,ttrian::DifferentiableTriangulation,tds::ReferenceDomain)
change_domain(a,strian.trian,sds,ttrian.trian,tds)
end

function CellData.change_domain(a::CellField,strian::Triangulation,sds::ReferenceDomain,ttrian::DifferentiableTriangulation,tds::ReferenceDomain)
change_domain(a,strian,sds,ttrian.trian,tds)
end
# This was meant to fix the case of having something like j_in(φ) = ∫(fh*fh)dΩin but it breaks stuff!!
# function CellData.change_domain(a::CellField,strian::DifferentiableTriangulation,sds::ReferenceDomain,ttrian::Triangulation,tds::ReferenceDomain)
# change_domain(a,strian.trian,sds,ttrian,tds)
# end

# function CellData.change_domain(a::CellField,strian::DifferentiableTriangulation,sds::ReferenceDomain,ttrian::DifferentiableTriangulation,tds::ReferenceDomain)
# change_domain(a,strian.trian,sds,ttrian.trian,tds)
# end

# function CellData.change_domain(a::CellField,strian::Triangulation,sds::ReferenceDomain,ttrian::DifferentiableTriangulation,tds::ReferenceDomain)
# change_domain(a,strian,sds,ttrian.trian,tds)
# end

0 comments on commit 4efb067

Please sign in to comment.