Adultery is always serious, but you wonder if something happens during a war, if the guy or gal would be tossed out.
The UCMJ is tailored to, in many ways, allow commanders at all echelons to effect a command climate as they see fit. Some commanders at higher echelons will reserve adjudication of certain offenses to themselves, and during my years I saw adultery treated in very different ways. I actually knew of one commander who imposed an Article 15 with the absolute minimum punishment (suspended at that), remarking that it was an offense and the evidence led him to believe that it had been commited, and as such he was duty bound to impose punishment, but other than that he saw the offense as silly. I knew other commanders who viewed it as an egregious offense....