Home
last modified time | relevance | path

Searched refs:PetscCalloc1 (Results 1 – 25 of 235) sorted by relevance

12345678910

/petsc/src/ksp/ksp/tests/
H A Dex53.c56 PetscCall(PetscCalloc1(A_size, &A_indices)); in main()
57 PetscCall(PetscCalloc1(B_size, &B_indices)); in main()
63 PetscCall(PetscCalloc1(A_size, &A_indices)); in main()
64 PetscCall(PetscCalloc1(B_size, &B_indices)); in main()
/petsc/src/dm/impls/da/
H A Ddareg.c12 PetscCall(PetscCalloc1(dd->w + 1, &dd->fieldname)); in DMSetUp_DA()
13 PetscCall(PetscCalloc1(da->dim, &dd->coordinatename)); in DMSetUp_DA()
/petsc/src/vec/vec/impls/seq/
H A Dbvec3.c48 PetscCall(PetscCalloc1(n, &aarray)); in VecCreate_Seq()
57 PetscCall(PetscCalloc1(n, &aarray)); in VecCreate_Seq()
/petsc/src/sys/classes/viewer/interface/
H A Dviewers.c57 PetscCall(PetscCalloc1(64, &(*v)->viewer)); in PetscViewersCreate()
86 PetscCall(PetscCalloc1(n + 64, &v)); in PetscViewersGetViewer()
/petsc/src/snes/tests/
H A Dex2.c89 PetscCall(PetscCalloc1(*Np * spaceDim, pcoords)); in CreatePoints_Centroid()
124 PetscCall(PetscCalloc1(spaceDim, &ind)); in CreatePoints_Grid()
125 PetscCall(PetscCalloc1(spaceDim, &h)); in CreatePoints_Grid()
138 PetscCall(PetscCalloc1(*Np * spaceDim, pcoords)); in CreatePoints_Grid()
174 PetscCall(PetscCalloc1(spaceDim, &ind)); in CreatePoints_GridReplicated()
175 PetscCall(PetscCalloc1(spaceDim, &h)); in CreatePoints_GridReplicated()
180 PetscCall(PetscCalloc1(*Np * spaceDim, pcoords)); in CreatePoints_GridReplicated()
/petsc/src/vec/is/sf/tests/
H A Dex18.c136 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateReferenceSF_Regular()
148 PetscCall(PetscCalloc1(nLeaves, &iremote)); in CreateReferenceSF_Regular()
188 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(ctx->nsfs + 1, &lOffsets)); in CreateSFs_Irregular()
198 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateSFs_Irregular()
230 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(ctx->nsfs + 1, &lOffsets)); in CreateSFs_Regular()
231 PetscCall(PetscCalloc1(ctx->nsfs, &sfs)); in CreateSFs_Regular()
240 PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateSFs_Regular()
/petsc/src/dm/tests/
H A Dex10.c44 PetscCall(PetscCalloc1(2 * nedge, &edgelist)); in main()
49 PetscCall(PetscCalloc1(2 * nedge, &edgelist)); in main()
/petsc/src/mat/utils/
H A Doverlapsplit.c110 PetscCall(PetscCalloc1(size + 1, &localoffsets)); in MatIncreaseOverlapSplit_Single()
124 PetscCall(PetscCalloc1(0, &remote)); in MatIncreaseOverlapSplit_Single()
132 PetscCall(PetscCalloc1(nroots, &indices_recv)); in MatIncreaseOverlapSplit_Single()
H A Dgetcolv.c176 PetscCall(PetscCalloc1(n, &work)); in MatGetColumnSums()
264 PetscCall(PetscCalloc1(n, &work)); in MatGetColumnMeans()
/petsc/src/snes/tutorials/network/power/
H A DPFReadData.c54 PetscCall(PetscCalloc1(pf->nbus, &pf->bus)); in PFReadMatPowerData()
55 PetscCall(PetscCalloc1(pf->ngen, &pf->gen)); in PFReadMatPowerData()
56 PetscCall(PetscCalloc1(pf->nload, &pf->load)); in PFReadMatPowerData()
57 PetscCall(PetscCalloc1(pf->nbranch, &pf->branch)); in PFReadMatPowerData()
/petsc/src/mat/impls/aij/mpi/
H A Dmpb_aij.c35 PetscCall(PetscCalloc1(aij->B->cmap->n, &garrayCMap)); in MatGetMultiProcBlock_MPIAIJ()
49 PetscCall(PetscCalloc1(aij->B->rmap->n, &nnz)); in MatGetMultiProcBlock_MPIAIJ()
H A Dmmaij.c69 PetscCall(PetscCalloc1(N, &indices)); in MatSetUpMultiply_MPIAIJ()
215 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapd)); in MatMPIAIJDiagonalScaleLocalSetUp()
237 PetscCall(PetscCalloc1(inA->cmap->N / bs, &lindices)); in MatMPIAIJDiagonalScaleLocalSetUp()
240 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapo)); in MatMPIAIJDiagonalScaleLocalSetUp()
/petsc/src/benchmarks/
H A DPetscMemcpy.c10 PetscCall(PetscCalloc1(8000000, &A)); in main()
/petsc/src/ksp/ksp/tutorials/network/
H A Dex1_nest.c64 PetscCall(PetscCalloc1(nnode, &node)); in read_data()
65 PetscCall(PetscCalloc1(nbranch, &branch)); in read_data()
96 PetscCall(PetscCalloc1(2 * nbranch, &edgelist)); in read_data()
/petsc/src/mat/impls/aij/seq/
H A Dsymtranspose.c20 PetscCall(PetscCalloc1(an + 1, &ati)); in MatTransposeSymbolic_SeqAIJ()
80 PetscCall(PetscCalloc1(an + 1, &ati)); in MatTranspose_SeqAIJ()
159 PetscCall(PetscCalloc1(an + 1, &ati)); in MatGetSymbolicTransposeReduced_SeqAIJ()
H A Dseqhashmat.h128 PetscCall(PetscCalloc1(m, &a->dnz)); in MatSetUp_Seq_Hash()
132 PetscCall(PetscCalloc1(m / bs, &a->bdnz)); in MatSetUp_Seq_Hash()
/petsc/src/mat/impls/baij/mpi/
H A Dmmbaij.c67 PetscCall(PetscCalloc1(Nbs, &indices)); in MatSetUpMultiply_MPIBAIJ()
209 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapd)); in MatMPIBAIJDiagonalScaleLocalSetUp()
227 PetscCall(PetscCalloc1(ina->Nbs, &lindices)); in MatMPIBAIJDiagonalScaleLocalSetUp()
230 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapo)); in MatMPIBAIJDiagonalScaleLocalSetUp()
H A Dmpb_baij.c40 PetscCall(PetscCalloc1(aij->B->cmap->n / bs, &garrayCMap)); in MatGetMultiProcBlock_MPIBAIJ()
54 PetscCall(PetscCalloc1(aij->B->rmap->n / bs, &nnz)); in MatGetMultiProcBlock_MPIBAIJ()
/petsc/src/mat/impls/sell/mpi/
H A Dmmsell.c141 PetscCall(PetscCalloc1(N, &indices)); in MatSetUpMultiply_MPISELL()
209 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapd)); in MatMPISELLDiagonalScaleLocalSetUp()
224 PetscCall(PetscCalloc1(inA->cmap->N, &lindices)); in MatMPISELLDiagonalScaleLocalSetUp()
227 PetscCall(PetscCalloc1(inA->rmap->mapping->n, &r_rmapo)); in MatMPISELLDiagonalScaleLocalSetUp()
/petsc/src/ksp/ksp/impls/cg/pipelcg/
H A Dpipelcg.c55 PetscCall(PetscCalloc1(2, &plcg->alpha)); in KSPSetUp_PIPELCG()
56 PetscCall(PetscCalloc1(l, &plcg->sigma)); in KSPSetUp_PIPELCG()
385 PetscCall(PetscCalloc1((max_it + 1) * (2 * l + 1), &plcg->G)); in KSPSolve_PIPELCG()
386 PetscCall(PetscCalloc1(max_it + 1, &plcg->gamma)); in KSPSolve_PIPELCG()
387 PetscCall(PetscCalloc1(max_it + 1, &plcg->delta)); in KSPSolve_PIPELCG()
388 PetscCall(PetscCalloc1(max_it + 1, &plcg->req)); in KSPSolve_PIPELCG()
/petsc/src/dm/dt/dualspace/impls/simple/
H A Ddspacesimple.c60 PetscCall(PetscCalloc1(s->dim, &sp->functional)); in PetscDualSpaceSimpleSetDimension_Simple()
64 PetscCall(PetscCalloc1(spatialDim + 1, &s->numDof)); in PetscDualSpaceSimpleSetDimension_Simple()
/petsc/src/dm/impls/plex/adaptors/parmmg/
H A Dparmmgadapt.c79 PetscCall(PetscCalloc1(numCells, &cIsLeaf)); in DMAdaptMetric_ParMmg_Plex()
102 PetscCall(PetscCalloc1(numVertices, &vertexNumber)); in DMAdaptMetric_ParMmg_Plex()
139 PetscCall(PetscCalloc1(pEnd - pStart, &fIsIncluded)); in DMAdaptMetric_ParMmg_Plex()
225 PetscCall(PetscCalloc1(pEnd - pStart, &rankOfUsedVertices)); in DMAdaptMetric_ParMmg_Plex()
238 PetscCall(PetscCalloc1(pEnd - pStart, &usedCopies)); in DMAdaptMetric_ParMmg_Plex()
291 PetscCall(PetscCalloc1(numProcs, &interfacesPerRank)); in DMAdaptMetric_ParMmg_Plex()
/petsc/src/sys/logging/utils/
H A Dstack.c146 PetscCall(PetscCalloc1((*stack)->max, &(*stack)->stack)); in PetscIntStackCreate()
/petsc/src/snes/utils/libceed/
H A Ddmplexsnesceed.c40 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexSNESComputeResidualCEED()
/petsc/src/vec/is/is/tests/
H A Dex12.c26 PetscCall(PetscCalloc1(n, &idx)); in main()

12345678910