* Decodes the boundary condition tag into a string representation. */
| 95 | * Decodes the boundary condition tag into a string representation. |
| 96 | */ |
| 97 | inline std::string bcToString(int id) { |
| 98 | if (id == 0) { |
| 99 | return std::string("regular"); |
| 100 | } else if (id == 1) { |
| 101 | return std::string("free surface"); |
| 102 | } else if (id == 2) { |
| 103 | return std::string("free surface with gravity"); |
| 104 | } else if (id == 3) { |
| 105 | return std::string("dynamic rupture"); |
| 106 | } else if (id == 4) { |
| 107 | return std::string("dirichlet"); |
| 108 | } else if (id == 5) { |
| 109 | return std::string("absorbing"); |
| 110 | } else if (id == 6) { |
| 111 | return std::string("periodic"); |
| 112 | } else if (id == 7) { |
| 113 | return std::string("analytic"); |
| 114 | } else if (id > 64) { |
| 115 | std::stringstream s; |
| 116 | s << "fault-tagging (" << id << ")"; |
| 117 | return s.str(); |
| 118 | } else { |
| 119 | std::stringstream s; |
| 120 | s << "unknown (" << id << ")"; |
| 121 | return s.str(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Check if the mesh is locally correct: |
no outgoing calls
no test coverage detected