Dear Atanu, The RightHandSide <https://www.dealii.org/developer/doxygen/deal.II/step_7.html#Equationdata> class in step-7 derives from the Function <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html> class. This in turn defines the value_list <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html#ab27693540ec0bb72ca53aca9d39f380e> function that, according to the documentation, calls the value <https://www.dealii.org/developer/doxygen/deal.II/classFunction.html#a9b79af0ecae7827b43058ab963ab8366> function. Since this function is marked as virtual, when the base class calls the value() function, the derived class' definition (i.e. what is defined in the RightHandSide class) is invoked.
I hope that this helps to explain what's going on here. Regards, J-P On Thursday, November 3, 2016 at 4:08:24 PM UTC+1, Atanu Banerjee wrote: > > > Hi, > > This may be a trivial issue, but as a beginner in c++, I am unable to to > understand the following. Someone please explain. > In step-7, there is no member function named "value_list" is defined for > the "right_hand_side" object. Then how is it used in the assemble_system. > > Thanks > Atanu > -- 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.