Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 25 of 260) sorted by relevance

1234567891011

/petsc/src/dm/impls/plex/tests/
H A Dex13.c39 PetscInt *sizes = NULL; in CreateMesh() local
52 PetscCall(PetscMalloc2(2, &sizes, 8, &points)); in CreateMesh()
53 PetscCall(PetscArraycpy(sizes, triSizes_p2, 2)); in CreateMesh()
61 PetscCall(PetscMalloc2(2, &sizes, 8, &points)); in CreateMesh()
62 PetscCall(PetscArraycpy(sizes, triSizes_p2, 2)); in CreateMesh()
73 PetscCall(PetscMalloc2(3, &sizes, 8, &points)); in CreateMesh()
74 PetscCall(PetscArraycpy(sizes, triSizes_p3, 3)); in CreateMesh()
80 PetscCall(PetscMalloc2(2, &sizes, 4, &points)); in CreateMesh()
81 PetscCall(PetscArraycpy(sizes, quadSizes_p2, 2)); in CreateMesh()
87 PetscCall(PetscPartitionerShellSetPartition(part, size, sizes, points)); in CreateMesh()
[all …]
H A Dex4.c598 PetscInt *sizes = NULL; in CreateMesh() local
608 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
609 PetscCall(PetscArraycpy(sizes, triSizes_p2, 2)); in CreateMesh()
622 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
623 PetscCall(PetscArraycpy(sizes, triSizes_p2, 2)); in CreateMesh()
636 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
637 PetscCall(PetscArraycpy(sizes, quadSizes_p2, 2)); in CreateMesh()
650 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
651 PetscCall(PetscArraycpy(sizes, quadSizes_p2, 2)); in CreateMesh()
664 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
[all …]
H A Dex70.c31 PetscInt *sizes = NULL; in CreateMesh() local
41 PetscCall(PetscMalloc2(2, &sizes, 8, &points)); in CreateMesh()
42 PetscCall(PetscArraycpy(sizes, sizes1, 2)); in CreateMesh()
47 PetscCall(PetscPartitionerShellSetPartition(part, size, sizes, points)); in CreateMesh()
48 PetscCall(PetscFree2(sizes, points)); in CreateMesh()
H A Dex71.c100 PetscInt *sizes = NULL; in main() local
107 PetscCall(PetscMalloc2(3, &sizes, 4, &points)); in main()
108 PetscCall(PetscArraycpy(sizes, sizes1, 3)); in main()
113 PetscCall(PetscPartitionerShellSetPartition(part, size, sizes, points)); in main()
114 PetscCall(PetscFree2(sizes, points)); in main()
H A Dex12.c116 const PetscInt *sizes = NULL; in CreateMesh() local
121 sizes = triSizes_n2; in CreateMesh()
124 sizes = triSizes_n3; in CreateMesh()
127 sizes = triSizes_n4; in CreateMesh()
130 sizes = triSizes_n8; in CreateMesh()
133 sizes = quadSizes; in CreateMesh()
138 PetscCall(PetscPartitionerShellSetPartition(part, size, sizes, points)); in CreateMesh()
/petsc/src/ksp/ksp/tutorials/
H A Dex76f.F9012 IS is, sizes
36 PetscCallA(ISCreate(PETSC_COMM_WORLD, sizes, ierr))
37 PetscCallA(ISLoad(sizes, viewer, ierr))
38 PetscCallA(ISGetIndices(sizes, idx, ierr))
43 PetscCallA(ISRestoreIndices(sizes, idx, ierr))
44 PetscCallA(ISDestroy(sizes, ierr))
52 PetscCallA(ISCreate(PETSC_COMM_WORLD, sizes, ierr))
54 PetscCallA(ISSetLayout(sizes, map, ierr))
55 PetscCallA(ISLoad(sizes, viewer, ierr))
56 PetscCallA(ISGetLocalSize(sizes, m, ierr))
[all …]
H A Dex76.c12 IS is, sizes; in main() local
35 PetscCall(ISCreate(PETSC_COMM_WORLD, &sizes)); in main()
36 PetscCall(ISLoad(sizes, viewer)); in main()
37 PetscCall(ISGetIndices(sizes, &idx)); in main()
42 PetscCall(ISRestoreIndices(sizes, &idx)); in main()
43 PetscCall(ISDestroy(&sizes)); in main()
51 PetscCall(ISCreate(PETSC_COMM_WORLD, &sizes)); in main()
53 PetscCall(ISSetLayout(sizes, map)); in main()
54 PetscCall(ISLoad(sizes, viewer)); in main()
55 PetscCall(ISGetLocalSize(sizes, &m)); in main()
[all …]
H A Dex87.c207 IS sizes; in MatAndISLoad() local
217 PetscCall(ISCreate(PETSC_COMM_WORLD, &sizes)); in MatAndISLoad()
218 PetscCall(ISLoad(sizes, viewer)); in MatAndISLoad()
219 …PetscCall(ISSetBlockSize(sizes, is && aux ? 5 : 4)); /* not mandatory but useful to check for prop… in MatAndISLoad()
220 PetscCall(ISGetIndices(sizes, &idx)); in MatAndISLoad()
227 PetscCall(ISRestoreIndices(sizes, &idx)); in MatAndISLoad()
228 PetscCall(ISDestroy(&sizes)); in MatAndISLoad()
235 PetscCall(ISCreate(PETSC_COMM_WORLD, &sizes)); in MatAndISLoad()
237 PetscCall(ISSetLayout(sizes, map)); in MatAndISLoad()
240 PetscCall(ISLoad(sizes, viewer)); in MatAndISLoad()
[all …]
/petsc/src/dm/partitioner/impls/shell/
H A Dpartshell.c54 PetscInt sizes[16], points[1024]; in PetscPartitionerSetFromOptions_Shell() local
65 …e size of each partition on rank 0", "PetscPartitionerShellSetPartition", sizes, &Npart, &flgSizes… in PetscPartitionerSetFromOptions_Shell()
71 for (PetscInt i = 0; i < Npart; ++i) Np += sizes[i]; in PetscPartitionerSetFromOptions_Shell()
73 if (!rank) PetscCall(PetscPartitionerShellSetPartition(part, Npart, sizes, points)); in PetscPartitionerSetFromOptions_Shell()
75 PetscCall(PetscArrayzero(sizes, Npart)); in PetscPartitionerSetFromOptions_Shell()
76 PetscCall(PetscPartitionerShellSetPartition(part, Npart, sizes, points)); in PetscPartitionerSetFromOptions_Shell()
91 PetscInt *sizes, *points, v, p; in PetscPartitionerPartition_Shell() local
98 PetscCall(PetscCalloc2(nparts, &sizes, numVertices, &points)); in PetscPartitionerPartition_Shell()
100 …for (p = 0; p < nparts; ++p) sizes[p] = numVertices / nparts + (PetscInt)(p < numVertices % nparts… in PetscPartitionerPartition_Shell()
113 PetscCall(PetscPartitionerShellSetPartition(part, nparts, sizes, points)); in PetscPartitionerPartition_Shell()
[all …]
/petsc/src/benchmarks/
H A DbenchmarkExample.py123 def processSummaryCSV(filename, defaultStage, eventNames, sizes, times, errors, events): argument
148 def processSummary(moduleName, defaultStage, eventNames, sizes, times, errors, events): argument
151 m = processSummaryCSV(moduleName+'.csv', defaultStage, eventNames, sizes, times, errors, events)
170 sizes.append(event["dof"][0])
178 def plotTime(library, num, eventNames, sizes, times, events): argument
182 arches = sizes.keys()
185 data.append(sizes[arch])
195 def plotEventTime(library, num, eventNames, sizes, times, events, filename = None): argument
200 arches = sizes.keys()
208 data.append(sizes[arch][bs])
[all …]
H A DbenchmarkAssembly.py35 def plotSummary(library, num, sizes, nonzeros, times, events): argument
47 data.append(sizes)
61 data.append(sizes)
62 rows = np.sqrt(sizes)
76 data.append(sizes)
104 sizes = [] variable
123 sizes.append(n*n)
153 sizes.append(n*n)
155 if not args.batch: plotSummary(args.library, args.num, sizes, nonzeros, times, events)
/petsc/src/vec/is/ao/impls/memscalable/
H A Daomemscalable.c96 …PetscInt nmax, *sindices, *rindices, idx, lastidx, *sindices2, *rindices2, *sizes, *star… in AOMap_MemoryScalable_private() local
113 PetscCall(PetscCalloc2(2 * size, &sizes, n, &owner)); in AOMap_MemoryScalable_private()
126 sizes[2 * j]++; /* num of indices to be sent */ in AOMap_MemoryScalable_private()
127 sizes[2 * j + 1] = 1; /* send to proc[j] */ in AOMap_MemoryScalable_private()
134 sizes[2 * rank] = sizes[2 * rank + 1] = 0; /* do not receive from self! */ in AOMap_MemoryScalable_private()
136 for (PetscMPIInt i = 0; i < size; i++) nsends += sizes[2 * i + 1]; in AOMap_MemoryScalable_private()
139 PetscCall(PetscMaxSum(comm, sizes, &nmax, &inreceives)); in AOMap_MemoryScalable_private()
164 for (PetscMPIInt i = 1; i < size; i++) start[i] = start[i - 1] + sizes[2 * i - 2]; in AOMap_MemoryScalable_private()
178 for (PetscMPIInt i = 1; i < size; i++) start[i] = start[i - 1] + sizes[2 * i - 2]; in AOMap_MemoryScalable_private()
181 if (sizes[2 * i + 1]) { in AOMap_MemoryScalable_private()
[all …]
/petsc/src/mat/tests/output/
H A Dex46_1.out1 Mat Block sizes: 6 3 (l2g 6 3)
2 Vec Block sizes: 1 1 (l2g 2 2)
3 Vec Block sizes: 6 3 (l2g 6 3)
/petsc/src/sys/error/
H A Derr.c493 PetscMPIInt *sizes, Ntotal, *displs, NN; in PetscIntViewNumColumns() local
503 PetscCall(PetscMalloc1(size, &sizes)); in PetscIntViewNumColumns()
504 PetscCallMPI(MPI_Gather(&NN, 1, MPI_INT, sizes, 1, MPI_INT, 0, comm)); in PetscIntViewNumColumns()
505 Ntotal = sizes[0]; in PetscIntViewNumColumns()
509 Ntotal += sizes[i]; in PetscIntViewNumColumns()
510 displs[i] = displs[i - 1] + sizes[i - 1]; in PetscIntViewNumColumns()
513 PetscCallMPI(MPI_Gatherv(idx, NN, MPIU_INT, array, sizes, displs, MPIU_INT, 0, comm)); in PetscIntViewNumColumns()
515 PetscCall(PetscFree(sizes)); in PetscIntViewNumColumns()
601 PetscMPIInt *sizes, *displs, Ntotal, NN; in PetscRealViewNumColumns() local
611 PetscCall(PetscMalloc1(size, &sizes)); in PetscRealViewNumColumns()
[all …]
/petsc/src/ts/tutorials/output/
H A Dex18_adv_delta_yper_0.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (9)
10 marker: 1 strata of sizes (12)
11 Face Sets: 2 strata of sizes (3, 3)
12 depth: 3 strata of sizes (12, 21, 15)
H A Dex18_adv_0_im_3.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (7)
10 Cell Sets: 1 strata of sizes (7)
11 Face Sets: 4 strata of sizes (4, 4, 1, 3)
12 depth: 3 strata of sizes (14, 20, 19)
H A Dex18_adv_0_im_4.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (7)
10 Cell Sets: 1 strata of sizes (7)
11 Face Sets: 4 strata of sizes (4, 4, 1, 3)
12 depth: 3 strata of sizes (14, 20, 19)
H A Dex18_adv_0_im_2.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (7)
10 Cell Sets: 1 strata of sizes (7)
11 Face Sets: 4 strata of sizes (4, 4, 1, 3)
12 depth: 3 strata of sizes (14, 20, 19)
H A Dex18_adv_0_im.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (7)
10 Cell Sets: 1 strata of sizes (7)
11 Face Sets: 4 strata of sizes (4, 4, 1, 3)
12 depth: 3 strata of sizes (14, 20, 19)
H A Dex18_adv_3.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (9)
10 Face Sets: 2 strata of sizes (3, 3)
11 marker: 1 strata of sizes (12)
12 depth: 3 strata of sizes (12, 21, 15)
H A Dex18_adv_delta_yper_1.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (36)
10 Face Sets: 2 strata of sizes (9, 9)
11 marker: 1 strata of sizes (24)
12 depth: 3 strata of sizes (42, 78, 48)
H A Dex18_adv_4.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (9)
10 Face Sets: 4 strata of sizes (3, 3, 3, 3)
11 marker: 1 strata of sizes (24)
12 depth: 3 strata of sizes (16, 24, 21)
H A Dex18_adv_delta_yper_im_0.out8 ghost: 0 strata of sizes ()
9 vtk: 1 strata of sizes (9)
10 Face Sets: 2 strata of sizes (3, 3)
11 marker: 1 strata of sizes (12)
12 depth: 3 strata of sizes (12, 21, 15)
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DPartitioner.pyx153 sizes: Sequence[int] | None = None,
161 sizes
177 if sizes is not None:
178 sizes = iarray_i(sizes, &nsize, &csizes)
180 raise ValueError("sizes array should have %d entries (has %d)" %
183 raise ValueError("Must provide both sizes and points arrays")
/petsc/src/mat/tests/
H A Dex40.c12 PetscInt i, ls, *sizes; in ISAllGatherDisjoint() local
18 PetscCall(PetscMalloc1(size, &sizes)); in ISAllGatherDisjoint()
21 …PetscCallMPI(MPI_Allgather(&ls, 1, MPIU_INT, sizes, 1, MPIU_INT, PetscObjectComm((PetscObject)iis)… in ISAllGatherDisjoint()
25 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, sizes[i], idxs + ls, PETSC_COPY_VALUES, &is2[i])); in ISAllGatherDisjoint()
26 ls += sizes[i]; in ISAllGatherDisjoint()
30 PetscCall(PetscFree(sizes)); in ISAllGatherDisjoint()

1234567891011