Lines Matching refs:levels
74 PetscErrorCode SNESFASSetLevels(SNES snes, PetscInt levels, MPI_Comm *comms) in SNESFASSetLevels() argument
87 if (levels == fas->levels) { 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()
139 PetscErrorCode SNESFASGetLevels(SNES snes, PetscInt *levels) in SNESFASGetLevels() argument
145 PetscAssertPointer(levels, 2); in SNESFASGetLevels()
147 *levels = fas->levels; in SNESFASGetLevels()
174 …levels - 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()
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()
382 PetscInt i, levels; in SNESFASSetLog() local
390 levels = fas->levels; in SNESFASSetLog()
392 for (i = 0; i < levels; i++) { in SNESFASSetLog()
727 if (fas->level == fas->levels - 1) *flg = PETSC_TRUE; in SNESFASCycleIsFine()