[petsc-dev] TSSolve web page JED and EMIL READ THIS!

Emil Constantinescu emconsta at mcs.anl.gov
Sun Feb 8 12:12:18 CST 2015


On 2/6/15 9:35 PM, Jed Brown wrote:
> Barry Smith <bsmith at mcs.anl.gov> writes:
>>     I am not proposing removing the solution from TSSolve() argument
>>     list, far from it. I am proposing removing the TSSetSolution(),
>>     keeping the solution in TSSolve() as the standard approach, but
>>     also allowing a callback for when the user wants the DM passed to
>>     TS to be in charge of creating all the vectors.
>
> Oh, that's fine if/when you have a use case for it.

To me TSSetSolution is semantically opposite to TSGetSolution and it's 
also useful for when the users want to just use TSStep instead of 
TSSolve. There is some redundancy in the case of TSSolve, but it makes 
the user codes simpler.

Emil





More information about the petsc-dev mailing list