Home
last modified time | relevance | path

Searched refs:has_const (Results 1 – 11 of 11) sorted by relevance

/petsc/src/mat/ftn-mod/
H A Dpetscmat.h9011 subroutine MatNullSpaceRestoreVecs(sp, has_const, n, vecs, ierr)
15 PetscBool, intent(out) :: has_const
/petsc/src/mat/interface/
H A Dmatnull.c56 PetscErrorCode MatNullSpaceGetVecs(MatNullSpace sp, PetscBool *has_const, PetscInt *n, const Vec *v… in MatNullSpaceGetVecs() argument
60 if (has_const) *has_const = sp->has_cnst; in MatNullSpaceGetVecs()
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope_coarsedm.c248 PetscBool has_const; in PCTelescopeSubNullSpaceCreate_CoarseDM() local
258 PetscCall(MatNullSpaceGetVecs(nullspace, &has_const, &n, &vecs)); in PCTelescopeSubNullSpaceCreate_CoarseDM()
270 PetscCall(MatNullSpaceCreate(subcomm, has_const, n, sub_vecs, sub_nullspace)); in PCTelescopeSubNullSpaceCreate_CoarseDM()
H A Dtelescope.c231 PetscBool has_const; in PCTelescopeSubNullSpaceCreate_Telescope() local
239 PetscCall(MatNullSpaceGetVecs(nullspace, &has_const, &n, &vecs)); in PCTelescopeSubNullSpaceCreate_Telescope()
269 PetscCall(MatNullSpaceCreate(subcomm, has_const, n, sub_vecs, sub_nullspace)); in PCTelescopeSubNullSpaceCreate_Telescope()
H A Dtelescope_dmda.c783 PetscBool has_const; in PCTelescopeSubNullSpaceCreate_dmda_Telescope() local
793 PetscCall(MatNullSpaceGetVecs(nullspace, &has_const, &n, &vecs)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
828 PetscCall(MatNullSpaceCreate(subcomm, has_const, n, sub_vecs, sub_nullspace)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
/petsc/src/ksp/pc/impls/ml/
H A Dml.c676 PetscBool has_const; in PCSetUp_ML() local
683 PetscCall(MatNullSpaceGetVecs(mnull, &has_const, &nvec, &vecs)); in PCSetUp_ML()
684 PetscCall(PetscMalloc1((nvec + !!has_const) * mlocal, &nullvec)); in PCSetUp_ML()
685 if (has_const) in PCSetUp_ML()
689 for (j = 0; j < mlocal; j++) nullvec[(i + !!has_const) * mlocal + j] = v[j]; in PCSetUp_ML()
692 …ate_Set_NullSpace", ML_Aggregate_Set_NullSpace(agg_object, bs, nvec + !!has_const, nullvec, mlocal… in PCSetUp_ML()
/petsc/src/ksp/pc/impls/gamg/
H A Dagg.c467 PetscBool has_const; in PCSetData_AGG() local
473 PetscCall(MatNullSpaceGetVecs(mnull, &has_const, &nvec, &vecs)); in PCSetData_AGG()
478 pc_gamg->data_sz = (nvec + !!has_const) * mlocal; in PCSetData_AGG()
479 PetscCall(PetscMalloc1((nvec + !!has_const) * mlocal, &nullvec)); in PCSetData_AGG()
480 if (has_const) in PCSetData_AGG()
484 for (j = 0; j < mlocal; j++) nullvec[(i + !!has_const) * mlocal + j] = PetscRealPart(v[j]); in PCSetData_AGG()
488 pc_gamg->data_cell_cols = (nvec + !!has_const); in PCSetData_AGG()
/petsc/src/ksp/ksp/tutorials/
H A Dex49.c1264 PetscBool has_const; in DMDABCApplySymmetricCompression() local
1268 PetscCall(MatNullSpaceGetVecs(mnull, &has_const, &nvecs, &vecs)); in DMDABCApplySymmetricCompression()
/petsc/src/ksp/pc/impls/hypre/
H A Dhypre.c309 PetscBool has_const; in PCSetUp_HYPRE() local
404 PetscCall(MatNullSpaceGetVecs(mnull, &has_const, &nvec, &vecs)); in PCSetUp_HYPRE()
412 if (has_const) { in PCSetUp_HYPRE()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DMat.pyx6139 cdef PetscBool has_const = PETSC_FALSE
6140 if constant: has_const = PETSC_TRUE
6147 CHKERR(MatNullSpaceCreate(ccomm, has_const, nv, v, &newnsp))
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcprivate.c1666 PetscErrorCode PCBDDCNullSpaceCreate(MPI_Comm comm, PetscBool has_const, PetscInt nvecs, Vec quad_v… in PCBDDCNullSpaceCreate() argument
1675 …PetscCheck(last - first >= 2 * nvecs || !has_const, PETSC_COMM_SELF, PETSC_ERR_SUP, "Not implement… in PCBDDCNullSpaceCreate()
1679 if (!has_const) { in PCBDDCNullSpaceCreate()
1689 PetscCall(MatNullSpaceCreate(comm, has_const, nvecs, quad_vecs, nnsp)); in PCBDDCNullSpaceCreate()
1697 if (!has_const) { in PCBDDCNullSpaceCreate()