In curvilinear coordinates, the divergence of a tensor field is given by
where denotes the contravariant basis.