Hi dealii developers, I would like to ask(confirm)whether zero is the initial value of different-type data, e.g. for double, int, Vector and Tensor. For example, if I just define double x;. Does x have an initial value of 0.0?
Moreover, in my task, I set initial values of a variable, e.g. "a", to be one in the whole domain. When I assemble the residual vector, I need to first compute the value of "a" at quadrature points (which turns out not exactly 1.0). Consequently, when I compute, e.g. "3*a^4-2*a^3+a^2", the answer is not zero. Is it avoidable? Best, Chenyi -- 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/CANmBX4TfES8vYsWN4uiEd5BTGJrC8Mkpaw%3DHzTO%3Ddo8-7VJD0g%40mail.gmail.com.