]> https://gitweb.dealii.org/ - dealii.git/commit
Extract index sets from particle handlers 9074/head
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 21 Nov 2019 19:04:36 +0000 (20:04 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Fri, 13 Dec 2019 22:08:09 +0000 (23:08 +0100)
commitccc5b49dfdb0fd3a8ffda52a486d2f0591ca3e4d
treefb10ed431b6584149f7e988809c287f20f678a04
parent7b8a35215a96d52b7d54690f8628e5404d6b567e
Extract index sets from particle handlers

Extract an IndexSet with global dimensions equal to
`n_comps*particles.get_next_free_particle_index()`, containing for each
particle index, a set of `n_comps*` consecutive indices associated to
the particles that are locally owned.

The indices associated to a particle with global index `n` will be the
half open range `[n_comps*n`, n_comps*(n+1))`.

Co-authored-by: Bruno Blais <blais.bruno@gmail.com>
doc/news/changes/minor/20191118LucaHeltaiBrunoBlais [new file with mode: 0644]
include/deal.II/particles/particle_handler.h
source/particles/particle_handler.cc
tests/particles/extract_index_set_01.cc [new file with mode: 0644]
tests/particles/extract_index_set_01.with_p4est=true.mpirun=1.output [new file with mode: 0644]
tests/particles/extract_index_set_01.with_p4est=true.mpirun=2.output [new file with mode: 0644]

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.