Hello, you provided the `initial_values` and `initial_velocity` functions as lambda functions in your `Coefficients` class. You create an object of this class in the main function and then store a `SmartPointer` to it in an `OfflineData` object, which in turn is stored as a `SmartPointer` in a `TimeStep` object. You convert these lambda functions to the `dealii::Function` class with a helper function in "helper.h" (I assume). And for convenience you create references to these lambda functions over this chain of pointers. There seem to be plenty of possible sources for errors considering in all these interconnections.
Can you verify that your references in lines 1029-1030 are actually valid? Best, Marc On Monday, May 17, 2021 at 12:31:20 PM UTC-6 nhol...@math.arizona.edu wrote: > Hello all, > > This code just solves the wave equation. Despite the fact that I have > provided an initial velocity in line 106, it does not appear to be reading > it in lines 1024-1062. My solution looks like the wave equation with 0 > initial velocity, i.e. one hump turns into two moving away from each other. > How can I ensure it is properly reading in the initial velocity I have > provided? > > Thank you > -- 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/d2574309-e65c-4d16-9f8a-6d36f0bcf4dcn%40googlegroups.com.