]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Apply patch from 1.13->1.14
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 May 2000 16:27:32 +0000 (16:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 May 2000 16:27:32 +0000 (16:27 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-0@2977 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index e010645ef536c15f551ea7432eb3b8c8f4424ad3..024561dd679b0086685d77fac55755048e6b82ad 100644 (file)
@@ -524,7 +524,14 @@ SparsityPattern::print_gnuplot (ostream &out) const
   for (unsigned int i=0; i<rows; ++i)
     for (unsigned int j=rowstart[i]; j<rowstart[i+1]; ++j)
       if (colnums[j] != invalid_entry)
-       out << i << " " << -static_cast<signed int>(colnums[j]) << endl;
+                                        // while matrix entries are
+                                        // usually written (i,j),
+                                        // with i vertical and j
+                                        // horizontal, gnuplot output
+                                        // is x-y, that is we have to
+                                        // exchange the order of
+                                        // output
+       out << static_cast<signed int>(colnums[j]) << " " << -i << endl;
 
   AssertThrow (out, ExcIO());
 }

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.