Actual source code: tr.h
1: /* $Id: tr.h,v 1.9 2001/08/07 21:31:09 bsmith Exp $ */
3: /*
4: Context for a Newton trust region method for solving a system
5: of nonlinear equations
6: */
8: #ifndef __SNES_TR_H
10: #include src/snes/snesimpl.h
12: typedef struct {
13: /* ---- Parameters used by the trust region method ---- */
14: PetscReal mu; /* used to compute trust region parameter */
15: PetscReal eta; /* used to compute trust region parameter */
16: PetscReal delta; /* trust region parameter */
17: PetscReal delta0; /* used to initialize trust region parameter */
18: PetscReal delta1; /* used to compute trust region parameter */
19: PetscReal delta2; /* used to compute trust region parameter */
20: PetscReal delta3; /* used to compute trust region parameter */
21: PetscReal sigma; /* used to detemine termination */
22: int itflag; /* flag for convergence testing */
23: PetscReal rnorm0,ttol; /* used for KSP convergence test */
24: } SNES_TR;
26: #endif