Improving resilience of protected wells to flooding