From fbdafd329426e9abbe232aaab47b4b31a377f6f2 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 15 Nov 2013 15:23:01 +0000 Subject: [PATCH] Split a function in hopes to alleviate linker errors with ICC. git-svn-id: https://svn.dealii.org/trunk@31671 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/data_out_stack_01.cc | 19 ++++++++++++++----- tests/bits/data_out_stack_02.cc | 18 +++++++++++++----- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/tests/bits/data_out_stack_01.cc b/tests/bits/data_out_stack_01.cc index e9c7191777..c1fb91109a 100644 --- a/tests/bits/data_out_stack_01.cc +++ b/tests/bits/data_out_stack_01.cc @@ -24,20 +24,29 @@ std::string output_file_name = "output"; + template void -check_this (const DoFHandler &dof_handler, - const Vector &v_node, - const Vector &v_cell) +check_this (const DoFHandler &, + const Vector &, + const Vector &) { // 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 &v_node, + const Vector &v_cell) +{ + const unsigned int dim = 1; + DataOutStack data_out_stack; data_out_stack.declare_data_vector ("node_data", DataOutStack::dof_vector); diff --git a/tests/bits/data_out_stack_02.cc b/tests/bits/data_out_stack_02.cc index 371cdbfb3b..c6e5993051 100644 --- a/tests/bits/data_out_stack_02.cc +++ b/tests/bits/data_out_stack_02.cc @@ -30,18 +30,26 @@ std::string output_file_name = "output"; template void -check_this (const DoFHandler &dof_handler, - const Vector &v_node, - const Vector &v_cell) +check_this (const DoFHandler &, + const Vector &, + const Vector &) { // 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 &v_node, + const Vector &v_cell) +{ + const unsigned int dim = 1; + DataOutStack data_out_stack; data_out_stack.declare_data_vector ("node_data", DataOutStack::dof_vector); -- 2.39.5