From: wolf Date: Tue, 30 May 2000 16:24:48 +0000 (+0000) Subject: Fix bug in print_gnuplot. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5da1f27719410c005e19aef63f7bef82da58345;p=dealii-svn.git Fix bug in print_gnuplot. git-svn-id: https://svn.dealii.org/trunk@2975 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparsity_pattern.cc b/deal.II/lac/source/sparsity_pattern.cc index cd46bdf6f6..03edb435b6 100644 --- a/deal.II/lac/source/sparsity_pattern.cc +++ b/deal.II/lac/source/sparsity_pattern.cc @@ -556,7 +556,14 @@ SparsityPattern::print_gnuplot (ostream &out) const for (unsigned int i=0; i(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(colnums[j]) << " " << -i << endl; AssertThrow (out, ExcIO()); }