<h3>Specific improvements</h3>
<ol>
+<li> New: There is now a new function ConditionalOStream::get_stream().
+<br>
+(WB, 2011/03/09)
+</li>
+
<li> Fixed: FESystem::get_unit_face_support_points would refuse to return
anything if one of the base elements did not have support points. This
condition has been relaxed: it now only doesn't return anything if this
#include <numerics/error_estimator.h>
#include <numerics/solution_transfer.h>
-#include <fstream>
-#include <iostream>
-#include <limits>
-
// This is the only include file that is new:
// We use an IndexSet to describe the
// %parallel partitioning of vectors and
#include <distributed/solution_transfer.h>
#include <distributed/grid_refinement.h>
+#include <fstream>
#include <iostream>
#include <sstream>
+#include <limits>
+#include <locale>
#include <string>
n_p = stokes_dofs_per_block[1],
n_T = temperature_dof_handler.n_dofs();
+ // print dof numbers with 1000s
+ // separator since they are frequently
+ // large
+ std::locale s = pcout.get_stream().getloc();
+ pcout.get_stream().imbue(std::locale(""));
pcout << "Number of active cells: "
<< triangulation.n_global_active_cells()
<< " (on "
<< " (" << n_u << '+' << n_p << '+'<< n_T <<')'
<< std::endl
<< std::endl;
+ pcout.get_stream().imbue(s);
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
*/
bool is_active() const;
+ /**
+ * Return a reference to the stream
+ * currently in use.
+ */
+ std::ostream & get_stream () const;
+
/**
* Output a constant something through
* this stream. This function must be @p
}
+inline
+std::ostream &
+ConditionalOStream::get_stream () const
+{
+ return output_stream;
+}
+
+
DEAL_II_NAMESPACE_CLOSE
#endif