]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Split a function in hopes to alleviate linker errors with ICC.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 Nov 2013 15:23:01 +0000 (15:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 Nov 2013 15:23:01 +0000 (15:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@31671 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/data_out_stack_01.cc
tests/bits/data_out_stack_02.cc

index e9c719177701d8db2c969d44dadd9844a948ed6c..c1fb91109af67e65b02863b99585960caedfcf05 100644 (file)
 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);
index 371cdbfb3b7e3e8afb11ec3324d6e37375a4c418..c6e59930518f880a55c015ea08ea60c18940dd56 100644 (file)
@@ -30,18 +30,26 @@ 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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.