Small reordering

This commit is contained in:
Jorge Gonzalez 2026-05-16 10:27:36 +02:00
commit 9e26bcf26e

View file

@ -273,8 +273,6 @@ MODULE moduleInject
do e = 1, self%nEdges do e = 1, self%nEdges
edge => self%edges(e)%obj edge => self%edges(e)%obj
Xi = edge%centerXi()
if (associated(edge%e1)) then if (associated(edge%e1)) then
cell => edge%e1 cell => edge%e1
@ -283,6 +281,8 @@ MODULE moduleInject
end if end if
Xi = edge%centerXi()
! Projection of EF on the edge normal vector ! Projection of EF on the edge normal vector
EF_normal = dot_product(cell%gatherElectricField(Xi), edge%normal) EF_normal = dot_product(cell%gatherElectricField(Xi), edge%normal)