]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: add an assertion.
authorDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 14:58:16 +0000 (10:58 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 17:26:52 +0000 (13:26 -0400)
source/lac/sparsity_tools.cc

index b62a712c26b7b64882d0479ddc3415db82a4bb79..4d612ab1e4c14a6bcbdbf955b4231df1be950b49 100644 (file)
@@ -388,6 +388,7 @@ namespace SparsityTools
       std::fill(partition_indices.begin(), partition_indices.end(), 0);
 
       // copy from export_to_part to partition_indices, whose part_ids != 0.
+      Assert(export_to_part != nullptr, ExcInternalError());
       for (int i = 0; i < num_export; i++)
         partition_indices[export_local_ids[i]] = export_to_part[i];
 #endif

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.