[petsc-dev] please do not replicate PETSc object options in examples

Peter Brune prbrune at gmail.com
Sun Oct 21 20:24:24 CDT 2012


The TS examples clearly still need a thorough modernizing that we've all
been loathe to begin in earnest. :)

- Peter

On Sun, Oct 21, 2012 at 8:19 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   For example,
>
>      ierr =
> PetscOptionsGetReal(PETSC_NULL,"-dt",&dt,PETSC_NULL);CHKERRQ(ierr);
>      ierr = TSSetInitialTimeStep(ts,0.0,dt);CHKERRQ(ierr);
>
>   since TSSetFromOptions() already has the option -ts_dt  there is no
> reason for the examples to provide the option.
>
>   Etc Etc.
>
>    Thanks
>
>
>    Barry
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121021/b550f68e/attachment.html>


More information about the petsc-dev mailing list