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

Barry Smith bsmith at mcs.anl.gov
Sun Oct 21 20:27:15 CDT 2012


On Oct 21, 2012, at 8:24 PM, Peter Brune <prbrune at gmail.com> wrote:

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

   I'm stripping out some of that crap as you type.

   Barry

> 
> - 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
> 
> 
> 




More information about the petsc-dev mailing list