From: Uwe Köcher Date: Tue, 27 Jan 2015 14:47:09 +0000 (+0100) Subject: step-34: fixes a runtime error in step-34 X-Git-Tag: v8.3.0-rc1~500^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F476%2Fhead;p=dealii.git 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 --- 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);