Make PDomainC write domain rank