From 623755bf00cb256e47ca1ab298190785e804f48a Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 17 Aug 1998 09:20:10 +0000 Subject: [PATCH] print in dFMatrix fuer streams git-svn-id: https://svn.dealii.org/trunk@498 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/dfmatrix.h | 2 +- deal.II/lac/source/dfmatrix.cc | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deal.II/lac/include/lac/dfmatrix.h b/deal.II/lac/include/lac/dfmatrix.h index 104513ee17..b0268a65e1 100644 --- a/deal.II/lac/include/lac/dfmatrix.h +++ b/deal.II/lac/include/lac/dfmatrix.h @@ -400,7 +400,7 @@ class dFMatrix /** * Output of the matrix in user-defined format. */ - void print (FILE* fp, const char* format = 0) const; + void print (ostream& s, int width=5, int precision=2) const; /** * Print the matrix in the usual format, diff --git a/deal.II/lac/source/dfmatrix.cc b/deal.II/lac/source/dfmatrix.cc index 34b785541a..f90ee9eec4 100644 --- a/deal.II/lac/source/dfmatrix.cc +++ b/deal.II/lac/source/dfmatrix.cc @@ -624,14 +624,13 @@ double dFMatrix::matrix_scalar_product (const dVector &u, const dVector &v) cons -void dFMatrix::print (FILE* f, const char* format) const +void dFMatrix::print (ostream& s, int w, int p) const { - if (!format) format = " %5.2f"; unsigned int i,j; for (i=0;i