| /petsc/src/vec/is/ao/tests/ |
| H A D | ex5.c | 15 PetscLayout layout; in main() local 30 PetscCall(PetscLayoutCreate(comm, &layout)); in main() 31 PetscCall(PetscLayoutSetSize(layout, n_global)); in main() 32 PetscCall(PetscLayoutSetLocalSize(layout, PETSC_DECIDE)); in main() 33 PetscCall(PetscLayoutSetUp(layout)); in main() 34 PetscCall(PetscLayoutGetLocalSize(layout, &local_size)); in main() 35 PetscCall(PetscLayoutGetRange(layout, &start, &end)); in main() 85 PetscCall(PetscLayoutDestroy(&layout)); in main()
|
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex16.c | 66 PetscLayout layout; in main() local 214 PetscCall(PetscLayoutCreate(PETSC_COMM_WORLD, &layout)); in main() 215 PetscCall(PetscLayoutSetSize(layout, N)); in main() 216 PetscCall(PetscLayoutSetLocalSize(layout, n)); in main() 217 PetscCall(PetscLayoutSetBlockSize(layout, 1)); in main() 218 …PetscCall(PetscSFCreateByMatchingIndices(layout, nA, A, NULL, offsetA, nB, B, NULL, offsetB, NULL,… in main() 219 PetscCall(PetscLayoutDestroy(&layout)); in main()
|
| H A D | ex3.c | 13 PetscLayout layout; in main() local 53 PetscCall(VecGetLayout(x, &layout)); in main() 55 PetscCall(PetscSFSetGraphWithPattern(gathersf, layout, PETSCSF_PATTERN_GATHER)); in main() 108 PetscCall(VecGetLayout(x, &layout)); in main() 110 PetscCall(PetscSFSetGraphWithPattern(allgathersf, layout, PETSCSF_PATTERN_ALLGATHER)); in main()
|
| /petsc/include/petsc/private/ |
| H A D | pcbjkokkosimpl.h | 33 using layout = Kokkos::LayoutRight; variable 34 using IntView = Kokkos::View<PetscInt **, layout, exec_space>; 35 using AMatrixValueView = const Kokkos::View<PetscScalar **, layout, exec_space>; 36 using XYType = const Kokkos::View<PetscScalar **, layout, exec_space>;
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsfc.c | 94 …youtCreate(PetscMPIInt size, const PetscInt eextent[3], const PetscInt vextent[3], ZLayout *layout) in ZLayoutCreate() argument 97 layout->eextent.i = eextent[0]; in ZLayoutCreate() 98 layout->eextent.j = eextent[1]; in ZLayoutCreate() 99 layout->eextent.k = eextent[2]; in ZLayoutCreate() 100 layout->vextent.i = vextent[0]; in ZLayoutCreate() 101 layout->vextent.j = vextent[1]; in ZLayoutCreate() 102 layout->vextent.k = vextent[2]; in ZLayoutCreate() 103 layout->comm_size = size; in ZLayoutCreate() 104 layout->zstarts = NULL; in ZLayoutCreate() 105 PetscCall(PetscMalloc1(size + 1, &layout->zstarts)); in ZLayoutCreate() [all …]
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 30 PetscErrorCode PetscSFSetGraphLayout(PetscSF sf, PetscLayout layout, PetscInt nleaves, PetscInt ilo… in PetscSFSetGraphLayout() argument 39 PetscAssertPointer(layout, 2); in PetscSFSetGraphLayout() 42 PetscCall(PetscLayoutSetUp(layout)); in PetscSFSetGraphLayout() 43 PetscCall(PetscLayoutGetLocalSize(layout, &nroots)); in PetscSFSetGraphLayout() 44 PetscCall(PetscLayoutGetRanges(layout, &range)); in PetscSFSetGraphLayout() 50 PetscCall(PetscLayoutFindOwnerIndex(layout, gremote[i], &lr, &remote[i].index)); in PetscSFSetGraphLayout() 86 PetscErrorCode PetscSFGetGraphLayout(PetscSF sf, PetscLayout *layout, PetscInt *nleaves, const Pets… in PetscSFGetGraphLayout() argument 94 if (layout) PetscAssertPointer(layout, 2); in PetscSFGetGraphLayout() 111 if (layout) *layout = lt; in PetscSFGetGraphLayout() 131 PetscLayout layout; in PetscSFSetGraphSection() local [all …]
|
| /petsc/src/ts/tutorials/hamiltonian/output/ |
| H A D | ex4_landau_damping_1d_bs.out | 9 Regular layout using 4 particles per cell 19 Regular layout using 4 particles per cell
|
| H A D | ex4_landau_damping_1d_dg.out | 9 Regular layout using 4 particles per cell 19 Regular layout using 4 particles per cell
|
| H A D | ex2_uniform_primal_1d_real_pfak.out | 38 Regular layout using 1 particles per cell
|
| /petsc/src/vec/is/section/interface/hdf5/ |
| H A D | sectionhdf5.c | 135 PetscLayout layout; in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() local 150 PetscCall(PetscLayoutCreate(comm, &layout)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 151 PetscCall(PetscLayoutSetSize(layout, M)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 152 PetscCall(PetscLayoutSetLocalSize(layout, m)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 153 PetscCall(PetscLayoutSetBlockSize(layout, 1)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 154 PetscCall(PetscLayoutSetUp(layout)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 155 PetscCall(PetscSFSetGraphLayout(sf, layout, m, NULL, PETSC_OWN_POINTER, coffsets)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() 156 PetscCall(PetscLayoutDestroy(&layout)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
|
| /petsc/src/ksp/pc/impls/mpi/ |
| H A D | pcmpi.c | 164 PetscLayout layout; in PCMPISetMat() local 207 PetscCall(PetscLayoutCreate(comm, &layout)); in PCMPISetMat() 208 PetscCall(PetscLayoutSetBlockSize(layout, matproperties[2])); in PCMPISetMat() 209 PetscCall(PetscLayoutSetSize(layout, matproperties[1])); in PCMPISetMat() 210 PetscCall(PetscLayoutSetUp(layout)); in PCMPISetMat() 211 PetscCall(PetscLayoutGetLocalSize(layout, &n)); in PCMPISetMat() 212 PetscCall(PetscLayoutDestroy(&layout)); in PCMPISetMat() 215 PetscCall(PetscLayoutCreate(comm, &layout)); in PCMPISetMat() 216 PetscCall(PetscLayoutSetBlockSize(layout, matproperties[2])); in PCMPISetMat() 217 PetscCall(PetscLayoutSetSize(layout, matproperties[0])); in PCMPISetMat() [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/tests/ |
| H A D | lmvm_copy_test.c | 125 PetscLayout layout; in testMatLMVMCopy() local 133 PetscCall(VecGetLayout(u, &layout)); in testMatLMVMCopy() 135 PetscCall(MatSetLayouts(A, layout, layout)); in testMatLMVMCopy()
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic_da.c | 87 …_DMSwarmInsertPointsUsingCellDM_DA_Q1(DM dm, DM dmc, PetscInt npoints, DMSwarmPICLayoutType layout) in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() argument 105 switch (layout) { in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() 200 …DMSwarmInsertPointsUsingCellDM_DA(DM dm, DM celldm, DMSwarmPICLayoutType layout, PetscInt layout_p… in private_DMSwarmInsertPointsUsingCellDM_DA() argument 213 PetscCall(private_DMSwarmInsertPointsUsingCellDM_DA_Q1(dm, celldm, layout_param, layout)); in private_DMSwarmInsertPointsUsingCellDM_DA()
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | rosenbrock4.h | 140 PetscLayout layout; in CreateHessian() local 152 PetscCall(PetscLayoutCreateFromSizes(user->comm, PETSC_DECIDE, user->n, 1, &layout)); in CreateHessian() 153 PetscCall(PetscLayoutSetUp(layout)); in CreateHessian() 154 PetscCall(PetscLayoutGetRange(layout, &i_start, &i_end)); in CreateHessian() 164 PetscCall(MatSetLayouts(H, layout, layout)); in CreateHessian() 165 PetscCall(PetscLayoutDestroy(&layout)); in CreateHessian() 258 PetscLayout layout; in CreateVectors() local 267 PetscCall(VecGetLayout(x, &layout)); in CreateVectors() 274 PetscCall(PetscLayoutFindOwnerIndex(layout, i_end, &rank, &index)); in CreateVectors() 295 PetscCall(PetscSFSetGraphLayout(user->gscatter, layout, n_coo, NULL, PETSC_USE_POINTER, coo_i)); in CreateVectors()
|
| /petsc/src/mat/graphops/color/impls/jp/ |
| H A D | jp.c | 38 PetscLayout layout; in MCJPGreatestWeight_Private() local 67 PetscCall(MatGetLayouts(G, &layout, NULL)); in MCJPGreatestWeight_Private() 68 PetscCall(PetscSFSetGraphLayout(sf, layout, on, NULL, PETSC_COPY_VALUES, aij->garray)); in MCJPGreatestWeight_Private() 276 PetscLayout layout; in MCJPMinColor_Private() local 309 PetscCall(MatGetLayouts(G, &layout, NULL)); in MCJPMinColor_Private() 310 PetscCall(PetscSFSetGraphLayout(sf, layout, on, NULL, PETSC_COPY_VALUES, aij->garray)); in MCJPMinColor_Private()
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 1959 PetscLayout layout; in DMPlexDistributionLoad_HDF5_Private() local 1997 PetscCall(PetscLayoutCreate(comm, &layout)); in DMPlexDistributionLoad_HDF5_Private() 1999 PetscCall(PetscLayoutSetLocalSize(layout, lsize)); in DMPlexDistributionLoad_HDF5_Private() 2000 PetscCall(PetscLayoutSetBlockSize(layout, 1)); in DMPlexDistributionLoad_HDF5_Private() 2001 PetscCall(PetscLayoutSetUp(layout)); in DMPlexDistributionLoad_HDF5_Private() 2002 PetscCall(PetscSFSetGraphLayout(*distsf, layout, *chartSize, NULL, PETSC_OWN_POINTER, gpoints)); in DMPlexDistributionLoad_HDF5_Private() 2003 PetscCall(PetscLayoutDestroy(&layout)); in DMPlexDistributionLoad_HDF5_Private() 2193 PetscLayout layout; in DMPlexTopologyLoad_HDF5_Legacy_Private() local 2199 PetscCall(PetscLayoutCreate(comm, &layout)); in DMPlexTopologyLoad_HDF5_Legacy_Private() 2200 PetscCall(PetscLayoutSetSize(layout, Np)); in DMPlexTopologyLoad_HDF5_Legacy_Private() [all …]
|
| /petsc/src/mat/graphops/color/impls/greedy/ |
| H A D | greedy.c | 30 PetscLayout layout; in GreedyColoringLocalDistanceOne_Private() local 82 PetscCall(MatGetLayouts(m, &layout, NULL)); in GreedyColoringLocalDistanceOne_Private() 83 PetscCall(PetscSFSetGraphLayout(sf, layout, no, NULL, PETSC_COPY_VALUES, aij->garray)); in GreedyColoringLocalDistanceOne_Private() 186 PetscLayout layout; in GreedyColoringLocalDistanceTwo_Private() local 242 PetscCall(MatGetLayouts(m, &layout, NULL)); in GreedyColoringLocalDistanceTwo_Private() 243 PetscCall(PetscSFSetGraphLayout(sf, layout, no, NULL, PETSC_COPY_VALUES, aij->garray)); in GreedyColoringLocalDistanceTwo_Private()
|
| /petsc/src/ksp/pc/impls/bjacobi/bjkokkos/ |
| H A D | bjkokkoskernels.kokkos.cxx | 177 …Kokkos::View<PetscScalar **, layout, exec_space, Kokkos::MemoryTraits<Kokkos::Unmanaged>> inv_diag… in PCApply_BJKOKKOSKERNELS() 243 using Norm2DViewType = Kokkos::View<MagnitudeType **, layout, exec_space>; in PCApply_BJKOKKOSKERNELS() 244 using Scalar3DViewType = Kokkos::View<ScalarType ***, layout, exec_space>; in PCApply_BJKOKKOSKERNELS() 245 using IntViewType = Kokkos::View<int *, layout, exec_space>; in PCApply_BJKOKKOSKERNELS()
|
| /petsc/src/mat/graphops/coarsen/impls/mis/ |
| H A D | mis.c | 35 PetscLayout layout; in MatCoarsenApply_MIS_private() local 64 PetscCall(MatGetLayouts(Gmat, &layout, NULL)); in MatCoarsenApply_MIS_private() 65 …PetscCall(PetscSFSetGraphLayout(sf, layout, num_fine_ghosts, NULL, PETSC_COPY_VALUES, mpimat->garr… in MatCoarsenApply_MIS_private()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 181 PetscLayout layout; in DMInterpolationSetUp() local 199 PetscCall(PetscLayoutCreate(comm, &layout)); in DMInterpolationSetUp() 200 PetscCall(PetscLayoutSetBlockSize(layout, 1)); in DMInterpolationSetUp() 201 PetscCall(PetscLayoutSetLocalSize(layout, n)); in DMInterpolationSetUp() 202 PetscCall(PetscLayoutSetUp(layout)); in DMInterpolationSetUp() 203 PetscCall(PetscLayoutGetSize(layout, &N)); in DMInterpolationSetUp() 206 PetscCall(PetscLayoutGetRanges(layout, &ranges)); in DMInterpolationSetUp() 217 layout = NULL; in DMInterpolationSetUp() 282 PetscCall(PetscLayoutDestroy(&layout)); in DMInterpolationSetUp()
|
| /petsc/src/benchmarks/streams/ |
| H A D | process.py | 49 fig, ax1 = plt.subplots(layout='constrained')
|
| /petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/Styles/ |
| H A D | CmpSystems.css | 21 table-layout:fixed;
|
| /petsc/doc/manual/ |
| H A D | dmplex.md | 9 discretization was so closely tied to the data layout and solver that 187 Now a PETSc local vector can be created manually using this layout, 250 reordered, the data layout from a `PetscSection` can be used to 431 The data layout, `s`, needs to be wrapped in a `DM` object for it to be saved. 443 … the mesh, and the third argument is a `DM` object that carries the data layout that we would like… 446 …layout points are associated with the mesh points, so each of them can also be tagged with a globa… 624 a *dm name*, "dmA", and load the on-disk data layout into `sdm` as: 636 Each point in the on-disk data layout being tagged with a global 639 data layout to $X$. 642 data layout directly to the redistributed mesh. It then [all …]
|
| H A D | section.md | 7 - the relationship between the layout of data over a mesh (or similar structure) and the data layou… 158 To describe this parallel mesh point layout, we use a `PetscSF` and call it the `pointSF`. 162 The `localSection` describes the layout of the local vector. 206 To just change the array layout without changing the grid point indexing, call `PetscSectionSetPerm…
|
| /petsc/src/mat/graphops/coarsen/impls/misk/ |
| H A D | misk.c | 76 PetscLayout layout; in MatCoarsenApply_MISK_private() local 101 PetscCall(MatGetLayouts(cMat, &layout, NULL)); in MatCoarsenApply_MISK_private() 102 …PetscCall(PetscSFSetGraphLayout(sf, layout, num_fine_ghosts, NULL, PETSC_COPY_VALUES, mpimat->garr… in MatCoarsenApply_MISK_private()
|