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

Function dft_chunks_Ntotal

src/dft.cpp:431–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431size_t dft_chunks_Ntotal(dft_chunk *dft_chunks, size_t *my_start) {
432 // If writing to a single parallel file, we are compute our chunks offset
433 // into the single-parallel-file that has all the data.
434 size_t n = my_dft_chunks_Ntotal(dft_chunks, my_start);
435 *my_start = partial_sum_to_all(n) - n; // sum(n) for processes before this
436 return sum_to_all(n);
437}
438
439size_t dft_chunks_Ntotal(dft_chunk *dft_chunks, size_t *my_start, bool single_parallel_file) {
440 return single_parallel_file ? dft_chunks_Ntotal(dft_chunks, my_start)

Callers 2

save_dft_hdf5Function · 0.85
load_dft_hdf5Function · 0.85

Calls 3

my_dft_chunks_NtotalFunction · 0.85
partial_sum_to_allFunction · 0.85
sum_to_allFunction · 0.85

Tested by

no test coverage detected