Lines Matching refs:Nds

4367       for (d = 0; d < dm->Nds; ++d) {  in DMGetLocalSection()
5408 PetscInt Nds, s, maxLabels = 0, maxLen = 0, gmaxLen, Nl = 0, gNl, l, gl, m; in DMCompleteBCLabels_Internal() local
5417 PetscCall(DMGetNumDS(dm, &Nds)); in DMCompleteBCLabels_Internal()
5418 for (s = 0; s < Nds; ++s) { in DMCompleteBCLabels_Internal()
5428 for (s = 0; s < Nds; ++s) { in DMCompleteBCLabels_Internal()
5493 PetscInt Nds = dm->Nds, s; in DMDSEnlarge_Static() local
5496 if (Nds >= NdsNew) PetscFunctionReturn(PETSC_SUCCESS); in DMDSEnlarge_Static()
5498 for (s = 0; s < Nds; ++s) tmpd[s] = dm->probs[s]; in DMDSEnlarge_Static()
5499 for (s = Nds; s < NdsNew; ++s) { in DMDSEnlarge_Static()
5505 dm->Nds = NdsNew; in DMDSEnlarge_Static()
5525 PetscErrorCode DMGetNumDS(DM dm, PetscInt *Nds) in DMGetNumDS() argument
5529 PetscAssertPointer(Nds, 2); in DMGetNumDS()
5530 *Nds = dm->Nds; in DMGetNumDS()
5552 for (s = 0; s < dm->Nds; ++s) { in DMClearDS()
5560 dm->Nds = 0; in DMClearDS()
5587 …PetscCheck(dm->Nds > 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Need to call … in DMGetDS()
5621 for (s = 0; s < dm->Nds; ++s) { in DMGetCellDS()
5664 PetscInt Nds = dm->Nds, s; in DMGetRegionDS() local
5681 for (s = 0; s < Nds; ++s) { in DMGetRegionDS()
5714 PetscInt Nds = dm->Nds, s; in DMSetRegionDS() local
5722 for (s = 0; s < Nds; ++s) { in DMSetRegionDS()
5731 PetscCall(DMDSEnlarge_Static(dm, Nds + 1)); in DMSetRegionDS()
5738 for (s = Nds - 1; s >= 0; --s) dm->probs[s + 1] = dm->probs[s]; in DMSetRegionDS()
5739 Nds = 0; in DMSetRegionDS()
5741 dm->probs[Nds].label = label; in DMSetRegionDS()
5742 dm->probs[Nds].fields = fields; in DMSetRegionDS()
5743 dm->probs[Nds].ds = ds; in DMSetRegionDS()
5744 dm->probs[Nds].dsIn = dsIn; in DMSetRegionDS()
5769 PetscInt Nds; in DMGetRegionNumDS() local
5773 PetscCall(DMGetNumDS(dm, &Nds)); in DMGetRegionNumDS()
5774 … 0) && (num < Nds), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Region number %" PetscInt_FMT " is… in DMGetRegionNumDS()
5813 PetscInt Nds; in DMSetRegionNumDS() local
5818 PetscCall(DMGetNumDS(dm, &Nds)); in DMSetRegionNumDS()
5819 … 0) && (num < Nds), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Region number %" PetscInt_FMT " is… in DMSetRegionNumDS()
5862 PetscInt Nds, n; in DMFindRegionNum() local
5868 PetscCall(DMGetNumDS(dm, &Nds)); in DMFindRegionNum()
5869 for (n = 0; n < Nds; ++n) in DMFindRegionNum()
5871 if (n >= Nds) *num = -1; in DMFindRegionNum()
6119 for (s = 0; s < dm->Nds; ++s) { in DMCreateDS()
6162 for (s = 0; s < dm->Nds; ++s) { in DMCreateDS()
6176 for (s = 0; s < dm->Nds; ++s) { in DMCreateDS()
6258 PetscInt Nf, Nds, s; in DMComputeExactSolution() local
6274 PetscCall(DMGetNumDS(dm, &Nds)); in DMComputeExactSolution()
6275 for (s = 0; s < Nds; ++s) { in DMComputeExactSolution()
6359 PetscInt Nds, s; in DMCopyDS() local
6363 PetscCall(DMGetNumDS(dm, &Nds)); in DMCopyDS()
6365 for (s = 0; s < Nds; ++s) { in DMCopyDS()
6456 PetscInt Nds, n; in DMSetDimension() local
6463 PetscCall(DMGetNumDS(dm, &Nds)); in DMSetDimension()
6464 for (n = 0; n < Nds; ++n) { in DMSetDimension()
9166 PetscInt Nf, f, Nds, s; in DMComputeError() local
9171 PetscCall(DMGetNumDS(dm, &Nds)); in DMComputeError()
9172 for (s = 0; s < Nds; ++s) { in DMComputeError()