| /petsc/src/ksp/ksp/tests/ |
| H A D | ex53.c | 56 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 D | dareg.c | 12 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 D | bvec3.c | 48 PetscCall(PetscCalloc1(n, &aarray)); in VecCreate_Seq() 57 PetscCall(PetscCalloc1(n, &aarray)); in VecCreate_Seq()
|
| /petsc/src/sys/classes/viewer/interface/ |
| H A D | viewers.c | 57 PetscCall(PetscCalloc1(64, &(*v)->viewer)); in PetscViewersCreate() 86 PetscCall(PetscCalloc1(n + 64, &v)); in PetscViewersGetViewer()
|
| /petsc/src/snes/tests/ |
| H A D | ex2.c | 89 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 D | ex18.c | 136 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 D | ex10.c | 44 PetscCall(PetscCalloc1(2 * nedge, &edgelist)); in main() 49 PetscCall(PetscCalloc1(2 * nedge, &edgelist)); in main()
|
| /petsc/src/mat/utils/ |
| H A D | overlapsplit.c | 110 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 D | getcolv.c | 176 PetscCall(PetscCalloc1(n, &work)); in MatGetColumnSums() 264 PetscCall(PetscCalloc1(n, &work)); in MatGetColumnMeans()
|
| /petsc/src/snes/tutorials/network/power/ |
| H A D | PFReadData.c | 54 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 D | mpb_aij.c | 35 PetscCall(PetscCalloc1(aij->B->cmap->n, &garrayCMap)); in MatGetMultiProcBlock_MPIAIJ() 49 PetscCall(PetscCalloc1(aij->B->rmap->n, &nnz)); in MatGetMultiProcBlock_MPIAIJ()
|
| H A D | mmaij.c | 69 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 D | PetscMemcpy.c | 10 PetscCall(PetscCalloc1(8000000, &A)); in main()
|
| /petsc/src/ksp/ksp/tutorials/network/ |
| H A D | ex1_nest.c | 64 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 D | symtranspose.c | 20 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 D | seqhashmat.h | 128 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 D | mmbaij.c | 67 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 D | mpb_baij.c | 40 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 D | mmsell.c | 141 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 D | pipelcg.c | 55 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 D | dspacesimple.c | 60 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 D | parmmgadapt.c | 79 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 D | stack.c | 146 PetscCall(PetscCalloc1((*stack)->max, &(*stack)->stack)); in PetscIntStackCreate()
|
| /petsc/src/snes/utils/libceed/ |
| H A D | dmplexsnesceed.c | 40 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexSNESComputeResidualCEED()
|
| /petsc/src/vec/is/is/tests/ |
| H A D | ex12.c | 26 PetscCall(PetscCalloc1(n, &idx)); in main()
|