]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Small fix.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Apr 2001 14:14:12 +0000 (14:14 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Apr 2001 14:14:12 +0000 (14:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@4422 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 1d41dfa12f8fc29a303cb85e12300fd32fe983f1..dac608db76b6deb020c86e63e23473ee0e33fc19 100644 (file)
@@ -381,8 +381,8 @@ SparsityPattern::compress ()
                                       // this case only sort the
                                       // remaining entries, otherwise
                                       // sort all
-      std::sort ((rows==cols) ? &tmp_entries[1] : &tmp_entries[0],
-                &tmp_entries[row_length]);
+      std::sort ((rows==cols) ? tmp_entries.begin()+1 : tmp_entries.begin(),
+                tmp_entries.begin()+row_length);
 
                                       // insert column numbers
                                       // into the new field

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.