Flood problems involving public structures: two case studies