Searched refs:mmax (Results 1 – 7 of 7) sorted by relevance
| /petsc/src/ksp/ksp/impls/fcg/pipefcg/ |
| H A D | pipefcg.c | 32 if (pipefcg->nvecs < PetscMin(pipefcg->mmax + 1, nvecsneeded)) { in KSPAllocateVectors_PIPEFCG() 34 …nnewvecs = PetscMin(PetscMax(nvecsneeded - pipefcg->nvecs, chunksize), pipefcg->mmax + 1 - pipefc… in KSPAllocateVectors_PIPEFCG() 66 …tscMalloc4(pipefcg->mmax + 1, &pipefcg->Pvecs, pipefcg->mmax + 1, &pipefcg->pPvecs, pipefcg->mmax … in KSPSetUp_PIPEFCG() 67 …cMalloc4(pipefcg->mmax + 1, &pipefcg->Qvecs, pipefcg->mmax + 1, &pipefcg->pQvecs, pipefcg->mmax + … in KSPSetUp_PIPEFCG() 68 …PetscMalloc4(pipefcg->mmax + 1, &pipefcg->Pold, pipefcg->mmax + 1, &pipefcg->Sold, pipefcg->mmax +… in KSPSetUp_PIPEFCG() 69 PetscCall(PetscMalloc1(pipefcg->mmax + 1, &pipefcg->chunksizes)); in KSPSetUp_PIPEFCG() 70 …PetscCall(PetscMalloc3(pipefcg->mmax + 2, &pipefcg->dots, pipefcg->mmax + 1, &pipefcg->etas, pipef… in KSPSetUp_PIPEFCG() 73 …mmax + 1) PetscCall(PetscInfo(NULL, "Requested nprealloc=%" PetscInt_FMT " is greater than m_max+1… in KSPSetUp_PIPEFCG() 187 idx = i % (pipefcg->mmax + 1); in KSPSolve_PIPEFCG_cycle() 197 mi = pipefcg->mmax; in KSPSolve_PIPEFCG_cycle() [all …]
|
| H A D | pipefcgimpl.h | 7 PetscInt mmax; /* The maximum number of P/C vectors to store */ member
|
| /petsc/src/ksp/ksp/impls/gcr/pipegcr/ |
| H A D | pipegcr.c | 36 if (pipegcr->nvecs < PetscMin(pipegcr->mmax + 1, nvecsneeded)) { in KSPAllocateVectors_PIPEGCR() 38 …nnewvecs = PetscMin(PetscMax(nvecsneeded - pipegcr->nvecs, chunksize), pipegcr->mmax + 1 - pipegc… in KSPAllocateVectors_PIPEGCR() 136 idx = i % (pipegcr->mmax + 1); in KSPSolve_PIPEGCR_cycle() 146 mi = pipegcr->mmax; in KSPSolve_PIPEGCR_cycle() 149 mi = ((i - 1) % pipegcr->mmax) + 1; in KSPSolve_PIPEGCR_cycle() 157 kdx = k % (pipegcr->mmax + 1); in KSPSolve_PIPEGCR_cycle() 216 kdx = k % (pipegcr->mmax + 1); in KSPSolve_PIPEGCR_cycle() 342 …(PetscViewerASCIIPrintf(viewer, " max previous directions = %" PetscInt_FMT "\n", pipegcr->mmax)); in KSPView_PIPEGCR() 343 …" preallocated %" PetscInt_FMT " directions\n", PetscMin(pipegcr->nprealloc, pipegcr->mmax + 1))); in KSPView_PIPEGCR() 348 …allocated %" PetscInt_FMT " directions, %s truncation strategy", pipegcr->mmax, pipegcr->nprealloc… in KSPView_PIPEGCR() [all …]
|
| H A D | pipegcrimpl.h | 6 PetscInt mmax; /* The maximum number vectors of each type to store */ member
|
| /petsc/src/ksp/ksp/impls/fcg/ |
| H A D | fcg.c | 22 if (fcg->nvecs < PetscMin(fcg->mmax + 1, nvecsneeded)) { in KSPAllocateVectors_FCG() 24 nnewvecs = PetscMin(PetscMax(nvecsneeded - fcg->nvecs, chunksize), fcg->mmax + 1 - fcg->nvecs); in KSPAllocateVectors_FCG() 51 …etscMalloc5(fcg->mmax + 1, &fcg->Pvecs, fcg->mmax + 1, &fcg->Cvecs, fcg->mmax + 1, &fcg->pPvecs, f… in KSPSetUp_FCG() 54 …mmax + 1) PetscCall(PetscInfo(NULL, "Requested nprealloc=%" PetscInt_FMT " is greater than m_max+1… in KSPSetUp_FCG() 152 idx = i % (fcg->mmax + 1); in KSPSolve_FCG() 159 mi = fcg->mmax; in KSPSolve_FCG() 162 mi = ((i - 1) % fcg->mmax) + 1; in KSPSolve_FCG() 183 idx = k % (fcg->mmax + 1); in KSPSolve_FCG() 314 PetscCall(PetscViewerASCIIPrintf(viewer, " m_max=%" PetscInt_FMT "\n", fcg->mmax)); in KSPView_FCG() 315 …viewer, " preallocated %" PetscInt_FMT " directions\n", PetscMin(fcg->nprealloc, fcg->mmax + 1))); in KSPView_FCG() [all …]
|
| H A D | fcgimpl.h | 11 …PetscInt mmax; /* The maximum number of P/C vectors to st… member
|
| /petsc/src/ts/tutorials/ |
| H A D | extchem.c | 283 PetscInt smax = maxspecies, mmax = maxspecies; in FormInitialSolution() local 295 PetscCall(PetscOptionsGetRealArray(NULL, NULL, "-initial_mole", molefracs, &mmax, &flg)); in FormInitialSolution() 296 …== mmax, PETSC_COMM_SELF, PETSC_ERR_USER, "Must provide same number of initial species %" PetscInt… in FormInitialSolution()
|