$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 - region2 at layer3
$RCWAsourcelength