Interface to perform memory allocation within the openMMPol library, it can be called for 1,2 and 3-dimensional arrays of either integer or real
Allocate a 1-dimensional array of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimension of the vector |
||
real(kind=rp), | intent(inout), | allocatable | :: | v(:) |
Vector to allocate |
Allocate a 2-dimensional array of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len2 |
Dimensions of the vector |
||
real(kind=rp), | intent(inout), | allocatable | :: | v(:,:) |
Vector to allocate |
Allocate a 3-dimensional array of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len2 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len3 |
Dimensions of the vector |
||
real(kind=rp), | intent(inout), | allocatable | :: | v(:,:,:) |
Vector to allocate |
Allocate a 1-dimensional array of integers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimension of the vector |
||
integer(kind=ip), | intent(inout), | allocatable | :: | v(:) |
Vector to allocate |
Allocate a 2-dimensional array of integers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len2 |
Dimensions of the vector |
||
integer(kind=ip), | intent(inout), | allocatable | :: | v(:,:) |
Vector to allocate |
Allocate a 3-dimensional array of integers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len2 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len3 |
Dimensions of the vector |
||
integer(kind=ip), | intent(inout), | allocatable | :: | v(:,:,:) |
Vector to allocate |
Allocate a 1-dimensional array of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimension of the vector |
||
logical(kind=lp), | intent(inout), | allocatable | :: | v(:) |
Vector to allocate |
Allocate a 2-dimensional array of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Human-readable description string of the allocation operation, just for output purpose. |
||
integer(kind=ip), | intent(in) | :: | len1 |
Dimensions of the vector |
||
integer(kind=ip), | intent(in) | :: | len2 |
Dimensions of the vector |
||
logical(kind=lp), | intent(inout), | allocatable | :: | v(:,:) |
Vector to allocate |