[petsc-dev] TS creating SNES for explicit method

Barry Smith bsmith at mcs.anl.gov
Sun Aug 14 14:07:18 CDT 2011


PetscErrorCode  TSSetProblemType(TS ts, TSProblemType type) 
{
  PetscErrorCode ierr;

  PetscFunctionBegin;
  PetscValidHeaderSpecific(ts, TS_CLASSID,1);
  ts->problem_type = type;
  if (type == TS_LINEAR) {
    SNES snes;
    ierr = TSGetSNES(ts,&snes);CHKERRQ(ierr);
    ierr = SNESSetType(snes,SNESKSPONLY);CHKERRQ(ierr);
  }
  PetscFunctionReturn(0);
}

  So if an explicit method is used then the SNES object is generated and TSView causes the SNES object to be printed even though it is never used and doesn't make sense in that context.

   What is the plan to fix this?   Currently lots of nightly builds in TS are broken because -ts_view prints SNES object but output/* files do not have them.


   Barry




More information about the petsc-dev mailing list