> I am doing an adjoint based optimization for which I solve a forward problem > and an adjoint. I need to save the forward solution at different time > instants and read it back to compute a gradient. What methods are available > to do this in deal.II ?
The various vector classes have functions that can just dump the state of the vector into a file (the 'block_write/read()' functions), or you can serialize the whole vector via the serialization framework. (There is no tutorial program for serialization, but you can find examples of how this works in the tests/serialization/ directory). Alternatively, there is also the SwappableVector class that could help in your case. Best W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] www: http://www.math.colostate.edu/~bangerth/ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/f336797d-4973-e46f-f67b-10f2cbeea02a%40colostate.edu. For more options, visit https://groups.google.com/d/optout.
