]> https://gitweb.dealii.org/ - dealii.git/commit
Remove some unnecessary downcasts to int.
authorDavid Wells <drwells@email.unc.edu>
Sun, 30 Dec 2018 15:38:32 +0000 (10:38 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 30 Dec 2018 16:23:26 +0000 (11:23 -0500)
commit3da06af983c8ccb624dacc64a7da8ab45f8d89ae
tree9d4f2653a63b4a08e786cf1e72fe3764eb56999c
parent92e9292d68cf279763af4c303b8198e34cbbf931
Remove some unnecessary downcasts to int.

This value is always used as an array index so we can keep it as std::ptrdiff_t
instead of downcasting to int.

Note that the line

    if (diag_find && std::fabs(...) == 0.0 ...)

checked the wrong thing: diag_find would have, if we did not find the value, be
set to col_indices + num_entries, not NULL.
source/lac/trilinos_sparse_matrix.cc
source/lac/trilinos_sparsity_pattern.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.