MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / bcToString

Function bcToString

src/Geometry/PUMLReader.cpp:97–123  ·  view source on GitHub ↗

* Decodes the boundary condition tag into a string representation. */

Source from the content-addressed store, hash-verified

95 * Decodes the boundary condition tag into a string representation.
96 */
97inline 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:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected