added "if(lasing" to code in Jacobian that forms Tensor derivatives