Home
last modified time | relevance | path

Searched refs:PetscMalloc1 (Results 1 – 25 of 757) sorted by relevance

12345678910>>...31

/petsc/src/sys/tests/
H A Dex62.c32 PetscCall(PetscMalloc1(n + 1, set)); in Fibonnaci()
44 PetscCall(PetscMalloc1(n + 1, set)); in Square()
56 PetscCall(PetscMalloc1(n + 1, set)); in Cube()
68 PetscCall(PetscMalloc1(n + 1, set)); in Sixth()
108 PetscCall(PetscMalloc1(1, &set_a)); in test_empty_empty()
109 PetscCall(PetscMalloc1(1, &set_b)); in test_empty_empty()
132 PetscCall(PetscMalloc1(1, &set_a)); in test_a_empty()
133 PetscCall(PetscMalloc1(2, &set_b)); in test_a_empty()
157 PetscCall(PetscMalloc1(2, &set_a)); in test_b_empty()
158 PetscCall(PetscMalloc1(1, &set_b)); in test_b_empty()
[all …]
H A Dex10.c12 PetscCall(PetscMalloc1(10, &a)); in main()
13 PetscCall(PetscMalloc1(20, &b)); in main()
39 PetscCall(PetscMalloc1(25, &a)); in main()
/petsc/src/vec/is/sf/tests/
H A Dex10.c24 PetscCall(PetscMalloc1(nleaves, &ilocalA0)); in main()
25 PetscCall(PetscMalloc1(nleaves, &iremoteA0)); in main()
33 PetscCall(PetscMalloc1(nleaves, &ilocalA1)); in main()
34 PetscCall(PetscMalloc1(nleaves, &iremoteA1)); in main()
45 PetscCall(PetscMalloc1(nleaves, &ilocalA2)); in main()
46 PetscCall(PetscMalloc1(nleaves, &iremoteA2)); in main()
57 PetscCall(PetscMalloc1(nleaves, &ilocalB)); in main()
58 PetscCall(PetscMalloc1(nleaves, &iremoteB)); in main()
H A Dex16.c106 PetscCall(PetscMalloc1(nA, &A)); in main()
107 PetscCall(PetscMalloc1(nB, &B)); in main()
147 PetscCall(PetscMalloc1(nA, &A)); in main()
192 PetscCall(PetscMalloc1(nA, &A)); in main()
193 PetscCall(PetscMalloc1(nB, &B)); in main()
/petsc/src/tao/unconstrained/impls/bmrm/
H A Dbmrm.c523 PetscCall(PetscMalloc1(n, &df->f)); in init_df_solver()
524 PetscCall(PetscMalloc1(n, &df->a)); in init_df_solver()
525 PetscCall(PetscMalloc1(n, &df->l)); in init_df_solver()
526 PetscCall(PetscMalloc1(n, &df->u)); in init_df_solver()
527 PetscCall(PetscMalloc1(n, &df->x)); in init_df_solver()
528 PetscCall(PetscMalloc1(n, &df->Q)); in init_df_solver()
530 for (i = 0; i < n; i++) PetscCall(PetscMalloc1(n, &df->Q[i])); in init_df_solver()
532 PetscCall(PetscMalloc1(n, &df->g)); in init_df_solver()
533 PetscCall(PetscMalloc1(n, &df->y)); in init_df_solver()
534 PetscCall(PetscMalloc1(n, &df->tempv)); in init_df_solver()
[all …]
/petsc/src/sys/utils/
H A Dmpimesg.c106 PetscCall(PetscMalloc1(nrecvs, olengths)); in PetscGatherMessageLengths()
121 PetscCall(PetscMalloc1(nrecvs, onodes)); in PetscGatherMessageLengths()
184 PetscCall(PetscMalloc1(nrecvs, olengths)); in PetscGatherMessageLengths_Private()
199 PetscCall(PetscMalloc1(nrecvs, onodes)); in PetscGatherMessageLengths_Private()
254 PetscCall(PetscMalloc1(nrecvs, olengths1)); in PetscGatherMessageLengths2()
255 PetscCall(PetscMalloc1(nrecvs, olengths2)); in PetscGatherMessageLengths2()
277 PetscCall(PetscMalloc1(nrecvs, onodes)); in PetscGatherMessageLengths2()
303 PetscCall(PetscMalloc1(nrecvs + 1, &rbuf_t)); in PetscPostIrecvInt()
304 PetscCall(PetscMalloc1(len, &rbuf_t[0])); in PetscPostIrecvInt()
308 PetscCall(PetscMalloc1(nrecvs, &r_waits_t)); in PetscPostIrecvInt()
[all …]
/petsc/src/ts/characteristic/impls/da/
H A Dslda.c56 PetscCall(PetscMalloc1(c->queueMax, &c->queue)); in CharacteristicSetUp_DA()
61 PetscCall(PetscMalloc1(c->numNeighbors, &c->needCount)); in CharacteristicSetUp_DA()
62 PetscCall(PetscMalloc1(c->numNeighbors, &c->localOffsets)); in CharacteristicSetUp_DA()
63 PetscCall(PetscMalloc1(c->numNeighbors, &c->fillCount)); in CharacteristicSetUp_DA()
64 PetscCall(PetscMalloc1(c->numNeighbors, &c->remoteOffsets)); in CharacteristicSetUp_DA()
65 PetscCall(PetscMalloc1(c->numNeighbors - 1, &c->request)); in CharacteristicSetUp_DA()
66 PetscCall(PetscMalloc1(c->numNeighbors - 1, &c->status)); in CharacteristicSetUp_DA()
/petsc/src/dm/dt/tests/
H A Dex6.c15 PetscCall(PetscMalloc1(n, &la_nodes)); in main()
16 PetscCall(PetscMalloc1(n, &la_weights)); in main()
17 PetscCall(PetscMalloc1(n, &n_nodes)); in main()
18 PetscCall(PetscMalloc1(n, &n_weights)); in main()
H A Dex9.c17 PetscCall(PetscMalloc1(Npoly * npoints, &p)); in testOrthogonality()
59 PetscCall(PetscMalloc1(npoints * Np, &proj)); in testDerivativesLegendre()
72 PetscCall(PetscMalloc1(deg + 1, &degrees)); in testDerivativesLegendre()
77 PetscCall(PetscMalloc1(npoints, &points1d)); in testDerivativesLegendre()
78 PetscCall(PetscMalloc1(dim, &B)); in testDerivativesLegendre()
80 PetscCall(PetscMalloc1((deg + 1) * npoints, &B[d])); in testDerivativesLegendre()
103 PetscCall(PetscMalloc1(dim, &point)); in testDerivativesLegendre()
122 PetscCall(PetscMalloc1(dim, &D)); in testDerivativesLegendre()
124 PetscCall(PetscMalloc1((deg + 1) * (k + 1), &D[i])); in testDerivativesLegendre()
/petsc/src/dm/impls/plex/tests/
H A Dex69.c659 PetscCall(PetscMalloc1(Nl, &local)); in CreateQuadMesh1()
660 PetscCall(PetscMalloc1(Nl, &remote)); in CreateQuadMesh1()
679 PetscCall(PetscMalloc1(Nl, &local)); in CreateQuadMesh1()
680 PetscCall(PetscMalloc1(Nl, &remote)); in CreateQuadMesh1()
693 PetscCall(PetscMalloc1(Nl, &local)); in CreateQuadMesh1()
694 PetscCall(PetscMalloc1(Nl, &remote)); in CreateQuadMesh1()
792 PetscCall(PetscMalloc1(Nl, &local)); in CreateHexMesh1()
793 PetscCall(PetscMalloc1(Nl, &remote)); in CreateHexMesh1()
842 PetscCall(PetscMalloc1(Nl, &local)); in CreateHexMesh1()
843 PetscCall(PetscMalloc1(Nl, &remote)); in CreateHexMesh1()
[all …]
/petsc/src/ksp/ksp/impls/gmres/dgmres/
H A Ddgmres.c62 PetscCall(PetscMalloc1(neig * max_k, &SR)); in KSPSetUp_DGMRES()
450 PetscCall(PetscMalloc1(dgmres->max_k, &dgmres->nrs)); in KSPBuildSolution_DGMRES()
567 if (!ORTH) PetscCall(PetscMalloc1(max_neig, &ORTH)); in KSPDGMRESComputeDeflationData_DGMRES()
591 if (!XMX) PetscCall(PetscMalloc1(neig1 * neig1, &XMX)); in KSPDGMRESComputeDeflationData_DGMRES()
596 if (!UMX) PetscCall(PetscMalloc1(max_neig * neig1, &UMX)); in KSPDGMRESComputeDeflationData_DGMRES()
599 if (!XMU) PetscCall(PetscMalloc1(max_neig * neig1, &XMU)); in KSPDGMRESComputeDeflationData_DGMRES()
604 if (!TT) PetscCall(PetscMalloc1(max_neig * max_neig, &TT)); in KSPDGMRESComputeDeflationData_DGMRES()
624 if (!TTF) PetscCall(PetscMalloc1(bmax * bmax, &TTF)); in KSPDGMRESComputeDeflationData_DGMRES()
626 if (!INVP) PetscCall(PetscMalloc1(bmax, &INVP)); in KSPDGMRESComputeDeflationData_DGMRES()
680 PetscCall(PetscMalloc1(ldA * ldA, &A)); in KSPDGMRESComputeSchurForm_DGMRES()
[all …]
/petsc/src/mat/impls/dense/mpi/
H A Dmmdense.c133 PetscCall(PetscMalloc1(nrqs + 1, &pa)); /*(proc -array)*/ in MatCreateSubMatrices_MPIDense_Local()
152 PetscCall(PetscMalloc1(nrqr + 1, &rbuf1)); in MatCreateSubMatrices_MPIDense_Local()
153 PetscCall(PetscMalloc1(nrqr * bsz, &rbuf1[0])); in MatCreateSubMatrices_MPIDense_Local()
157 PetscCall(PetscMalloc1(nrqr + 1, &r_waits1)); in MatCreateSubMatrices_MPIDense_Local()
210 PetscCall(PetscMalloc1(nrqs + 1, &s_waits1)); in MatCreateSubMatrices_MPIDense_Local()
217 PetscCall(PetscMalloc1(nrqs + 1, &r_waits2)); in MatCreateSubMatrices_MPIDense_Local()
218 PetscCall(PetscMalloc1(nrqs + 1, &rbuf2)); in MatCreateSubMatrices_MPIDense_Local()
222 PetscCall(PetscMalloc1(count + 1, &rbuf2[i])); in MatCreateSubMatrices_MPIDense_Local()
229 PetscCall(PetscMalloc1(nrqr + 1, &s_waits2)); in MatCreateSubMatrices_MPIDense_Local()
230 PetscCall(PetscMalloc1(nrqr + 1, &r_status1)); in MatCreateSubMatrices_MPIDense_Local()
[all …]
/petsc/src/mat/tests/
H A Dex120.c135 PetscCall(PetscMalloc1(n, &evals)); in main()
136 PetscCall(PetscMalloc1(lwork, &work)); in main()
141 PetscCall(PetscMalloc1(3 * n - 2, &rwork)); in main()
154 PetscCall(PetscMalloc1(m * n + 1, &evecs_array)); in main()
155 PetscCall(PetscMalloc1(7 * n + 1, &rwork)); in main()
156 PetscCall(PetscMalloc1(5 * n + 1, &iwork)); in main()
157 PetscCall(PetscMalloc1(n + 1, &ifail)); in main()
170 PetscCall(PetscMalloc1(3 * n + 1, &rwork)); in main()
184 PetscCall(PetscMalloc1(m * n + 1, &evecs_array)); in main()
185 PetscCall(PetscMalloc1(6 * n + 1, &iwork)); in main()
[all …]
H A Dex118.c33 PetscCall(PetscMalloc1(3 * n + 1, &D)); in main()
36 PetscCall(PetscMalloc1(5 * n + 1, &work)); in main()
37 PetscCall(PetscMalloc1(3 * n + 1, &iwork)); in main()
38 PetscCall(PetscMalloc1(3 * n + 1, &iblock)); in main()
53 PetscCall(PetscMalloc1(n * nevs, &evecs_array)); in main()
54 PetscCall(PetscMalloc1(nevs, &ifail)); in main()
80 PetscCall(PetscMalloc1(nevs + 1, &evecs)); in main()
/petsc/src/dm/impls/plex/generators/triangle/
H A Dtrigenerate.c95 PetscCall(PetscMalloc1(in.numberofpoints * dim, &in.pointlist)); in DMPlexGenerate_Triangle()
96 PetscCall(PetscMalloc1(in.numberofpoints, &in.pointmarkerlist)); in DMPlexGenerate_Triangle()
116 PetscCall(PetscMalloc1(in.numberofsegments * 2, &in.segmentlist)); in DMPlexGenerate_Triangle()
117 PetscCall(PetscMalloc1(in.numberofsegments, &in.segmentmarkerlist)); in DMPlexGenerate_Triangle()
140 PetscCall(PetscMalloc1(in.numberofholes*dim, &in.holelist)); in DMPlexGenerate_Triangle()
179 PetscCall(PetscMalloc1(dim * numVertices, &meshCoords)); in DMPlexGenerate_Triangle()
187 PetscCall(PetscMalloc1(numCells * numCorners, &cells)); in DMPlexGenerate_Triangle()
259 PetscCall(PetscMalloc1(in.numberofpoints * dim, &in.pointlist)); in DMPlexRefine_Triangle()
260 PetscCall(PetscMalloc1(in.numberofpoints, &in.pointmarkerlist)); in DMPlexRefine_Triangle()
285 PetscCall(PetscMalloc1(cEnd - cStart, &maxVolumes)); in DMPlexRefine_Triangle()
[all …]
/petsc/src/ts/event/
H A Dtsevent.c328 PetscCall(PetscMalloc1(nevents, &event->fvalue_prev)); in TSSetEventHandler()
329 PetscCall(PetscMalloc1(nevents, &event->fvalue)); in TSSetEventHandler()
330 PetscCall(PetscMalloc1(nevents, &event->fvalue_right)); in TSSetEventHandler()
331 PetscCall(PetscMalloc1(nevents, &event->fsign_prev)); in TSSetEventHandler()
332 PetscCall(PetscMalloc1(nevents, &event->fsign)); in TSSetEventHandler()
333 PetscCall(PetscMalloc1(nevents, &event->fsign_right)); in TSSetEventHandler()
334 PetscCall(PetscMalloc1(nevents, &event->side)); in TSSetEventHandler()
335 PetscCall(PetscMalloc1(nevents, &event->side_prev)); in TSSetEventHandler()
336 PetscCall(PetscMalloc1(nevents, &event->justrefined_AB)); in TSSetEventHandler()
337 PetscCall(PetscMalloc1(nevents, &event->gamma_AB)); in TSSetEventHandler()
[all …]
/petsc/src/vec/is/sf/impls/basic/alltoall/
H A Dsfalltoall.c53 PetscCall(PetscMalloc1(sf->nleaves, &sf->remote)); in PetscSFGetGraph_Alltoall()
76 PetscCall(PetscMalloc1(nleaves, &ilocal)); in PetscSFCreateLocalSF_Alltoall()
77 PetscCall(PetscMalloc1(nleaves, &iremote)); in PetscSFCreateLocalSF_Alltoall()
103 PetscCall(PetscMalloc1(nselected, &tmproots)); in PetscSFCreateEmbeddedRootSF_Alltoall()
108 PetscCall(PetscMalloc1(nselected, &roots)); in PetscSFCreateEmbeddedRootSF_Alltoall()
128 PetscCall(PetscMalloc1(nleaves, &ilocal)); in PetscSFCreateEmbeddedRootSF_Alltoall()
129 PetscCall(PetscMalloc1(nleaves, &iremote)); in PetscSFCreateEmbeddedRootSF_Alltoall()
154 PetscCall(PetscMalloc1(nroots, &bas->irootloc)); in PetscSFCreateEmbeddedRootSF_Alltoall()
/petsc/src/benchmarks/
H A DPetscMalloc.c24 PetscCall(PetscMalloc1(100, &dummy)); in main()
29 for (i = 0; i < 1000; i++) PetscCall(PetscMalloc1(rand1[i], &arr[i])); in main()
37 for (i = 0; i < 1000; i += 2) PetscCall(PetscMalloc1(rand2[i], &arr[i])); in main()
/petsc/src/vec/is/ao/tests/
H A Dex5.c37 PetscCall(PetscMalloc1(local_size, &app_indices)); in main()
38 PetscCall(PetscMalloc1(local_size, &petsc_indices)); in main()
57 PetscCall(PetscMalloc1(n_loc, &ia)); in main()
58 PetscCall(PetscMalloc1(n_loc, &ia0)); in main()
/petsc/src/mat/impls/aij/seq/bas/
H A Dspbas.c67 PetscCall(PetscMalloc1(nrows, &result->row_nnz)); in spbas_allocate_pattern()
68 PetscCall(PetscMalloc1(nrows, &result->icols)); in spbas_allocate_pattern()
72 PetscCall(PetscMalloc1(nrows, &result->icol0)); in spbas_allocate_pattern()
79 PetscCall(PetscMalloc1(nrows, &result->values)); in spbas_allocate_pattern()
108 PetscCall(PetscMalloc1(nnz, &result->alloc_icol)); in spbas_allocate_data()
117 PetscCall(PetscMalloc1(nnz, &result->alloc_val)); in spbas_allocate_data()
125 PetscCall(PetscMalloc1(r_nnz, &result->icols[i])); in spbas_allocate_data()
130 PetscCall(PetscMalloc1(r_nnz, &result->values[i])); in spbas_allocate_data()
190 PetscCall(PetscMalloc1(nrows, &ialloc)); in spbas_mergesort_icols()
280 PetscCall(PetscMalloc1(nrows, &isort)); in spbas_compress_pattern()
[all …]
/petsc/src/vec/vec/tests/
H A Dex43.c30 PetscCall(PetscMalloc1(k, &val_dot)); in main()
31 PetscCall(PetscMalloc1(k, &val_mdot)); in main()
32 PetscCall(PetscMalloc1(k, &tval_dot)); in main()
33 PetscCall(PetscMalloc1(k, &tval_mdot)); in main()
/petsc/src/mat/impls/aij/seq/
H A Dsymtranspose.c21 PetscCall(PetscMalloc1(ai[am], &atj)); in MatTransposeSymbolic_SeqAIJ()
30 PetscCall(PetscMalloc1(an, &atfill)); in MatTransposeSymbolic_SeqAIJ()
81 PetscCall(PetscMalloc1(ai[am], &atj)); in MatTranspose_SeqAIJ()
87 PetscCall(PetscMalloc1(ai[am], &ata)); in MatTranspose_SeqAIJ()
97 PetscCall(PetscMalloc1(an, &atfill)); in MatTranspose_SeqAIJ()
160 PetscCall(PetscMalloc1(am + 1, &atj)); in MatGetSymbolicTransposeReduced_SeqAIJ()
169 PetscCall(PetscMalloc1(an + 1, &atfill)); in MatGetSymbolicTransposeReduced_SeqAIJ()
/petsc/src/mat/impls/sbaij/mpi/
H A Dsbaijov.c24 PetscCall(PetscMalloc1(is_max, &is_new)); in MatIncreaseOverlap_MPISBAIJ()
37 PetscCall(PetscMalloc1(Mbs + 1, &nidx)); in MatIncreaseOverlap_MPISBAIJ()
41 PetscCall(PetscMalloc1(is_max, &is_row)); in MatIncreaseOverlap_MPISBAIJ()
47 PetscCall(PetscMalloc1(is_max + 1, &submats)); in MatIncreaseOverlap_MPISBAIJ()
200 PetscCall(PetscMalloc1(is_max, &n)); in MatIncreaseOverlap_MPISBAIJ_Once()
212 PetscCall(PetscMalloc1(size * len + 1, &data1)); in MatIncreaseOverlap_MPISBAIJ_Once()
213 PetscCall(PetscMalloc1(size, &data1_start)); in MatIncreaseOverlap_MPISBAIJ_Once()
229 PetscCall(PetscMalloc1(Mbs, &ctable)); in MatIncreaseOverlap_MPISBAIJ_Once()
328 PetscCall(PetscMalloc1(len + 1, &odata1)); in MatIncreaseOverlap_MPISBAIJ_Once()
329 PetscCall(PetscMalloc1(size, &odata2_ptr)); in MatIncreaseOverlap_MPISBAIJ_Once()
[all …]
/petsc/src/ksp/ksp/tests/
H A Dex61.c19 PetscCall(PetscMalloc1(lda * size, &b)); in main()
44 PetscCall(PetscMalloc1(size, &x)); in main()
50 PetscCall(PetscMalloc1(size, &y)); in main()
55 PetscCall(PetscMalloc1(size, &z)); in main()
/petsc/src/dm/impls/plex/
H A Dplexpartition.c35 PetscCall(PetscMalloc1(1, offsets)); in DMPlexCreatePartitionerGraph_Overlap()
81 PetscCall(PetscMalloc1(vOffsets[*numVertices], &vAdj)); in DMPlexCreatePartitionerGraph_Overlap()
137 PetscCall(PetscMalloc1(1, offsets)); in DMPlexCreatePartitionerGraph_Native()
266 PetscCall(PetscMalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Native()
293 PetscCall(PetscMalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Native()
338 PetscCall(PetscMalloc1(1, offsets)); in DMPlexCreatePartitionerGraph_ViaMat()
358 PetscCall(PetscMalloc1(m, &idxs)); in DMPlexCreatePartitionerGraph_ViaMat()
375 PetscCall(PetscMalloc1(m, &idxs)); in DMPlexCreatePartitionerGraph_ViaMat()
376 PetscCall(PetscMalloc1(m, &idxs2)); in DMPlexCreatePartitionerGraph_ViaMat()
454 PetscCall(PetscMalloc1(ii[m] - m, &idxs)); in DMPlexCreatePartitionerGraph_ViaMat()
[all …]

12345678910>>...31