(a) The court shall permit the shares of any two or more co-tenants to remain undivided between them if they so elect by writing filed within such time as the court or master shall direct.(b) The court may permit the shares of any two or more co-tenants who do not appear in the action to remain undivided between them.