Dear Jean-Paul, Thank you for your reply.
I, in fact, have done that way only. I have defined the initial time step through .prm file. Now my question is that after I update my time step in the run() function how can I pass this new time step, say 'delta_t' to the class 'Time' to obtain other parameters like current_time etc. Thanks and regards, Anup. On Wed, Aug 31, 2016 at 12:27 AM, Jean-Paul Pelteret <[email protected]> wrote: > Dear Anup, > > Why don't you reinterpret the parameter passed as "delta_t" to be the > initial timestep size "delta_t_0" and then adjust the current timestep size > "delta_t" however you want? How you do this adjustment algorithm-wise is, > of course, entirely up to you. > > Regards, > J-P > > > On Tuesday, August 30, 2016 at 7:02:41 PM UTC+2, Anup Basak wrote: >> >> Hello all, >> >> I was trying to implement an adaptive time step in step44. In the given >> example 'delta_t' has been considered to be >> fixed and its value is taken from the .prm file. Now let us say one >> changes the value of 'delta_t' in the function 'run()'. >> What will be the convenient way to replace old value of 'delta_t' by the >> new one and use it to obtain current time etc >> using the class 'Time'. >> >> I shall be thankful if someone can help me in this regard. >> >> Thank you, >> >> Regards, >> Anup. >> > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
