Skip to main content
Ctrl+K
PETSc v3.23.2-184-g2165746541c6 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PETSC_STATIC...

PETSC_STATIC_ARRAY_LENGTH#

Return the length of a static array

Synopsis#

#include <petscmacros.h>
size_t PETSC_STATIC_ARRAY_LENGTH(a)

Input Parameter#

  • a - a static array of any type

Output Parameter#

  • <return- value> - the length of the array

Example#

  PetscInt a[22];
  size_t sa = PETSC_STATIC_ARRAY_LENGTH(a)

sa will have a value of 22

Level#

intermediate

Location#

include/petscmacros.h


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • Example
  • Level
  • Location
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-05-19T03:46:19-0500 (v3.23.2-184-g2165746541c6).