tem_color_prop_type Derived Type

type, public :: tem_color_prop_type


Inherits

type~~tem_color_prop_type~~InheritsGraph type~tem_color_prop_type tem_color_prop_type type~tem_property_type tem_property_type type~tem_color_prop_type->type~tem_property_type property type~tem_prophead_type tem_prophead_type type~tem_color_prop_type->type~tem_prophead_type header

Contents


Components

TypeVisibilityAttributesNameInitial
type(tem_prophead_type), private, pointer:: header=> null()

Pointer to treelmesh_type%global%property

integer, private :: nColors

Number of colors present in the mesh.

integer, private :: nChars

Number of characters required to store a bit for each color.

character(len=LabelLen), private, allocatable:: color_label(:)

Array of labels identifying each of the colors. This array has a length of nColors

real(kind=rk), private, allocatable:: color_fill(:)

Value to use, where the color is present.

real(kind=rk), private, allocatable:: color_void(:)

Value to use, where the color is not present.

character, private, allocatable:: colored_bit(:,:)

Actual color identification.

For every element with this property a bitfield is stored, to indicate which colors it has. The first index has length nChars, and the second runs over all elements with an attached color. Using characters here, to minimize the required space for color encoding of few colors.

type(tem_property_type), private, pointer:: property=> null()

Pointer to treelmesh_type%property