]> https://gitweb.dealii.org/ - dealii.git/commit
Parallelize the operation of compute_number_cache().
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 Sep 2016 21:49:55 +0000 (16:49 -0500)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Sep 2016 04:32:03 +0000 (23:32 -0500)
commit3148198b0cf803f555793cabaac50c9a69c64bbc
tree9df54499dd5cac72a8cfa24d55e712de10ad6f39
parent9df86e6b6f4c15ad4a9878ccc28239a3804aea9a
Parallelize the operation of compute_number_cache().

For these functions, the 3d version calls the 2d version which itself calls the
1d version. These operations can all run concurrently. All three include two
loops each over all cells/quads/lines, so there should be plenty to do to
amortize parallel execution.

The only tricky part is that the quad and hex functions accessed a variable
that was first set by the 1d function (number_cache.n_lines). This may now
no longer be available in time for the 2d/3d functions, and so they
need to compute this information themselves. This is cheap, fortunately.
source/grid/tria.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.