Memory block type holding both a data field and a pointer
to the next block. The field_t
type also holds a integer
refcount
that counts the number of references to this
field. User code is currently responsible for incrementing
the reference count.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
class(field_t), | public, | pointer | :: | next | |||
real(kind=dp), | public, | pointer, contiguous | :: | data(:,:,:) | |||
integer, | public | :: | dir | ||||
integer, | public | :: | data_loc | ||||
integer, | public | :: | refcount | = | 0 | ||
integer, | public | :: | id |
An integer identifying the memory block. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ngrid | |||
type(field_t), | intent(in), | pointer | :: | next | ||
integer, | intent(in) | :: | id |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_t) | :: | self | ||||
integer, | intent(in) | :: | data_loc |