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

Function fprint_ivec

doc/docs/Developer_Codes/WriteChunkInfo.cpp:47–54  ·  view source on GitHub ↗

Pretty=true --> {x,y,z} Pretty=false --> x y z

Source from the content-addressed store, hash-verified

45// Pretty=true --> {x,y,z}
46// Pretty=false --> x y z
47void fprint_ivec(FILE *f, ivec v, bool Pretty = false) {
48 const char *s = Pretty ? "{" : " ";
49 LOOP_OVER_DIRECTIONS(v.dim, d) {
50 fprintf(f, "%s%i", s, v.in_direction(d));
51 if (Pretty) s = ",";
52 }
53 fprintf(f, "%s", Pretty ? "} " : " ");
54}
55
56/***************************************************************/
57/***************************************************************/

Callers 1

print_chunk_infoFunction · 0.85

Calls 2

LOOP_OVER_DIRECTIONSFunction · 0.50
in_directionMethod · 0.45

Tested by

no test coverage detected