Where a preliminary injunction has been granted pursuant to Section 2020, the final judgment shall equitably compensate in quantities of water for such variations as there may be between the rights of the parties to the use of water on which such preliminary injunction is based, and as such rights are determined in such final judgment.