Commits

sarich  committed 24517cd

set the taolinesearch->reset to 0 when changing type

  • Participants
  • Parent commits af2272c

Comments (0)

Files changed (4)

File src/tao/linesearch/impls/gpcglinesearch/gpcglinesearch.c

   ls->data = (void*)neP;
 
   ls->ops->setup = 0;
+  ls->ops->reset = 0;
   ls->ops->apply=TaoLineSearchApply_GPCG;
   ls->ops->view =TaoLineSearchView_GPCG;
   ls->ops->destroy=TaoLineSearchDestroy_GPCG;

File src/tao/linesearch/impls/morethuente/morethuente.c

   ls->data = (void*)ctx;
   ls->initstep = 1.0;
   ls->ops->setup=0;
+  ls->ops->reset=0;
   ls->ops->apply=TaoLineSearchApply_MT;
   ls->ops->view =TaoLineSearchView_MT;
   ls->ops->destroy=TaoLineSearchDestroy_MT;

File src/tao/linesearch/impls/owarmijo/owarmijo.c

   ls->data = (void*)armP;
   ls->initstep=0.1;
   ls->ops->setup=0;
+  ls->ops->reset=0;
   ls->ops->apply=TaoLineSearchApply_OWArmijo;
   ls->ops->view = TaoLineSearchView_OWArmijo;
   ls->ops->destroy = TaoLineSearchDestroy_OWArmijo;

File src/tao/linesearch/impls/unit/unit.c

 {
   PetscFunctionBegin;
   ls->ops->setup = 0;
+  ls->ops->reset = 0;
   ls->ops->apply = TaoLineSearchApply_Unit;
   ls->ops->view = TaoLineSearchView_Unit;
   ls->ops->destroy = TaoLineSearchDestroy_Unit;