Home
last modified time | relevance | path

Searched refs:num_grids (Results 1 – 6 of 6) sorted by relevance

/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c112 for (PetscInt i = 0; i < ctx->num_grids * ctx->batch_sz; i++) subJ[i] = NULL; in LandauFormJacobian_Internal()
116 …for (PetscInt grid = 0; grid < ctx->num_grids; grid++) PetscCall(DMCreateMatrix(ctx->plex[grid], &… in LandauFormJacobian_Internal()
127 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in LandauFormJacobian_Internal()
148 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in LandauFormJacobian_Internal()
155 …for (PetscInt grid = 0; grid < ctx->num_grids; grid++) cellClosure_sz += Nb * Nf[grid] * numCells[… in LandauFormJacobian_Internal()
163 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in LandauFormJacobian_Internal()
204 …PetscCall(LandauKokkosJacobian(ctx->plex, Nq, Nb, ctx->batch_sz, ctx->num_grids, numCells, Eq_m, c… in LandauFormJacobian_Internal()
210 …1], elem_offset[LANDAU_MAX_GRIDS + 1], IPf_sz_glb, IPf_sz_tot, num_grids = ctx->num_grids, Nf[LAND… in LandauFormJacobian_Internal() local
216 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in LandauFormJacobian_Internal()
225 for (PetscInt grid = 0; grid < num_grids; grid++) { in LandauFormJacobian_Internal()
[all …]
/petsc/src/ts/utils/dmplexlandau/kokkos/
H A Dlandau.kokkos.cxx123 PetscErrorCode LandauKokkosDestroyMatMaps(P4estVertexMaps maps[], PetscInt num_grids) in LandauKokkosDestroyMatMaps() argument
126 for (PetscInt grid = 0; grid < num_grids; grid++) { in LandauKokkosDestroyMatMaps()
137 …PetscInt Nq, const PetscInt Nb, const PetscInt batch_sz, const PetscInt num_grids, PetscInt a_numC… in LandauKokkosStaticDataSet() argument
155 for (PetscInt grid = 0; grid < num_grids; grid++) { in LandauKokkosStaticDataSet()
163 Nftot = a_species_offset[num_grids]; in LandauKokkosStaticDataSet()
216 …tLeft, Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>> h_NCells(a_numCells, num_grids); in LandauKokkosStaticDataSet()
217 … nc = new Kokkos::View<PetscInt *, Kokkos::LayoutLeft>("NCells", num_grids); in LandauKokkosStaticDataSet()
221 …tSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>> h_species_offset(a_species_offset, num_grids + 1); in LandauKokkosStaticDataSet()
222 … soff = new Kokkos::View<PetscInt *, Kokkos::LayoutLeft>("species_offset", num_grids + 1); in LandauKokkosStaticDataSet()
226 …kos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>> h_mat_offset(a_mat_offset, num_grids + 1); in LandauKokkosStaticDataSet()
[all …]
/petsc/src/ts/tests/
H A Dex30.c290 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { // add same particels for all grids in gridToParticles_private()
304 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in gridToParticles_private()
324 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in gridToParticles_private()
393 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in PostStep()
420 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in PostStep()
448 if (ctx->num_grids > grid + 1) { in PostStep()
484 …l batched and %" PetscInt_FMT " global items (vertices) %d DMs\n", ctx->num_grids, ctx->batch_sz, … in go()
505 …if (ctx->num_grids > g_target + 1) PetscCall(DMViewFromOptions(ctx->plex[g_target + 1], NULL, "-ex… in go()
509 …for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { // add same particels for a… in go()
553 …for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { // add same parti… in go()
[all …]
/petsc/src/ts/utils/dmplexlandau/tutorials/
H A Dex2.c155 DM pack, plexe = ctx->plex[0], plexi = (ctx->num_grids == 1) ? NULL : ctx->plex[1]; in testSpitzer()
163num_grids * ctx->batch_sz, PETSC_COMM_SELF, PETSC_ERR_PLIB, "nDMs != ctx->num_grids*ctx->batch_sz … in testSpitzer()
395 … PetscCall(DMCompositeGetAccessArray(pack, F, ctx->num_grids * ctx->batch_sz, NULL, globFarray)); in FormSource()
396 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in FormSource()
401 …PetscCall(DMCompositeRestoreAccessArray(pack, F, ctx->num_grids * ctx->batch_sz, NULL, globFarray)… in FormSource()
422 PetscCall(DMCompositeGetAccessArray(pack, X, ctx->num_grids * ctx->batch_sz, NULL, globXArray)); in Monitor()
459 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in Monitor()
477 …tx->verbose > 3)) PetscCall(DMCompositeRestoreAccessArray(pack, X, ctx->num_grids * ctx->batch_sz,… in Monitor()
583num_grids || rectx->grid_view_idx == -1, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG, "rectx->grid_view_… in ProcessREOptions()
H A Dex1.c34 …field %" PetscInt_FMT " with %" PetscInt_FMT " grids\n", grid, b_id, local_field, ctx->num_grids)); in landau_field_print_access_callback()
256 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in Monitor()
364 …PetscCheck(ctx->num_grids == 2, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG, "Must have two grids: use '… in main()
374 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) { in main()
/petsc/include/
H A Dpetsclandau.h163 PetscInt num_grids; member
197 #define LAND_PACK_IDX(_b, _g) (_b * ctx->num_grids + _g)