]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust to removed function in SolutionTransfer.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Sep 2008 15:29:43 +0000 (15:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Sep 2008 15:29:43 +0000 (15:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@16766 0785d39b-7218-0410-832d-ea1e28bc413d

tests/aniso/solution_transfer.cc

index 659fa63e09849c8ac503b9a4c64372f470659718..a39718976ba2f1195fd187363a60da6c334a4c05 100644 (file)
@@ -83,8 +83,11 @@ void transfer(std::ostream &out)
   soltrans.prepare_for_pure_refinement();
   tria.execute_coarsening_and_refinement();
   dof_handler.distribute_dofs (fe);
-  
-  soltrans.refine_interpolate(solution);
+
+  Vector<double> new_solution (dof_handler.n_dofs());
+  soltrans.refine_interpolate(solution, new_solution);
+  solution.reinit (dof_handler.n_dofs());
+  solution = new_solution;
 
   data_out.clear_data_vectors();
   data_out.add_data_vector (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.