Apodizing light sets rays invalid at wrong position
The apodization is done prioir to propagation at the input or the output ports.
For ray-tracing, this results in a wrong Raypositon history and even wrong apodizing (imagine a demagnifucation telescope with 2" lens as first lens and a 1" lens as second lens. THen, all rays with position exceeding that of the second lens are set invalid even thoug they should propagate)