| 216 | } // registerMobilityMat |
| 217 | |
| 218 | void |
| 219 | DirectMobilitySolver::registerStructIDsWithMobilityMat(const std::string& mat_name, |
| 220 | const std::vector<std::vector<unsigned>>& struct_ids) |
| 221 | { |
| 222 | #if !defined(NDEBUG) |
| 223 | TBOX_ASSERT(d_mat_map.find(mat_name) != d_mat_map.end()); |
| 224 | for (const auto& struct_id : struct_ids) |
| 225 | { |
| 226 | TBOX_ASSERT(struct_id.size() == d_mat_prototype_id_map[mat_name].size()); |
| 227 | unsigned num_nodes = 0; |
| 228 | for (const auto& id : struct_id) |
| 229 | { |
| 230 | TBOX_ASSERT(id < d_cib_strategy->getNumberOfRigidStructures()); |
| 231 | |
| 232 | num_nodes += d_cib_strategy->getNumberOfNodes(id); |
| 233 | } |
| 234 | TBOX_ASSERT(num_nodes == d_mat_nodes_map[mat_name]); |
| 235 | } |
| 236 | #endif |
| 237 | |
| 238 | d_mat_actual_id_map[mat_name] = struct_ids; |
| 239 | |
| 240 | return; |
| 241 | } // registerStructIDsWithMobilityMat |
| 242 | |
| 243 | void |
| 244 | DirectMobilitySolver::setStokesSpecifications(const StokesSpecifications& stokes_spec) |
no test coverage detected