// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* boundary face.
*/
unsigned int n_boundary_face_points;
+
+ /**
+ * Flag. If true also inner
+ * cells are plotted with
+ * curved boundaries. This is
+ * useful when for e.g.
+ * MappingQEulerian with
+ * <code>n_boundary_face_points>0</code>.
+ */
+ bool curved_inner_cells;
/**
* Constructor.
*/
Gnuplot (const bool write_cell_number = false,
- const unsigned int n_boundary_face_points = 2);
+ const unsigned int n_boundary_face_points = 2,
+ const bool curved_inner_cells = false);
/**
* Declare parameters in
* ParameterHandler.
// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2008 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
Gnuplot::Gnuplot (const bool write_cell_numbers,
- const unsigned int n_boundary_face_points) :
+ const unsigned int n_boundary_face_points,
+ const bool curved_inner_cells) :
write_cell_numbers (write_cell_numbers),
- n_boundary_face_points(n_boundary_face_points)
+ n_boundary_face_points(n_boundary_face_points),
+ curved_inner_cells(curved_inner_cells)
{}
// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
if (gnuplot_flags.write_cell_numbers)
out << "# cell " << cell << '\n';
- if (mapping==0 || !cell->at_boundary())
+ if (mapping==0 ||
+ (!cell->at_boundary() && !gnuplot_flags.curved_inner_cells))
{
// write out the four sides
// of this cell by putting
{
const typename Triangulation<dim>::face_iterator
face = cell->face(face_no);
- if (face->at_boundary())
+ if (face->at_boundary() || gnuplot_flags.curved_inner_cells)
{
// compute offset
// of quadrature
if (gnuplot_flags.write_cell_numbers)
out << "# cell " << cell << '\n';
- if (mapping==0 || n_points==2 || !cell->has_boundary_lines())
+ if (mapping==0 || n_points==2 ||
+ (!cell->has_boundary_lines() && !gnuplot_flags.curved_inner_cells))
{
// front face
out << cell->vertex(0)
const Point<dim> &v0=line->vertex(0),
&v1=line->vertex(1);
- if (line->at_boundary())
+ if (line->at_boundary() || gnuplot_flags.curved_inner_cells)
{
// transform_real_to_unit_cell
// could be