Boundary element and finite element fracture analysis of dams by the cohesive crack model: a comparative study