]> https://gitweb.dealii.org/ - dealii.git/commit
Exit early if there are no matrix entries to add.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 24 Apr 2016 22:47:28 +0000 (18:47 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 25 Apr 2016 22:18:56 +0000 (18:18 -0400)
commitba14c79afa0582f0fe6f6d2f99536d8b6f66fdb7
tree7c43474b559acf30fcc94ca901587922c922041a
parent5c5ffad9a14528f73e590537e414db64e4671163
Exit early if there are no matrix entries to add.

This gets around an issue where, if one is using a sparsity pattern
created by make_flux_sparsity_pattern and the 'nonzero' coupling option,
one may end up trying to add zeros to entries that do not exist in the
sparsity pattern on the current processor. This problem shows up when
adding fluxes between locally owned and ghost cells.

This commit sidesteps the issue by exiting early if there is
nothing (i.e., the only thing to do is add zero) to do.
doc/news/changes.h
source/lac/trilinos_sparse_matrix.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.