From f02121551aef1ee0ce373f9a4b8f0fa67deed984 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Tue, 27 Jan 2015 15:47:09 +0100 Subject: [PATCH] step-34: fixes a runtime error in step-34 In the function output_results, around line 1017, two vectors (phi and alpha) are added to a DataOut object. A runtime error occured, because the type of the vector could not determined automatically. On branch dataout-issue-step-34 Changes to be committed: modified: examples/step-34/step-34.cc --- examples/step-34/step-34.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/step-34/step-34.cc b/examples/step-34/step-34.cc index fb5d3a517b..ac98200604 100644 --- a/examples/step-34/step-34.cc +++ b/examples/step-34/step-34.cc @@ -1010,8 +1010,10 @@ namespace Step34 DataOut > dataout; dataout.attach_dof_handler(dh); - dataout.add_data_vector(phi, "phi"); - dataout.add_data_vector(alpha, "alpha"); + dataout.add_data_vector(phi, "phi", + DataOut >::type_dof_data); + dataout.add_data_vector(alpha, "alpha", + DataOut >::type_dof_data); dataout.build_patches(mapping, mapping.get_degree(), DataOut >::curved_inner_cells); -- 2.39.5