#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
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 |
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);