Crimson Tide is a 1995 American submarine film directed by Tony Scott, and produced by Don Simpson and Jerry Bruckheimer.
While aboard, the Navy allowed the film crew to videotape Florida's Executive Officer, Lieutenant Commander William Toti, performing many of the same actions (Executive Officer's response to fire, flooding, missile launch sequence, etc.) that actor Denzel Washington eventually performed as Executive Officer in the movie.
The Navy had been led to believe that the movie's storyline was going to be about a Trident submarine crew attempting to stop the ship's (fictional) computer from launching nuclear missiles and starting World War III. In movie parlance, the Navy was told the story would be "The Hunt for Red October meets 2001: A Space Odyssey."
https://en.wikipedia.org/wiki/Crimson_Tide_(film)