pysdic.Connectivity.validate#

Connectivity.validate(*, recursive=True)[source]#

Validate the integrity of the connectivity.

The following conditions are checked:

  • The elements are a numpy.int64 array of shape \((N_e, N_{vpe})\) with \(N_{vpe} \geq 1\) and non-negative indices.

  • If element_type is set, it is an implemented type with \(N_{vpe}\) vertices.

  • The properties are a pysdic.core.property_container.PropertyContainer with \(N = N_e\).

Parameters:

recursive (bool, optional (default: True)) – If True, the property container is also validated (see pysdic.core.property_container.PropertyContainer.validate()).

Raises:
  • TypeError – If an attribute has a wrong type.

  • ValueError – If an attribute has a wrong shape or value.

Return type:

None