Re: [deal.II] Why does putting the "TimerOuput" before the "ConditionalOStream" leads to a seg fault?

28 views
Skip to first unread message
Message has been deleted

Wolfgang Bangerth

unread,
Apr 19, 2023, 10:50:03 AM4/19/23
to dea...@googlegroups.com
On 4/19/23 08:33, Abbas B. wrote:
> **
>
> I attached a simple .cc file that illustrates the tittle.
> Switching lines 18 and 19 leads to a segmentation fault and I would like to
> know why out of curiosity.

Abbas:
This is a C++ question. Member variables are initialized in the order in which
they are declared. If the initialization of one variable depends on another,
you need to make sure that they are initialized in the correct order, by
declaring them in the correct order.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Abbas

unread,
Apr 19, 2023, 11:04:11 AM4/19/23
to deal.II User Group
Goes without saying thanks Prof 
Reply all
Reply to author
Forward
0 new messages