They were given warning, but it certainly wasn't in enough time for them to save the ship. If I recall the movie correctly, it was merely a matter of minutes between the time the ship's captain was made aware of the tidal wave and when it actually arrived.