[petsc-dev] -ts_gl_view_detailed as opposed to standard approach

Barry Smith bsmith at mcs.anl.gov
Mon Nov 25 22:38:56 CST 2013


Can I rework 

    details = PETSC_FALSE;
    ierr    = PetscOptionsGetBool(((PetscObject)ts)->prefix,"-ts_gl_view_detailed",&details,NULL);CHKERRQ(ierr);
    ierr    = PetscViewerASCIIPushTab(viewer);CHKERRQ(ierr);
    for (i=0; i<gl->nschemes; i++) {
      ierr = TSGLSchemeView(gl->schemes[i],details,viewer);CHKERRQ(ierr);
    }

and 

#undef __FUNCT__
#define __FUNCT__ "TSGLSchemeView"
static PetscErrorCode TSGLSchemeView(TSGLScheme sc,PetscBool view_details,PetscViewer viewer)
{
  PetscErrorCode ierr;
  PetscBool      iascii;

  PetscFunctionBegin;
  ierr = PetscObjectTypeCompare((PetscObject)viewer,PETSCVIEWERASCII,&iascii);CHKERRQ(ierr);
  if (iascii) {

to use PETSC_VIEWER_ASCII_INFO_DETAIL  for additional detail not this command line option and flag?

  Barry




More information about the petsc-dev mailing list