for debugging, display the chunk layout
| 981 | |
| 982 | // for debugging, display the chunk layout |
| 983 | void 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 | |
| 999 | std::vector<grid_volume> structure::get_chunk_volumes() const { |
| 1000 | std::vector<grid_volume> result; |
nothing calls this directly
no test coverage detected