]> https://gitweb.dealii.org/ - dealii.git/commit
introduce GridTools::cell_measure for std::vector
authorTimo Heister <timo.heister@gmail.com>
Thu, 18 Jun 2020 14:00:38 +0000 (10:00 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 21 Jun 2020 11:47:43 +0000 (07:47 -0400)
commitef6ef7b25aa554588bb726539a18bb8427703df8
tree57823b7675cad20f4bba0555040ed2d353090d40
parent0f54c8adbe8cb5876128f1a7317b1dee03b8b165
introduce GridTools::cell_measure for std::vector

call cell_measure with a reference to CellData::vertices in ASPECT,
which no longer compiles.
Fix this by introducing an overload of cell_measure accepting an
ArrayView. The means a std::vector works directly.
Also switch the implementation around where the array calls the
ArrayView implementation.
include/deal.II/grid/grid_tools.h
source/grid/grid_tools_nontemplates.cc
tests/grid/cell_measure_01.cc [new file with mode: 0644]
tests/grid/cell_measure_01.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.