The influence of submerged coastal structures on nearshore flows and wave runup