Lines Matching refs:nDMs

146       PetscInt     cellClosure_sz = 0, nDMs, Nf[LANDAU_MAX_GRIDS];  in LandauFormJacobian_Internal()  local
154 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in LandauFormJacobian_Internal()
158 PetscCall(PetscMalloc(sizeof(*locXArray) * nDMs, &locXArray)); in LandauFormJacobian_Internal()
159 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in LandauFormJacobian_Internal()
160 PetscCall(DMCompositeGetLocalAccessArray(pack, a_X, nDMs, NULL, locXArray)); in LandauFormJacobian_Internal()
161 PetscCall(DMCompositeGetAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
181 PetscCall(DMCompositeRestoreLocalAccessArray(pack, a_X, nDMs, NULL, locXArray)); in LandauFormJacobian_Internal()
182 PetscCall(DMCompositeRestoreAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
2397 PetscInt cStart, cEnd, dim, ii, i0, nDMs; in DMPlexLandauPrintNorms() local
2410 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in DMPlexLandauPrintNorms()
2411 …PetscCheck(nDMs == ctx->num_grids * ctx->batch_sz, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "#DM wrong %"… in DMPlexLandauPrintNorms()
2412 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in DMPlexLandauPrintNorms()
2413 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, globXArray)); in DMPlexLandauPrintNorms()
2460 PetscCall(PetscMalloc(sizeof(*globMfArray) * nDMs, &globMfArray)); in DMPlexLandauPrintNorms()
2461 PetscCall(PetscMalloc(sizeof(*globMfArray) * nDMs, &globGammaArray)); in DMPlexLandauPrintNorms()
2465 PetscCall(DMCompositeGetAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2472 PetscCall(DMCompositeRestoreAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2474 PetscCall(DMCompositeGetAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2475 PetscCall(DMCompositeGetAccessArray(pack, Mf, nDMs, NULL, globMfArray)); in DMPlexLandauPrintNorms()
2502 PetscCall(DMCompositeRestoreAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2503 PetscCall(DMCompositeRestoreAccessArray(pack, Mf, nDMs, NULL, globMfArray)); in DMPlexLandauPrintNorms()
2524 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, globXArray)); in DMPlexLandauPrintNorms()