MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / num_integrals

Method num_integrals

python/dolfinx/fem/forms.py:117–125  ·  view source on GitHub ↗

Number of integrals of a given type for a specific cell type. Args: integral_type: The type of integral to count. kernel_index: In the case of mixed topology, we have a kernel per cell type. For single-cell type meshes, this is zero.

(self, integral_type: IntegralType, kernel_index: int)

Source from the content-addressed store, hash-verified

115 return self._cpp_object.integral_types
116
117 def num_integrals(self, integral_type: IntegralType, kernel_index: int) -> int:
118 """Number of integrals of a given type for a specific cell type.
119
120 Args:
121 integral_type: The type of integral to count.
122 kernel_index: In the case of mixed topology, we have a kernel
123 per cell type. For single-cell type meshes, this is zero.
124 """
125 return self._cpp_object.num_integrals(integral_type, kernel_index)
126
127
128def get_integration_domains(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected