Pitfall with change_domain
and AdaptiveTriangulation
s
#920
Labels
enhancement
New feature or request
change_domain
and AdaptiveTriangulation
s
#920
Hi @JordiManyer,
when I run the following MWE:
I obtain:
in the first call to
print_op_tree
, whilein the second.
You will see the sequence composition of the direct, inverse, and direct geometrical mappings. This is inefficient, as only a single composition with the direct mapping is enough, as you can see in the second case.
The first call to
change_domain
is triggered when you, e.g., substractcf
and a FE functionuh
. Namely, from the_to_common_domain(a::CellField...)
Gridap.jl function ... so it is a quite frequent case.In regards to why it happens, it is because the way
change_domain
is defined forAdaptedTriangulation
s:An immediate way around this, it to modify the definition of the first
change_domain
right above by:BUT ... is there something else I might be missing??? First, is the current implementation of
change_domain
forAdaptiveTriangulation
s reasonable, if yes why? Second, can it be that we are somehow assuming that the target and source triangulations have to be different for this method to be the way to go?The text was updated successfully, but these errors were encountered: