Kyle,

Function is derived from FunctionTime which implements
get_time()/set_time(). In particular, step-26 uses get_time() to access a
previously stored time via set_time().

Best,
Daniel

Am Fr., 1. Okt. 2021 um 16:09 Uhr schrieb Kyle Schwiebert <kjsch...@mtu.edu
>:

> I am having trouble understanding the class FunctionTime, under what
> circumstances it is need, and how it is implemented.
>
> Consider Step-26 in the tutorial. There is no variable anywhere defined
> with class FunctionTime. However, the function get_time() is still used,
> seemingly to get the current value of the time variable. However, when I do
> similarly, it seems the the variable created in my BoundaryValues function
> is always zero. I am using the line:
>
> const double time = this->get_time();
>
> This is not surprising to me: If we don't have a class FunctionTime time
> variable, I would expect get_time to either error or output zero. However,
> while in my function, get_time() always returns zero, in apparently does
> not do so in step-26. Can someone help me understand this?
>
> Thank you,
> Kyle
>
> --
> 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 dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/89092349-4116-4d90-93b5-3d40ac10145bn%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/89092349-4116-4d90-93b5-3d40ac10145bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2B0ZOt6g1Fopf-nUPtHedvSDH%2B05BMy8ddG3Svw641XKg%40mail.gmail.com.

Reply via email to