> This calculation does not happen anyway, because of the early return in 
line 2466. 

Just a minor correction for the previous sentence: The guard on line 2466 
will be true only on the second iterations. The else paths will still be 
taken at least once.

On Monday, 28 August 2017 16:02:01 UTC+2, Lucas Campos wrote:
>
> Dear all,
>
> First of all, thanks for the great library! I spent the last few days 
> reading your (very!) extensive 
> documentation and I think it will be really useful for me in the near 
> future. 
>
> Right now I am struggling a bit on understanding some things on step-44. 
> Most pressing right 
> now is that, in Section Solid::make_constraints of the tutorials, we have 
>
> > However, since we are dealing with an iterative Newton method, it 
> should be noted 
> > that any displacement constraints should only be specified at the zeroth 
> iteration 
> > and subsequently no additional contributions are to be made since the 
> constraints 
> > are already exactly satisfied.
>
> However, reading the code underneath, the code under the if-else blocks 
> are the same (around 
> line 2490 of step-44.cc). That is to say, we would run the same 
> computation whether the condition 
> is true or false. This calculation does not happen anyway, because of the 
> early return in line 2466. 
> If we disregard this early return, would this code be wrong, or is there 
> something I am not seeing?
>
> Bests,
> Lucas 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to