fill provides a generic interface to assing a value alpha of types (int32, int64, sp, dp) as defined in pic_types.F90 The inteface supports filling 1d and 2d arrays of the specified variables
Usage: call pic_fill(array, value, [optional] threaded)
This subroutine is threaded for performance purposes if threaded is set to .true.
Note
If this subroutine is called inside a omp threaded region it will run serially because of nested parallelism
fill a vector of datatype int32 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout) | :: | vector(:) | |||
| integer(kind=int32), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a vector of datatype int64 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(inout) | :: | vector(:) | |||
| integer(kind=int64), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a vector of datatype sp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(inout) | :: | vector(:) | |||
| real(kind=sp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a vector of datatype dp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | vector(:) | |||
| real(kind=dp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a matrix of datatype int32 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout) | :: | matrix(:,:) | |||
| integer(kind=int32), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a matrix of datatype int64 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(inout) | :: | matrix(:,:) | |||
| integer(kind=int64), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a matrix of datatype sp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(inout) | :: | matrix(:,:) | |||
| real(kind=sp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a matrix of datatype dp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | matrix(:,:) | |||
| real(kind=dp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a tensor of datatype int32 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout) | :: | tensor(:,:,:) | |||
| integer(kind=int32), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a tensor of datatype int64 with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(inout) | :: | tensor(:,:,:) | |||
| integer(kind=int64), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a tensor of datatype sp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(inout) | :: | tensor(:,:,:) | |||
| real(kind=sp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |
fill a tensor of datatype dp with a value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | tensor(:,:,:) | |||
| real(kind=dp), | intent(in) | :: | alpha | |||
| logical, | intent(in), | optional | :: | threaded |