]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Add scratch data field in constraint matrix to avoid frequent re-allocation that...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Dec 2013 13:36:22 +0000 (13:36 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Dec 2013 13:36:22 +0000 (13:36 +0000)
commite4f6b72e22a052b925dc13ed0436ff8422fc0c5e
treecd638db83d2598ccd71c15c788548d7b7d004e68
parent187d3af84bae919c07ca94a30c2531b7fef03f71
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.