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

Barry Smith bsmith at mcs.anl.gov
Sun Oct 21 20:35:54 CDT 2012


  Also don't provide monitors that exactly duplicate built in monitors; for example several examples had -drawcontours that identically duplicated -ts_monitor_solution

  It is fine to put in unique monitors specific for the problem that are not the same as producible with a command line option.

   Barry

On 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