LLNL / Tribol

Modular interface physics library featuring state-of-the-art contact physics methods.
MIT License
25 stars 2 forks source link

Unified singleton data manager class #77

Closed ebchin closed 3 months ago

ebchin commented 5 months ago

This PR combines the CouplingSchemeManager and MeshManager into a templated DataManager class. The underlying mesh and coupling scheme data are stored in a std::unordered_map<IndexT, T>, where T = CouplingScheme or MeshData. Changes are made in source to ensure the keys sent to the unordered_map are of type IndexT, and consistency in naming the key in the source is introduced. mesh_id or mesh_id# are used for MeshManager keys and cs_id is used for CouplingSchemeManager keys.

ebchin commented 3 months ago

Rolled into #86