]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid unnecessary reinitialization. 15569/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 21:11:52 +0000 (15:11 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 21:11:52 +0000 (15:11 -0600)
examples/step-26/step-26.cc

index 6a672fc0e3c0b5e8b43c950d766b7a33b843b907..6d2d9afddb6a2c709bbbfddb98e506a6fbd5a2d4 100644 (file)
@@ -567,9 +567,6 @@ namespace Step26
                           n_adaptive_pre_refinement_steps);
             ++pre_refinement_step;
 
-            tmp.reinit(solution.size());
-            forcing_terms.reinit(solution.size());
-
             std::cout << std::endl;
 
             goto start_time_iteration;

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.