Lines Matching refs:ls
455 ls = PETSc.SNESLineSearch()
456 ls.create()
457 ls.destroy()
460 ls = PETSc.SNESLineSearch().create()
461 ls.setType(PETSc.SNESLineSearch.Type.BASIC)
462 typ = ls.getType()
464 ls.destroy()
467 ls = PETSc.SNESLineSearch().create()
468 ls.setTolerances(rtol=0.125, atol=3, minstep=4, ltol=5, maxstep=6, max_its=7)
469 minstep, maxstep, rtol, atol, ltol, max_its = ls.getTolerances()
476 ls.destroy()
479 ls = PETSc.SNESLineSearch().create()
480 ls.setOrder(2)
481 order = ls.getOrder()
483 ls.destroy()
486 ls = PETSc.SNESLineSearch().create()
487 ls.setFromOptions()
489 ls.destroy()
493 ls = snes.getLineSearch()
494 self.assertTrue(isinstance(ls, PETSc.SNESLineSearch))
496 self.assertEqual(snes.linesearch, ls)
497 snes.linesearch = ls
498 self.assertEqual(snes.linesearch, ls)