Water stands upto height $h$ behind the dam as shown in the figure. The front view of the dam gate is also shown in the adjoining figure. Density of water is $\rho$ and acceleration due to gravity is $g$. If atmospheric pressure force is also considered, then the point of application of total force acting on the dam due to water above $O$ is