[petsc-dev] TSSetArtificialForcingFunction()

Jed Brown jedbrown at mcs.anl.gov
Fri Feb 1 23:11:45 CST 2013


On Fri, Feb 1, 2013 at 4:49 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

> Should we add something like TSSetManufactoredForcingFunction() with which
> the user would provide the extra forcing term that makes
> TSSetSolutionFunction() the exact solution. Then when -ts_test is used TS
> automatically adds the artificial forcing term and compares the computed
> solution with the solution function provided by the user.
>

I don't know how we would implement this except to call the user just like
an RHSFunction. The user's dofs may not have coordinates and even if they
did, the forcing term should be integrated using quadrature consistent with
the rest of the discretization.

I think just having the monitor for the difference and some examples that
really check errors would be enough.


>
>    Then in each TS example we can provide a solution and its forcing
> making it far more likely that people who copy examples also put in a test
> function?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130201/776b1846/attachment.html>


More information about the petsc-dev mailing list