Up in Scotland last week I heard many story about (but none from, unfortunately) male submariners who formed sexual relationships in submarines. The classic phrase, apparently, is '140 men went down and 70 couples came back up.'
That was said with some homophobia - as in 'I wouldn't work on submarines because this happens.' But the point is that if men are submerged for three months at a time, then of course they are going to get together. And of course the captain is going to turn a blind eye. Indeed, some captains themselves had affairs.
Homosexuality at sea has had a hidden history. But even more hidden is the history of gay US submariners, particularly those working at Holy Loch on nuclear subs. From 1961 and 1992 Holy Loch was the home base of US Submarine Squadron 14, and used for refit and crew turnover. It would so useful if someone could retriev this 'other' history.
Incidentally, for all that subs were so slow to allow women crew, there was at least one in the early days: NASA astronout Dr Laurel Blair Salton Clark (1961-2003) worked at Holy Loch around 1989-92, dived with Navy divers and SEALs, and made many medical evacuations from US submarines. She was a Naval Submarine Medical Officer and Diving Medical Officer. See her wikipedia entry.