In the case of a person determined under this code to be presently suffering from a mental disease or defect rendering the person mentally incompetent to the extent that the person is unable to understand the nature of the proceedings against that person or to conduct or cooperate intelligently in the defense of the case, the general court-martial convening authority for that person shall commit the person to the custody of the state attorney general.
SDCL 33-10-227