updating the friction routines to save some of the states
Adding a tag to the glues with the sub_ids they connect
splitting subdomains based on treeid and making friction parallel