petsc-3.6.4 2016-04-12
Report Typos and Errors


choose which method and step size to use for the next step


#include "petscts.h" 
PetscErrorCode TSAdaptChoose(TSAdapt adapt,TS ts,PetscReal h,PetscInt *next_sc,PetscReal *next_h,PetscBool *accept)
Logically Collective

Input Arguments

adapt - adaptive contoller
h - current step size

Output Arguments

next_sc - scheme to use for the next step
next_h - step size to use for the next step
accept - PETSC_TRUE to accept the current step, PETSC_FALSE to repeat the current step with the new step size


The input value of parameter accept is retained from the last time step, so it will be PETSC_FALSE if the step is being retried after an initial rejection.

See Also

TSAdapt, TSAdaptCandidatesClear(), TSAdaptCandidateAdd()

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages