]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reset time and timestep_number during pre refinement steps 11460/head
authorPraveen C <cpraveen@gmail.com>
Mon, 4 Jan 2021 04:17:50 +0000 (09:47 +0530)
committerPraveen C <cpraveen@gmail.com>
Tue, 5 Jan 2021 03:19:11 +0000 (08:49 +0530)
Otherwise, the pre-refinement is performed only once. See https://github.com/dealii/dealii/issues/10715

doc/news/changes/minor/20210105CPraveen [new file with mode: 0644]
examples/step-26/step-26.cc

diff --git a/doc/news/changes/minor/20210105CPraveen b/doc/news/changes/minor/20210105CPraveen
new file mode 100644 (file)
index 0000000..dd9725f
--- /dev/null
@@ -0,0 +1,3 @@
+Fixed: Reset time and timestep_number during pre refinement steps in step-26.
+<br>
+(Praveen Chandrashekar, 2021/01/05)
index 2f9e2ed363e4fea95d59e5a2bedfe3afbff4bd1f..724462efb08a7fa1da3e9b368c7b3f751a5a530e 100644 (file)
@@ -205,9 +205,7 @@ namespace Step26
   HeatEquation<dim>::HeatEquation()
     : fe(1)
     , dof_handler(triangulation)
-    , time(0.0)
     , time_step(1. / 500)
-    , timestep_number(0)
     , theta(0.5)
   {}
 
@@ -457,6 +455,9 @@ namespace Step26
 
   start_time_iteration:
 
+    time            = 0.0;
+    timestep_number = 0;
+
     tmp.reinit(solution.size());
     forcing_terms.reinit(solution.size());
 

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.