]> https://gitweb.dealii.org/ - dealii.git/commit
Add scratch data field in constraint matrix to avoid frequent re-allocation that...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 3 Dec 2013 13:36:22 +0000 (13:36 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 3 Dec 2013 13:36:22 +0000 (13:36 +0000)
commit109d83dc2b4914b8c7b8de72211e19ca67adc290
treecb19acc037f553a8a2de340a526713044f5c453a
parent7983721e41c9d2245c191260684d901dcc5057fa
Add scratch data field in constraint matrix to avoid frequent re-allocation that can affect parallel performance (memory allocation is not scalable). It is made thread-local and we need to make sure that no function used inside distribute_local_to_global spawns tasks by itself. There is a bool state variable to provide some security against race conditions, even though it is subject to race conditions, too.

git-svn-id: https://svn.dealii.org/trunk@31851 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/include/deal.II/lac/constraint_matrix.h
deal.II/include/deal.II/lac/constraint_matrix.templates.h
deal.II/include/deal.II/numerics/vector_tools.templates.h
tests/deal.II/assemble_block_matrix_parallel.cc [new file with mode: 0644]
tests/deal.II/assemble_block_matrix_parallel.output [new file with mode: 0644]
tests/deal.II/assemble_matrix_parallel.cc [new file with mode: 0644]
tests/deal.II/assemble_matrix_parallel.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.