MCPcopy Create free account
hub / github.com/NanoComp/meep / direction_name

Function direction_name

src/vec.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60const char *direction_name(direction d) {
61 switch (d) {
62 case X: return "x";
63 case Y: return "y";
64 case Z: return "z";
65 case R: return "r";
66 case P: return "phi";
67 case NO_DIRECTION: return "no_direction";
68 }
69 return "Error in direction_name";
70}
71
72const char *component_name(component c) {
73 if (is_derived(int(c))) return component_name(derived_component(c));

Callers 5

choose_chunkdivisionFunction · 0.85
print_layoutMethod · 0.85
LOOP_OVER_DIRECTIONSFunction · 0.85
add_volume_sourceMethod · 0.85
compare_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected