| 216 | } |
| 217 | |
| 218 | std::unordered_map<time_sink, std::vector<double>, std::hash<int> > |
| 219 | fields::get_timing_data() const { |
| 220 | std::vector<double> all_times = timing_data_vector_from_all(times_spent); |
| 221 | const int n_procs = count_processors(); |
| 222 | |
| 223 | std::unordered_map<time_sink, std::vector<double>, std::hash<int> > times_by_sink; |
| 224 | auto it = all_times.begin(); |
| 225 | for (const auto &desc_ts : DescriptionByTimeSink) { |
| 226 | times_by_sink.emplace(std::make_pair(desc_ts.first, std::vector<double>(it, it + n_procs))); |
| 227 | it += n_procs; |
| 228 | } |
| 229 | return times_by_sink; |
| 230 | } |
| 231 | |
| 232 | } // namespace meep |
nothing calls this directly
no test coverage detected