Lines Matching refs:has
14 static PetscErrorCode VecLoadIfExists_Private(Vec b, PetscViewer fd, PetscBool *has) in VecLoadIfExists_Private() argument
22 PetscCall(PetscViewerHDF5HasObject(fd, (PetscObject)b, has)); in VecLoadIfExists_Private()
23 if (*has) PetscCall(VecLoad(b, fd)); in VecLoadIfExists_Private()
32 *has = ierrp ? PETSC_FALSE : PETSC_TRUE; in VecLoadIfExists_Private()
47 PetscBool has; in main() local
174 PetscCall(VecLoadIfExists_Private(b, fd, &has)); in main()
175 if (!has) { in main()
199 PetscCall(VecLoadIfExists_Private(x, fd, &has)); in main()
200 } else has = PETSC_FALSE; in main()
201 if (truncate || !has) { in main()
242 PetscCall(PetscOptionsGetReal(NULL, NULL, "-nonzero_A11", &diag, &has)); in main()
243 …if (has) PetscCall(MatCreateConstantDiagonal(PETSC_COMM_WORLD, n, n, PETSC_DECIDE, PETSC_DECIDE, d… in main()