In an action for partition of property, the court may apportion the costs of partition, including an appraisal fee, pursuant to Section 874.040, except that the court shall not apportion the costs of partition to any party that opposes the partition unless doing so is equitable and consistent with the purposes of this chapter.
Ca. Civ. Proc. Code § 874.321.5