Documentation #330

Updated by wuttke almost 7 years ago

Right now, when kz is exactly zero inside a layer, a possible linear amplitude profile is not taken care are of.
Instead, the following happens:
* kz=0 in the top layer of a multilayer sample with more than one layer: this means zero glancing angle and we take T0=1 and R0=-1 (as this represents the correct limit). All boundary conditions at the interfaces are put to zero;
* kz=0 in the only layer: in this case, we only have Born approximation and T=1 and R=0;
* kz=0 in a layer, other than the top layer of a multilayer sample: while the correct boundary conditions will be calculated, the used profile is a constant one and T=boundary value of wavefunction and R=0.