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

Method print_layout

src/structure.cpp:983–997  ·  view source on GitHub ↗

for debugging, display the chunk layout

Source from the content-addressed store, hash-verified

981
982// for debugging, display the chunk layout
983void structure::print_layout(void) const {
984 direction d0 = gv.yucky_direction(0);
985 direction d1 = gv.yucky_direction(1);
986 direction d2 = gv.yucky_direction(2);
987 for (int i = 0; i < num_chunks; ++i) {
988 master_printf("chunk[%d] on process %d, resolution %g (%s,%s,%s):"
989 " (%d,%d,%d) - (%d,%d,%d)\n",
990 i, chunks[i]->n_proc(), chunks[i]->a, direction_name(d0), direction_name(d1),
991 direction_name(d2), chunks[i]->gv.little_corner().yucky_val(0),
992 chunks[i]->gv.little_corner().yucky_val(1),
993 chunks[i]->gv.little_corner().yucky_val(2),
994 chunks[i]->gv.big_corner().yucky_val(0), chunks[i]->gv.big_corner().yucky_val(1),
995 chunks[i]->gv.big_corner().yucky_val(2));
996 }
997}
998
999std::vector<grid_volume> structure::get_chunk_volumes() const {
1000 std::vector<grid_volume> result;

Callers

nothing calls this directly

Calls 7

master_printfFunction · 0.85
direction_nameFunction · 0.85
yucky_directionMethod · 0.80
yucky_valMethod · 0.80
little_cornerMethod · 0.80
big_cornerMethod · 0.80
n_procMethod · 0.45

Tested by

no test coverage detected