Home
last modified time | relevance | path

Searched refs:nnewvecs (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ksp/ksp/impls/fcg/pipefcg/
H A Dpipefcg.c26 PetscInt nnewvecs, nvecsprev; in KSPAllocateVectors_PIPEFCG() local
34nnewvecs = PetscMin(PetscMax(nvecsneeded - pipefcg->nvecs, chunksize), pipefcg->mmax + 1 - pipefc… in KSPAllocateVectors_PIPEFCG()
35 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipefcg->pQvecs[pipefcg->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEFCG()
36 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipefcg->pZETAvecs[pipefcg->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEFCG()
37 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipefcg->pPvecs[pipefcg->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEFCG()
38 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipefcg->pSvecs[pipefcg->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEFCG()
39 pipefcg->nvecs += nnewvecs; in KSPAllocateVectors_PIPEFCG()
40 for (i = 0; i < nnewvecs; ++i) { in KSPAllocateVectors_PIPEFCG()
46 pipefcg->chunksizes[pipefcg->nchunks] = nnewvecs; in KSPAllocateVectors_PIPEFCG()
/petsc/src/ksp/ksp/impls/gcr/pipegcr/
H A Dpipegcr.c30 PetscInt nnewvecs, nvecsprev; in KSPAllocateVectors_PIPEGCR() local
38nnewvecs = PetscMin(PetscMax(nvecsneeded - pipegcr->nvecs, chunksize), pipegcr->mmax + 1 - pipegc… in KSPAllocateVectors_PIPEGCR()
39 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipegcr->ppvecs[pipegcr->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEGCR()
40 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipegcr->psvecs[pipegcr->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEGCR()
41 PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipegcr->pqvecs[pipegcr->nchunks], 0, NULL)); in KSPAllocateVectors_PIPEGCR()
42 …if (pipegcr->unroll_w) PetscCall(KSPCreateVecs(ksp, nnewvecs, &pipegcr->ptvecs[pipegcr->nchunks], … in KSPAllocateVectors_PIPEGCR()
43 pipegcr->nvecs += nnewvecs; in KSPAllocateVectors_PIPEGCR()
44 for (i = 0; i < nnewvecs; i++) { in KSPAllocateVectors_PIPEGCR()
50 pipegcr->chunksizes[pipegcr->nchunks] = nnewvecs; in KSPAllocateVectors_PIPEGCR()
/petsc/src/ksp/ksp/impls/fcg/
H A Dfcg.c18 PetscInt nnewvecs, nvecsprev; in KSPAllocateVectors_FCG() local
24 nnewvecs = PetscMin(PetscMax(nvecsneeded - fcg->nvecs, chunksize), fcg->mmax + 1 - fcg->nvecs); in KSPAllocateVectors_FCG()
25 PetscCall(KSPCreateVecs(ksp, nnewvecs, &fcg->pCvecs[fcg->nchunks], 0, NULL)); in KSPAllocateVectors_FCG()
26 PetscCall(KSPCreateVecs(ksp, nnewvecs, &fcg->pPvecs[fcg->nchunks], 0, NULL)); in KSPAllocateVectors_FCG()
27 fcg->nvecs += nnewvecs; in KSPAllocateVectors_FCG()
28 for (i = 0; i < nnewvecs; ++i) { in KSPAllocateVectors_FCG()
32 fcg->chunksizes[fcg->nchunks] = nnewvecs; in KSPAllocateVectors_FCG()