petsc-3.14.5 2021-03-03
Report Typos and Errors

# SNESMSRegister

register a multistage scheme

### Synopsis

    #include "petscsnes.h"
    PetscErrorCode SNESMSRegister(SNESMSType name,PetscInt nstages,PetscInt nregisters,PetscReal stability,const PetscReal gamma[],const PetscReal delta[],const PetscReal betasub[])

Not Collective, but the same schemes should be registered on all processes on which they will be used

### Input Parameters

| name | - identifier for method
| nstages | - number of stages
| nregisters | - number of registers used by low-storage implementation
| stability | - scaled stability region
| gamma | - coefficients, see Ketcheson's paper
| delta | - coefficients, see Ketcheson's paper
| betasub | - subdiagonal of Shu-Osher form

### Notes

The notation is described in Ketcheson (2010) Runge-Kutta methods with minimum storage implementations.

Many multistage schemes are of the form $ X_0 = X^{(n)} $ X_k = X_0 + \alpha_k * F(X_{k-1}), k = 1,\ldots,s $ X^{(n+1)} = X_s These methods can be registered with

       SNESMSRegister("name",s,1,stability,NULL,NULL,alpha);

### See Also

SNESMS

### Level

advanced

### Location

src/snes/impls/ms/ms.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages