When it is necessary to erect a partition fence in a body of water, such fence shall be built in equal shares unless it is agreed otherwise by the parties. If either party refuses or neglects to build or maintain that party’s share of the fence, the other party may build or maintain the same and recover therefor in the manner provided in section 47-26-08.