TSGLLEAdaptChoose#

Choose the next scheme and step size using a TSGLLEAdapt step-size and order controller

Synopsis#

#include "petscts.h" 
PetscErrorCode TSGLLEAdaptChoose(TSGLLEAdapt adapt, PetscInt n, const PetscInt orders[], const PetscReal errors[], const PetscReal cost[], PetscInt cur, PetscReal h, PetscReal tleft, PetscInt *next_sc, PetscReal *next_h, PetscBool *finish)

Logically Collective

Input Parameters#

  • adapt - the TSGLLEAdapt context

  • n - the number of candidate schemes

  • orders - the orders of accuracy of the candidate schemes

  • errors - the error estimates for each candidate scheme

  • cost - the relative cost of each candidate scheme

  • cur - the index of the currently active scheme

  • h - the last step size that was taken

  • tleft - the amount of remaining integration time

Output Parameters#

  • next_sc - the index of the scheme to use next

  • next_h - the step size to take next

  • finish - PETSC_TRUE if next_h was truncated to tleft because the end of the interval has been reached

See Also#

TS: Scalable ODE and DAE Solvers, TSGLLE, TSGLLEAdapt, TSGLLEAdaptCreate(), TSGLLEAdaptSetType()

Level#

developer

Location#

src/ts/impls/implicit/glle/glleadapt.c

Implementations#

TSGLLEAdaptChoose_None() in src/ts/impls/implicit/glle/glleadapt.c
TSGLLEAdaptChoose_Size() in src/ts/impls/implicit/glle/glleadapt.c
TSGLLEAdaptChoose_Both() in src/ts/impls/implicit/glle/glleadapt.c


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