Home
last modified time | relevance | path

Searched refs:PetscMalloc2 (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/petsc/src/dm/impls/plex/tests/
H A Dex13.c52 PetscCall(PetscMalloc2(2, &sizes, 8, &points)); in CreateMesh()
61 PetscCall(PetscMalloc2(2, &sizes, 8, &points)); in CreateMesh()
73 PetscCall(PetscMalloc2(3, &sizes, 8, &points)); in CreateMesh()
80 PetscCall(PetscMalloc2(2, &sizes, 4, &points)); in CreateMesh()
H A Dex4.c608 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
622 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
636 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
650 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
664 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
673 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
687 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
696 PetscCall(PetscMalloc2(2, &sizes, 7, &points)); in CreateMesh()
710 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
724 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
[all …]
H A Dex5.c881 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
890 PetscCall(PetscMalloc2(2, &sizes, 6, &points)); in CreateMesh()
904 PetscCall(PetscMalloc2(6, &sizes, 6, &points)); in CreateMesh()
918 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
927 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
936 PetscCall(PetscMalloc2(2, &sizes, 2, &points)); in CreateMesh()
950 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
964 PetscCall(PetscMalloc2(2, &sizes, 3, &points)); in CreateMesh()
/petsc/src/sys/classes/draw/utils/
H A Dlg.c32 …PetscCall(PetscMalloc2(lg->len + lg->dim * PETSC_DRAW_LG_CHUNK_SIZE, &tmpx, lg->len + lg->dim * PE… in PetscDrawLGAddCommonPoint()
83 …PetscCall(PetscMalloc2(lg->len + lg->dim * PETSC_DRAW_LG_CHUNK_SIZE, &tmpx, lg->len + lg->dim * PE… in PetscDrawLGAddPoint()
145 PetscCall(PetscMalloc2(lg->len + lg->dim * chunk, &tmpx, lg->len + lg->dim * chunk, &tmpy)); in PetscDrawLGAddPoints()
/petsc/src/vec/is/sf/tutorials/
H A Dex1.c175 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
200 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
239 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
259 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
283 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
337 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main()
418 PetscCall(PetscMalloc2(inedges, &indata, nleavesalloc, &outdata)); in main()
434 PetscCall(PetscMalloc2(inedges, &indata, nleavesalloc, &outdata)); in main()
/petsc/src/sys/utils/
H A Dmpimesg.c41 PetscCall(PetscMalloc2(size, &recv_buf, size, &iflags_localm)); in PetscGatherNumberOfMessages()
102 PetscCall(PetscMalloc2(nrecvs + nsends, &r_waits, nrecvs + nsends, &w_status)); in PetscGatherMessageLengths()
147 PetscCall(PetscMalloc2(size, &recv_buf, size, &iflags_localm)); in PetscGatherNumberOfMessages_Private()
180 PetscCall(PetscMalloc2(nrecvs + nsends, &r_waits, nrecvs + nsends, &w_status)); in PetscGatherMessageLengths_Private()
H A Dmathfit.c32 PetscCall(PetscMalloc2(n * 2, &X, n * 2, &Y)); in PetscLinearRegression()
/petsc/src/vec/is/sf/tests/
H A Dex15.c49 PetscCall(PetscMalloc2(n, &ix, n, &iy)); in main()
119 PetscCall(PetscMalloc2(n, &ix, n, &iy)); in main()
177 PetscCall(PetscMalloc2(n / 2, &ix, n / 2, &iy)); in main()
H A Dex4k.kokkos.cxx74 PetscCall(PetscMalloc2(maxn, &rootdata, maxn, &leafdata)); in main()
79 PetscCall(PetscMalloc2(maxn, &pbuf, maxn, &ebuf)); in main()
H A Dex20.c20 PetscCall(PetscMalloc2(nroots * dim, &rootcoords, nleaves * dim, &leafcoords)); in main()
/petsc/src/dm/dt/tests/
H A Dex11.c21 PetscCall(PetscMalloc2(dim * numFaces, &dx, dim * numFaces, &grad)); in main()
H A Dex1.c57 PetscCall(PetscMalloc2(npoints, &Pi, npoints, &Pj)); in CheckQuadrature()
103 PetscCall(PetscMalloc2(npoints, &x, npoints, &w)); in CheckJacobiQuadrature()
116 PetscCall(PetscMalloc2(npoints, &x2, npoints, &w2)); in CheckJacobiQuadrature()
/petsc/src/mat/utils/
H A Dcompressedrow.c53 PetscCall(PetscMalloc2(nrows + 1, &cpi, nrows, &ridx)); in MatCheckCompressedRow()
/petsc/src/vec/is/ao/tests/
H A Dex2.c21 PetscCall(PetscMalloc2(n, &ispetsc, n, &isapp)); in main()
/petsc/src/mat/graphops/order/
H A Dspqmd.c19 PetscCall(PetscMalloc2(nrow, &qsize, nrow, &qlink)); in MatGetOrdering_QMD()
H A Dspectral.c34 PetscCall(PetscMalloc2(m, &dnnz, m, &onnz)); in MatCreateLaplacian()
64 PetscCall(PetscMalloc2(colMax, &newCols, colMax, &newVals)); in MatCreateLaplacian()
/petsc/src/mat/tutorials/
H A Dex4.c18 PetscCall(PetscMalloc2(m, &dnnz, m, &onnz)); in main()
/petsc/src/vec/is/ao/impls/memscalable/
H A Daomemscalable.c42 PetscCall(PetscMalloc2(map->N, &app, map->N, &petsc)); in AOView_MemoryScalable()
146 PetscCall(PetscMalloc2(nreceives * nmax, &rindices, nreceives, &recv_waits)); in AOMap_MemoryScalable_private()
147 PetscCall(PetscMalloc2(nsends * nmax, &rindices2, nsends, &recv_waits2)); in AOMap_MemoryScalable_private()
318 PetscCall(PetscMalloc2(nreceives * nmax, &rindices, nreceives, &recv_waits)); in AOCreateMemoryScalable_private()
407 PetscCall(PetscMalloc2(size, &lens, size, &disp)); in AOCreate_MemoryScalable()
/petsc/src/vec/vec/utils/
H A Dvecstash.c193 PetscCall(PetscMalloc2(bs * newnmax, &n_array, newnmax, &n_idx)); in VecStashExpand_Private()
261 PetscCall(PetscMalloc2(nreceives * nmax * bs, &rvalues, nreceives * nmax, &rindices)); in VecStashScatterBegin_Private()
272 PetscCall(PetscMalloc2(stash->n * bs, &svalues, stash->n, &sindices)); in VecStashScatterBegin_Private()
406 PetscCall(PetscMalloc2(stash->n, &perm, stash->n * bs, &arr)); in VecStashSortCompress_Private()
/petsc/src/vec/is/sf/utils/
H A Dsfcoord.c144 PetscCall(PetscMalloc2(size, &ranks_needed, size + 1, &root_starts)); in PetscSFSetGraphFromCoordinates()
190 PetscCall(PetscMalloc2(nleaves, &indices, nleaves, &distances)); in PetscSFSetGraphFromCoordinates()
/petsc/src/vec/vec/tutorials/
H A Dex44.c29 PetscCall(PetscMalloc2(x_size, &idx, x_size, &vals)); in main()
46 PetscCall(PetscMalloc2(y_size, &idx, y_size, &vals)); in main()
/petsc/src/mat/impls/sbaij/seq/
H A Dsbaijfact4.c21 PetscCall(PetscMalloc2(mbs, &il, mbs, &jl)); in MatCholeskyFactorNumeric_SeqSBAIJ_3_NaturalOrdering()
25 PetscCall(PetscMalloc2(9, &dk, 9, &uik)); in MatCholeskyFactorNumeric_SeqSBAIJ_3_NaturalOrdering()
/petsc/src/ksp/ksp/interface/saws/
H A Dkspsaws.c89 PetscCall(PetscMalloc2(n, &mon->eigr, n, &mon->eigi)); in KSPMonitorSAWs()
/petsc/src/mat/graphops/color/impls/minpack/
H A Dcolor.c62 PetscCall(PetscMalloc2(n, &list, 4 * n, &work)); in MatColoringApply_SL()
162 PetscCall(PetscMalloc2(n, &list, 4 * n, &work)); in MatColoringApply_LF()
265 PetscCall(PetscMalloc2(n, &list, 4 * n, &work)); in MatColoringApply_ID()
/petsc/src/sys/tests/
H A Dex8.c97 PetscCall(PetscMalloc2(nto, &todata, nto, &toranks)); in main()
135 PetscCall(PetscMalloc2(nfrom, &iranks, nfrom, &iperm)); in main()

12345678910>>...12