Home
last modified time | relevance | path

Searched refs:nDMs (Results 1 – 5 of 5) sorted by relevance

/petsc/src/ts/utils/dmplexlandau/tutorials/
H A Dex1.c241 PetscInt nDMs, id; in Monitor() local
246 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in Monitor()
251 PetscCall(PetscMalloc(sizeof(*XsubArray) * nDMs, &XsubArray)); in Monitor()
252 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, XsubArray)); // read only in Monitor()
294 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, XsubArray)); in Monitor()
331 PetscInt dim = 2, nDMs; in main() local
366 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in main()
368 PetscCall(PetscMalloc(sizeof(*XsubArray) * nDMs, &XsubArray)); in main()
369 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, XsubArray)); // read only in main()
379 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, XsubArray)); in main()
H A Dex2.c148 PetscInt ii, nDMs; in testSpitzer() local
162 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in testSpitzer()
163nDMs == ctx->num_grids * ctx->batch_sz, PETSC_COMM_SELF, PETSC_ERR_PLIB, "nDMs != ctx->num_grids*c… in testSpitzer()
164 PetscCall(PetscMalloc(sizeof(*XsubArray) * nDMs, &XsubArray)); in testSpitzer()
165 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, XsubArray)); // read only in testSpitzer()
214 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, XsubArray)); // read only in testSpitzer()
625 PetscInt dim = 2, nDMs; in main() local
647 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in main()
659 PetscCall(PetscMalloc(sizeof(*XsubArray) * nDMs, &XsubArray)); in main()
660 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, XsubArray)); // read only in main()
[all …]
/petsc/src/ksp/pc/impls/bjacobi/bjkokkos/
H A Dbjkokkos.kokkos.cxx786 PetscInt nDMs, n, *block_sizes = NULL; in PCSetUp_BJKOKKOS() local
822 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in PCSetUp_BJKOKKOS()
833 nDMs = 0; in PCSetUp_BJKOKKOS()
851 block_sizes[nDMs] = bend - bsrt; in PCSetUp_BJKOKKOS()
852 ntot += block_sizes[nDMs]; in PCSetUp_BJKOKKOS()
856 nDMs++; in PCSetUp_BJKOKKOS()
864 block_sizes[nDMs] = bend - bsrt; in PCSetUp_BJKOKKOS()
865 ntot += block_sizes[nDMs]; in PCSetUp_BJKOKKOS()
866 nDMs++; in PCSetUp_BJKOKKOS()
871 PetscCall(PetscRealloc(sizeof(PetscInt) * nDMs, &block_sizes)); in PCSetUp_BJKOKKOS()
[all …]
/petsc/src/ts/tests/
H A Dex30.c369 PetscInt n, dim, nDMs, v_id; in PostStep() local
387 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); // number of vertices * number of grids in PostStep()
391 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, printCtx->globXArray)); in PostStep()
455 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, printCtx->globXArray)); in PostStep()
465 PetscInt nDMs; in go() local
483 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); // number of vertices * number of grids in go()
484 …_FMT " global items (vertices) %d DMs\n", ctx->num_grids, ctx->batch_sz, num_vertices, (int)nDMs)); in go()
485 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in go()
486 PetscCall(PetscMalloc(sizeof(*globMpArray) * nDMs, &globMpArray)); in go()
487 PetscCall(PetscMalloc(sizeof(*globSwarmArray) * nDMs, &globSwarmArray)); in go()
[all …]
/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c146 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()
[all …]