Lines Matching refs:gs

35   SNES_NGS *gs = (SNES_NGS *)snes->data;  in SNESNGSSetTolerances()  local
42 gs->abstol = abstol; in SNESNGSSetTolerances()
46 gs->rtol = rtol; in SNESNGSSetTolerances()
50 gs->stol = stol; in SNESNGSSetTolerances()
54 gs->max_its = maxit; in SNESNGSSetTolerances()
81 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESNGSGetTolerances() local
85 if (atol) *atol = gs->abstol; in SNESNGSGetTolerances()
86 if (rtol) *rtol = gs->rtol; in SNESNGSGetTolerances()
87 if (stol) *stol = gs->stol; in SNESNGSGetTolerances()
88 if (maxit) *maxit = gs->max_its; in SNESNGSGetTolerances()
110 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESNGSSetSweeps() local
114 gs->sweeps = sweeps; in SNESNGSSetSweeps()
133 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESNGSGetSweeps() local
137 *sweeps = gs->sweeps; in SNESNGSGetSweeps()
143 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESReset_NGS() local
146 PetscCall(ISColoringDestroy(&gs->coloring)); in SNESReset_NGS()
170 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESSetFromOptions_NGS() local
178 …nt("-snes_ngs_sweeps", "Number of sweeps of GS to apply", "SNESComputeGS", gs->sweeps, &sweeps, &f… in SNESSetFromOptions_NGS()
180 …gs_atol", "Absolute residual tolerance for GS iteration", "SNESComputeGS", gs->abstol, &atol, &flg… in SNESSetFromOptions_NGS()
181 …gs_rtol", "Relative residual tolerance for GS iteration", "SNESComputeGS", gs->rtol, &rtol, &flg1)… in SNESSetFromOptions_NGS()
182 …_ngs_stol", "Absolute update tolerance for GS iteration", "SNESComputeGS", gs->stol, &stol, &flg2)… in SNESSetFromOptions_NGS()
183 …s_ngs_max_it", "Maximum number of sweeps of GS to apply", "SNESComputeGS", gs->max_its, &max_its, … in SNESSetFromOptions_NGS()
191 …nsReal("-snes_ngs_secant_h", "Differencing parameter for secant search", "", gs->h, &gs->h, NULL)); in SNESSetFromOptions_NGS()
192 …", "Use the graph coloring of the Jacobian for the secant GS", "", gs->secant_mat, &gs->secant_mat… in SNESSetFromOptions_NGS()
201 SNES_NGS *gs = (SNES_NGS *)snes->data; in SNESView_NGS() local
208 …ewer, " Use finite difference secant approximation with coloring with h = %g \n", (double)gs->h)); in SNESView_NGS()
319 SNES_NGS *gs; in SNESCreate_NGS() local
337 PetscCall(PetscNew(&gs)); in SNESCreate_NGS()
338 gs->sweeps = 1; in SNESCreate_NGS()
339 gs->rtol = 1e-5; in SNESCreate_NGS()
340 gs->abstol = PETSC_MACHINE_EPSILON; in SNESCreate_NGS()
341 gs->stol = 1000 * PETSC_MACHINE_EPSILON; in SNESCreate_NGS()
342 gs->max_its = 50; in SNESCreate_NGS()
343 gs->h = PETSC_SQRT_MACHINE_EPSILON; in SNESCreate_NGS()
344 snes->data = (void *)gs; in SNESCreate_NGS()