Commits

Matt Knepley committed f34a81f

SNES: Fixed package init in SNESLineSearchCreate()

Comments (0)

Files changed (1)

src/snes/linesearch/interface/linesearch.c

 
   PetscFunctionBegin;
   PetscValidPointer(outlinesearch,2);
+  ierr = SNESInitializePackage();CHKERRQ(ierr);
   *outlinesearch = NULL;
 
   ierr = PetscHeaderCreate(linesearch,_p_LineSearch,struct _LineSearchOps,SNESLINESEARCH_CLASSID, "SNESLineSearch","Linesearch","SNESLineSearch",comm,SNESLineSearchDestroy,SNESLineSearchView);CHKERRQ(ierr);