PetscDSGetFieldSize — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# PetscDSGetFieldSize

Returns the size of the given field in the full space basis

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscDSGetFieldSize(PetscDS prob, PetscInt f, PetscInt *size)

Not Collective

## Input Parameters

- prob - The `PetscDS` object

- f - The field number

## Output Parameter

- size - The size

## See Also

`PetscDS`, `PetscDSGetFieldOffset()`, `PetscDSGetNumFields()`, `PetscDSCreate()`

## Level

beginner

## Location

src/dm/dt/interface/dtds.c

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages