At any time after the separation of the parties, either may file an action for ED, either as a separate action, or together with another action brought pursuant to Chapter 50, or as a motion in the cause.
A final ED judgment may be rendered either before or after the parties are divorced, at the discretion of a judge. If the judgment is being entered by consent, the parties themselves can stipulate to do so prior to the divorce.