$RCWAsourceposition required setting tag the layers you want to put the light sources. This number needs to be set in the beginning of input file. It relates to $RCWAsourcelength.
Example
$RCWAsourceposition
3 - layer3
2 - layer3 region2
$RCWAsourcelength