Actual source code: tron.h

petsc-3.6.1 2015-08-06
Report Typos and Errors
  1: #ifndef __TAO_TRON_H

  4: #include <petsc/private/taoimpl.h>
  5: #include <petscis.h>

  7: typedef struct {

  9:   /* Parameters */
 10:   PetscReal pg_ftol;
 11:   PetscReal actred;
 12:   PetscReal f_new;

 14:   PetscReal eta1,eta2,eta3,eta4;
 15:   PetscReal sigma1,sigma2,sigma3;

 17:   PetscInt maxgpits;

 19:   /* Problem variables, vectors and index sets */
 20:   PetscReal stepsize;
 21:   PetscReal pgstepsize;

 23:   /* Problem statistics */

 25:   PetscInt n;   /* Dimension of the Problem */
 26:   PetscReal delta;  /* Trust region size */
 27:   PetscReal gnorm;
 28:   PetscReal f;

 30:   PetscInt total_gp_its;
 31:   PetscInt gp_iterates;


 34:   Vec X_New;
 35:   Vec G_New;
 36:   Vec Work;

 38:   /* Subvectors and submatrices */
 39:   Vec DXFree;
 40:   Vec R;
 41:   Vec rmask;
 42:   Vec diag;
 43:   Mat H_sub;
 44:   Mat Hpre_sub;

 46:   IS Free_Local;  /* Indices of local variables equal to lower bound */
 47:   VecScatter scatter;

 49:   PetscInt n_free;       /* Number of free variables */
 50:   PetscInt n_free_last;

 52: } TAO_TRON;

 54: #endif