Sorry, dog that's just plain wrong.
Having an affair with a married woman, fellow officer in the same unit is definately against the UCMJ.
CDR O admitted to it. That's all she wrote for him.
In the Army it's called "zipper problems" as in:
Q - Why did Colonel Smith have to retire all of a sudden, he was a sure bet to make general?
A - Zipper problems
Couldn't keep it in his pants, got caught up in the I'm-a-too-important-special-leader-warrior complex.
The fact is they'll replace you with someone just as good in a heartbeat
I'm sure he was a great guy, but the bottom line is he screwed up bigtime in the personal judgement department. The most important thing that is expected from an officer. None of the services are especially forgiving of this kind of behavior.
The Navy's full of great pilots You'll get along without him just fine
And I take exception to the pressures while deployed arguement. I'm going over 900 days since 2002 in Iraq, Kuwait, Qatar, Pakistan and Afghanistan and in my observation a lot more people don't screw around on their spouses than do.
Too bad we don't follow that line of thinking in Commander in Chief