For failure of the plaintiff to prosecute or to comply with this chapter or any order of court, a defendant may move for dismissal of an action or of any claim against the defendant. After the plaintiff, in an action tried by the court without a jury, has completed the presentation of the plaintiff's evidence, the defendant, without waiving the defendant's right to offer evidence in the event the motion is not granted, may move for a dismissal on the ground that upon the facts and the law the plaintiff has shown no right to relief. The court as trier of the facts may then determine them and render judgment against the plaintiff or may decline to render any judgment until the close of all the evidence. If the court renders judgment on the merits against the plaintiff, the court shall make findings as provided in § 15-6-52(a). Unless the court in its order for dismissal otherwise specifies, a dismissal under this section and any dismissal not provided for in § 15-6-41, other than a dismissal for lack of jurisdiction, or for failure to join a party under § 15-6-19, operates as an adjudication upon the merits.
SDCL 15-6-41(b)