<h3>Specific improvements</h3>
<ol>
+<li> New: The PETScWrappers::VectorBase class now has a function
+PETScWrappers::VectorBase::write_ascii() that allows writing the
+vector's data to the default output stream.
+<br>
+(Fahad Alrashed, 2013/1/2)
+
<li> Fixed: PETScWrappers::SparseDirectMUMPS forgot to release
its memory upon destruction. This is now fixed.
<br>
//---------------------------------------------------------------------------
// $Id$
//
-// Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
*/
void update_ghost_values() const;
+
+ /**
+ * Prints the PETSc vector object values
+ * using PETSc internal vector viewer function
+ * <tt>VecView</tt>. The default format prints
+ * the vector's contents, including indices of
+ * vector elements. For other valid view formats,
+ * consult
+ * http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecView.html
+ */
+ void write_ascii (const PetscViewerFormat format = PETSC_VIEWER_DEFAULT) ;
+
/**
* Print to a
* stream. @p precision denotes
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
+ void
+ VectorBase::write_ascii (const PetscViewerFormat format)
+ {
+ // First flush PETSc caches
+ compress();
+
+ // Set options
+ PetscViewerSetFormat (PETSC_VIEWER_STDOUT_WORLD,
+ format);
+
+ // Write to screen
+ VecView (vector, PETSC_VIEWER_STDOUT_WORLD);
+ }
+
+
+
void
VectorBase::print (std::ostream &out,
const unsigned int precision,