Turns out that one (of possibly more) errors with the local residual was the modification of the spectral field during the IFFT.
To remedy I have added a couple methods with an extra auxiliary spectral field that can be modified during the transform without problem. This obviously isn't particularly desirable since it necessitates an extra spectral array. The ultimate solution will probably come from digging through the docs in extreme detail (I've had a cursory look already and found nothing).
Turns out that one (of possibly more) errors with the local residual was the modification of the spectral field during the IFFT.
To remedy I have added a couple methods with an extra auxiliary spectral field that can be modified during the transform without problem. This obviously isn't particularly desirable since it necessitates an extra spectral array. The ultimate solution will probably come from digging through the docs in extreme detail (I've had a cursory look already and found nothing).
https://github.com/The-ReSolver/Fields.jl/blob/0741e73f1eb6772909d98ef0aa20d6056658874d/src/fft.jl#L92-L102