Hi all,
I have a question about the time loop in step-26. 
We are incrementing timestep_number at the beginning of the loop and it is 
initialized to 0 in the constructor. Should not then the if statement for 
pre_refinement will be only true just once when timestep_number = 1? 
Should not we decrement  timestep_number inside the if part of the loop?
Thank you,
Kaushik 

while (time <= 0.5)
{
time += time_step;
++timestep_number;
...

if ((timestep_number == 1) &&
(pre_refinement_step < n_adaptive_pre_refinement_steps))
{
...
}
else if ((timestep_number > 0) && (timestep_number % 5 == 0))
{
...
}
old_solution = solution;
}

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/4c20d930-602b-44c4-84d8-b99df2e4a4ban%40googlegroups.com.

Reply via email to