The nature and politics of the times has to make this such a volatile work environment especially when one can't 'go home' during off hours.
I've also worked in mixed company. Decades ago, I worked in a somewhat crowded building of some hundreds of people. My office was small and in an isolated part of the building and I shared it with three young attractive women who were part of my staff. Whilst I also had male staff they worked in other sections of the building.
Working with these women in close quarters was very different to working in an all-male environment which I had been used to previously. I enjoyed their company and we got along well together, and I was always well behaved and there were no complaints about my behavior. In fact, as their superior, they'd gang up and bully me—they ruled the office, not me.
Times have changed, there's absolutely no way I would accept working in that situation today as it'd be just too risky. Similarly, I wouldn't expect my employer to allow me to work for eight hours per day under such risky conditions.
Sure, women have rights to equality and I'd never deny them that right, but it seems to me that mixed company on a submarine is an 'explosive' environment and it's inevitable there will be trouble. (A group of males locked up and isolated without sex for three months but still in the tempting presence of women isn't natural.)
One has to feel some sympathy for all of those submariners.