]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-12: use add_data_vector with DoFHandler 9414/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 22 Jan 2020 01:50:45 +0000 (20:50 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 24 Jan 2020 17:11:06 +0000 (12:11 -0500)
Otherwise data output breaks if you switch to DG(0) (cell vs dof
dataout).

examples/step-12/step-12.cc

index 1a4ff62df84c9a11d1d1f5f69e2d04e0fbe94907..635729254a54bc2df5167e8d975e7a5bcadb352a 100644 (file)
@@ -549,7 +549,7 @@ namespace Step12
 
     DataOut<dim> data_out;
     data_out.attach_dof_handler(dof_handler);
-    data_out.add_data_vector(solution, "u");
+    data_out.add_data_vector(solution, "u", DataOut<dim>::type_dof_data);
 
     data_out.build_patches();
 

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.