The wave action makes the gravity dam withstand the wave pressure, and the wave pressure is related to the wave elements and the water depth in front of the dam. Therefore, when calculating the wave pressure, the wave elements should be calculated and the wave state discriminated.