From cad5c8b914879db289d80e29bc32a468e67d180a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Mar 1998 11:17:57 +0000 Subject: [PATCH] Add print function to dvector. git-svn-id: https://svn.dealii.org/trunk@53 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/dvector.h | 5 +++++ deal.II/lac/source/dvector.cc | 7 +++++++ 2 files changed, 12 insertions(+) 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