Lines Matching refs:csize
6343 static inline PetscErrorCode DMPlexVecGetClosure_Depth1_Static(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt *csize, PetscScalar *values[])
6371 if (csize) *csize = size;
6409 if (csize) *csize = size;
6412 PetscCheck(size <= *csize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Size of input array %" PetscInt_FMT " < actual size %" PetscInt_FMT, *csize, size);
6413 *csize = size;
6587 + csize - The size of the input values array, or `NULL`; on output the number of values in the closure
6599 The `csize` argument is present in the Fortran binding. Since the Fortran `values` array contains its length information this argument may not be needed.
6600 In that case one may pass `PETSC_NULL_INTEGER` for `csize`.
6610 PetscErrorCode DMPlexVecGetOrientedClosure(DM dm, PetscSection section, PetscBool useClPerm, Vec v, PetscInt point, PetscInt ornt, PetscInt *csize, PetscScalar *values[])
6626 PetscCall(DMPlexVecGetClosure_Depth1_Static(dm, section, v, point, csize, values));
6643 PetscCheck(*csize >= asize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Provided array size %" PetscInt_FMT " not sufficient to hold closure size %" PetscInt_FMT, *csize, asize);
6654 if (csize) *csize = asize;
6672 + csize - The size of the input values array, or `NULL`; on output the number of values in the closure
6709 The `csize` argument is present in the Fortran binding. Since the Fortran `values` array contains its length information this argument may not be needed.
6710 In that case one may pass `PETSC_NULL_INTEGER` for `csize`.
6720 PetscErrorCode DMPlexVecGetClosure(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt *csize, PetscScalar *values[])
6723 PetscCall(DMPlexVecGetOrientedClosure(dm, section, PETSC_TRUE, v, point, 0, csize, values));
6740 + csize - The size of the input values array, or `NULL`; on output the number of values in the closure
6777 The `csize` argument is present in the Fortran binding. Since the Fortran `values` array contains its length information this argument may not be needed.
6778 In that case one may pass `PETSC_NULL_INTEGER` for `csize`.
6788 PetscErrorCode DMPlexVecGetClosureAtDepth(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt depth, PetscInt *csize, PetscScalar *values[])
6808 PetscCall(DMPlexVecGetClosure_Depth1_Static(dm, section, v, point, csize, values));
6839 if (csize) *csize = asize;
6855 if (csize) *csize = size;
6858 PetscCheck(size <= *csize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Size of input array %" PetscInt_FMT " < actual size %" PetscInt_FMT, *csize, size);
6859 *csize = size;
6874 . csize - The number of values in the closure, or `NULL`
6883 The `csize` argument is present in the Fortran binding. Since the Fortran `values` array contains its length information this argument may not be needed.
6884 In that case one may pass `PETSC_NULL_INTEGER` for `csize`.
6888 PetscErrorCode DMPlexVecRestoreClosure(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt *csize, PetscScalar *values[])
9357 PetscInt pStart, pEnd, p, pp, csize, ssize;
9425 PetscCall(PetscSectionGetStorageSize(coneSection, &csize));
9427 PetscCheck(csize == ssize, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Total cone size %" PetscInt_FMT " != Total support size %" PetscInt_FMT, csize, ssize);