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

Function dim2str

preprocessing/meshing/cube_c/src/main.cpp:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static const char* dim2str(unsigned int dim)
147{
148 switch (dim) {
149 case 0:
150 return "x";
151 case 1:
152 return "y";
153 case 2:
154 return "z";
155 default:
156 ;
157 }
158
159 logError() << "Invalid dimension";
160 return "invalid"; // Never reached
161}
162
163template<typename A, typename B>
164std::pair<B,A> flip_pair(const std::pair<A,B> &p)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected