$cavitystart required setting the number of the layer is the start of the cavity in the device. This number needs to be set in the beginning of input file.
Example
$cavitystart 17