]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust to recent changes in SolutionTransfer.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2008 20:33:56 +0000 (20:33 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Sep 2008 20:33:56 +0000 (20:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@17065 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/solution_transfer.cc

index ea21888b166b557225072d6f8945a0e35e51f4ff..50ffe1b104a4df2362f94290d29fbf56f43836cd 100644 (file)
@@ -111,9 +111,17 @@ void transfer(std::ostream &out)
   tria.execute_coarsening_and_refinement();
   q_dof_handler.distribute_dofs (fe_q);
   dgq_dof_handler.distribute_dofs (fe_dgq);
+
+  Vector<double> tmp_q (q_dof_handler.n_dofs());
+  q_soltrans.refine_interpolate(q_solution, tmp_q);
+  q_solution.reinit (q_dof_handler.n_dofs());
+  q_solution = tmp_q;
   
-  q_soltrans.refine_interpolate(q_solution);
-  dgq_soltrans.refine_interpolate(dgq_solution);
+  Vector<double> tmp_dgq (dgq_dof_handler.n_dofs());
+  dgq_soltrans.refine_interpolate(dgq_solution, tmp_dgq);
+  dgq_solution.reinit (dgq_dof_handler.n_dofs());
+  dgq_solution = tmp_dgq;
+
 
   q_data_out.clear_data_vectors();
   q_data_out.add_data_vector (q_solution, "solution");

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.