From: Wolfgang Bangerth Date: Wed, 11 Mar 1998 11:17:57 +0000 (+0000) Subject: Add print function to dvector. X-Git-Tag: v8.0.0~23198 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cad5c8b914879db289d80e29bc32a468e67d180a;p=dealii.git Add print function to dvector. git-svn-id: https://svn.dealii.org/trunk@53 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/dvector.h b/deal.II/lac/include/lac/dvector.h index 91456b8b09..7dd9252740 100644 --- a/deal.II/lac/include/lac/dvector.h +++ b/deal.II/lac/include/lac/dvector.h @@ -253,6 +253,11 @@ class dVector : public VectorBase * Output of vector in user-defined format. */ void print(const char* format = 0) const; + + /** + * Print to given stream, one element per line. + */ + void print (ostream &) const; //@} /** diff --git a/deal.II/lac/source/dvector.cc b/deal.II/lac/source/dvector.cc index 5a0d1986b3..2ab715f777 100644 --- a/deal.II/lac/source/dvector.cc +++ b/deal.II/lac/source/dvector.cc @@ -261,3 +261,10 @@ void dVector::print(const char* format) const for (int j=0;j