Lines Matching refs:msize
13 PetscCall(VecDestroyVecs(ngmres->msize, &ngmres->Fdot)); in SNESReset_NGMRES()
14 PetscCall(VecDestroyVecs(ngmres->msize, &ngmres->Xdot)); in SNESReset_NGMRES()
42 PetscInt msize, hsize; in SNESSetUp_NGMRES() local
55 if (!ngmres->Xdot) PetscCall(VecDuplicateVecs(snes->vec_sol, ngmres->msize, &ngmres->Xdot)); in SNESSetUp_NGMRES()
56 if (!ngmres->Fdot) PetscCall(VecDuplicateVecs(snes->vec_sol, ngmres->msize, &ngmres->Fdot)); in SNESSetUp_NGMRES()
58 msize = ngmres->msize; /* restart size */ in SNESSetUp_NGMRES()
59 hsize = msize * msize; in SNESSetUp_NGMRES()
62 …PetscCall(PetscCalloc4(hsize, &ngmres->h, msize, &ngmres->beta, msize, &ngmres->xi, hsize, &ngmres… in SNESSetUp_NGMRES()
63 PetscCall(PetscMalloc3(msize, &ngmres->xnorms, msize, &ngmres->fnorms, msize, &ngmres->s)); in SNESSetUp_NGMRES()
65 PetscCall(PetscBLASIntCast(msize, &ngmres->lda)); in SNESSetUp_NGMRES()
66 PetscCall(PetscBLASIntCast(msize, &ngmres->ldb)); in SNESSetUp_NGMRES()
67 PetscCall(PetscBLASIntCast(12 * msize, &ngmres->lwork)); in SNESSetUp_NGMRES()
89 …OptionsInt("-snes_ngmres_m", "Number of directions", "SNES", ngmres->msize, &ngmres->msize, NULL)); in SNESSetFromOptions_NGMRES()
116 …cViewerASCIIPrintf(viewer, " Number of stored past updates: %" PetscInt_FMT "\n", ngmres->msize)); in SNESView_NGMRES()
280 ivec = k_restart % ngmres->msize; /* replace the last used part of the subspace */ in SNESSolve_NGMRES()
293 if (l < ngmres->msize) l++; in SNESSolve_NGMRES()
510 ngmres->msize = 30; in SNESCreate_NGMRES()