San Francisco Naval Shipyard
Much of the filming was done at the San Francisco Naval Shipyard, including scenes aboard a submarine, and several naval personnel were given supporting roles.