1: #pragma once 3: #include <petscvec.h> 5: typedef struct { 6: /* --------------- Parameters used by line search method ----------------- */ 7: PetscReal maxstep; /* maximum step size */ 8: PetscInt bracket; 9: PetscInt infoc; 11: Vec x; 12: Vec W1; 13: Vec W2; 14: Vec Gold; 16: } TaoLineSearch_GPCG;