Lines Matching full:levels

57   SNESFASSetLevels - Sets the number of levels to use with `SNESFAS`.
62 . levels - the number of levels
69 If the number of levels is one then the solver uses the `-fas_levels` prefix
74 PetscErrorCode SNESFASSetLevels(SNES snes, PetscInt levels, MPI_Comm *comms) in SNESFASSetLevels() argument
87 if (levels == fas->levels) { in SNESFASSetLevels()
90 /* user has changed the number of levels; reset */ in SNESFASSetLevels()
92 /* destroy any coarser levels if necessary */ in SNESFASSetLevels()
99 PetscCall(PetscObjectComposedDataSetInt((PetscObject)snes, PetscMGLevelId, levels - 1)); in SNESFASSetLevels()
100 for (i = levels - 1; i >= 0; i--) { in SNESFASSetLevels()
103 fas->levels = levels; in SNESFASSetLevels()
114 … PetscCall(PetscObjectIncrementTabLevel((PetscObject)fas->next, (PetscObject)snes, levels - i)); in SNESFASSetLevels()
127 SNESFASGetLevels - Gets the number of levels in a `SNESFAS`, including fine and coarse grids
133 . levels - the number of levels
139 PetscErrorCode SNESFASGetLevels(SNES snes, PetscInt *levels) in SNESFASGetLevels() argument
145 PetscAssertPointer(levels, 2); in SNESFASGetLevels()
147 *levels = fas->levels; in SNESFASGetLevels()
174levels - 1, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_OUTOFRANGE, "Requested level %" Pets… in SNESFASGetCycleSNES()
175 …PetscCheck(fas->level == fas->levels - 1, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_OUTOFR… in SNESFASGetCycleSNES()
188 use on all levels.
219 use on all levels.
339 PetscInt i, levels; in SNESFASSetMonitor() local
346 levels = fas->levels; in SNESFASSetMonitor()
348 for (i = 0; i < levels; i++) { in SNESFASSetMonitor()
356 } else if (i != fas->levels - 1) { in SNESFASSetMonitor()
357 /* unset the monitors on the coarse levels */ in SNESFASSetMonitor()
366 SNESFASSetLog - Sets or unsets time logging for various `SNESFAS` stages on all levels
382 PetscInt i, levels; in SNESFASSetLog() local
390 levels = fas->levels; in SNESFASSetLog()
392 for (i = 0; i < levels; i++) { in SNESFASSetLog()
457 SNESFASCycleSetCycles - Sets the number of cycles for all levels in a `SNESFAS`
727 if (fas->level == fas->levels - 1) *flg = PETSC_TRUE; in SNESFASCycleIsFine()