std::string output_file_name = "output";
+
template <int dim>
void
-check_this (const DoFHandler<dim> &dof_handler,
- const Vector<double> &v_node,
- const Vector<double> &v_cell)
+check_this (const DoFHandler<dim> &,
+ const Vector<double> &,
+ const Vector<double> &)
{
// 3d would generate 4d data, which
// we don't presently support
//
// output for 2d+time is not
// presently implemented
- if (dim > 1)
- return;
+}
+
+
+void
+check_this (const DoFHandler<1> &dof_handler,
+ const Vector<double> &v_node,
+ const Vector<double> &v_cell)
+{
+ const unsigned int dim = 1;
+
DataOutStack<dim> data_out_stack;
data_out_stack.declare_data_vector ("node_data",
DataOutStack<dim>::dof_vector);
template <int dim>
void
-check_this (const DoFHandler<dim> &dof_handler,
- const Vector<double> &v_node,
- const Vector<double> &v_cell)
+check_this (const DoFHandler<dim> &,
+ const Vector<double> &,
+ const Vector<double> &)
{
// 3d would generate 4d data, which
// we don't presently support
//
// output for 2d+time is not
// presently implemented
- if (dim > 1)
- return;
+}
+
+
+void
+check_this (const DoFHandler<1> &dof_handler,
+ const Vector<double> &v_node,
+ const Vector<double> &v_cell)
+{
+ const unsigned int dim = 1;
+
DataOutStack<dim> data_out_stack;
data_out_stack.declare_data_vector ("node_data",
DataOutStack<dim>::dof_vector);