Home
last modified time | relevance | path

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

/petsc/src/ksp/ksp/utils/lmvm/
H A Dlmvmimpl.c363 PetscInt hist_size = lmvm->m; in MatSetFromOptions_LMVM() local
369 …, "number of past updates kept in memory for the approximation", "", hist_size, &hist_size, NULL)); in MatSetFromOptions_LMVM()
377 if (hist_size != lmvm->m) PetscCall(MatLMVMSetHistorySize(B, hist_size)); in MatSetFromOptions_LMVM()
H A Dlmvmutils.c854 PetscErrorCode MatLMVMSetHistorySize(Mat B, PetscInt hist_size) in MatLMVMSetHistorySize() argument
863 …PetscCheck(hist_size >= 0, PetscObjectComm((PetscObject)B), PETSC_ERR_ARG_WRONG, "QN history size … in MatLMVMSetHistorySize()
864 if (lmvm->m != hist_size) PetscCall(MatLMVMReset_Internal(B, MAT_LMVM_RESET_BASES)); in MatLMVMSetHistorySize()
865 lmvm->m = hist_size; in MatLMVMSetHistorySize()
869 PetscErrorCode MatLMVMGetHistorySize(Mat B, PetscInt *hist_size) in MatLMVMGetHistorySize() argument
878 *hist_size = lmvm->m; in MatLMVMGetHistorySize()
/petsc/src/ksp/ksp/utils/lmvm/tests/
H A Dex1.c488 PetscInt M = 15, N = 15, hist_size = 5, n_iter = 3 * hist_size, n_variable = n_iter / 2; in main() local
528 PetscCall(MatLMVMSetHistorySize(B, hist_size)); in main()