Conversation
|
I think you already said something that was missing when we looked at it in the meeting, but I didn't quite catch it - so apologies if this is duplicate: It looks like It doesn't look like Function.interpolate() has an I haven't really looked into to maths side of this, but I'm wondering whether the reason we we were getting the wrong answer previously is because we are first transferring the adjoint solution from a cofunction to a function (which is mathematically a bit dodgy). If you |
|
Ah thanks very much for this, it's enlightening. Seems like we need to rework things a bit. |
|
Superseded by #191. |
Closes #113.
Fixes adjoint interpolation by making use of the
adjoint=Truekwarg for theFunction.interpolatemethod and by modifyingfunction2cofunctionandcofunction2functionso that they accept rvalues to allow them to modify in-place.Re-enabled the adjoint transfer unit tests for the cases with the same function spaces. If the forward transfer operator is the identity then so is the adjoint.