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

Barry Smith bsmith at mcs.anl.gov
Sun Oct 21 20:19:06 CDT 2012


  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