petsc-3.6.1 2015-08-06
Report Typos and Errors

TSAlphaSetAdapt

sets the time step adaptativity and acceptance test routine

Synopsis

#include "petscts.h"   
PetscErrorCode  TSAlphaSetAdapt(TS ts,TSAlphaAdaptFunction adapt,void *ctx)
This function allows to accept/reject a step and select the next time step to use.

Not Collective

Input Parameter

ts - timestepping context
adapt - user-defined adapt routine
ctx - [optional] user-defined context for private data for the adapt routine (may be NULL)

Calling sequence of adapt

   adapt (TS ts,PetscReal t,Vec X,Vec Xdot,
           PetscReal *next_dt,PetscBool *accepted,void *ctx);

Level:intermediate
Location:
src/ts/impls/implicit/alpha/alpha.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages