Allocate an array based on the rotated index map of an unrotated reference array.
Definition at line 64 of file MOM_array_transform.F90.
|
| subroutine | allocate_rotated_array_real_2d (A_in, lb, turns, A) |
| | Allocate a 2d real array on the rotated index map of a reference array. More...
|
| |
| subroutine | allocate_rotated_array_real_3d (A_in, lb, turns, A) |
| | Allocate a 3d real array on the rotated index map of a reference array. More...
|
| |
| subroutine | allocate_rotated_array_real_4d (A_in, lb, turns, A) |
| | Allocate a 4d real array on the rotated index map of a reference array. More...
|
| |
| subroutine | allocate_rotated_array_integer (A_in, lb, turns, A) |
| | Allocate a 2d integer array on the rotated index map of a reference array. More...
|
| |
Allocate an array based on the rotated index map of an unrotated reference array.
Definition at line 64 of file MOM_array_transform.F90.
◆ allocate_rotated_array_integer()
| subroutine mom_array_transform::allocate_rotated_array::allocate_rotated_array_integer |
( |
integer, dimension(lb(1):,lb(2):), intent(in) |
A_in, |
|
|
integer, dimension(2), intent(in) |
lb, |
|
|
integer, intent(in) |
turns, |
|
|
integer, dimension(:,:), intent(inout), allocatable |
A |
|
) |
| |
|
private |
Allocate a 2d integer array on the rotated index map of a reference array.
- Parameters
-
| [in] | lb | Lower index bounds of A_in |
| [in] | a_in | Reference array |
| [in] | turns | Number of quarter turns |
| [in,out] | a | Array on rotated index |
Definition at line 342 of file MOM_array_transform.F90.
342 integer,
intent(in) :: lb(2)
343 integer,
intent(in) :: A_in(lb(1):,lb(2):)
344 integer,
intent(in) :: turns
345 integer,
allocatable,
intent(inout) :: A(:,:)
351 if (modulo(turns, 2) /= 0)
then
352 allocate(a(lb(2):ub(2), lb(1):ub(1)))
354 allocate(a(lb(1):ub(1), lb(2):ub(2)))
◆ allocate_rotated_array_real_2d()
| subroutine mom_array_transform::allocate_rotated_array::allocate_rotated_array_real_2d |
( |
real, dimension(lb(1):, lb(2):), intent(in) |
A_in, |
|
|
integer, dimension(2), intent(in) |
lb, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:), intent(inout), allocatable |
A |
|
) |
| |
|
private |
Allocate a 2d real array on the rotated index map of a reference array.
- Parameters
-
| [in] | lb | Lower index bounds of A_in |
| [in] | a_in | Reference array |
| [in] | turns | Number of quarter turns |
| [in,out] | a | Array on rotated index |
Definition at line 282 of file MOM_array_transform.F90.
283 integer,
intent(in) :: lb(2)
284 real,
intent(in) :: A_in(lb(1):, lb(2):)
285 integer,
intent(in) :: turns
286 real,
allocatable,
intent(inout) :: A(:,:)
292 if (modulo(turns, 2) /= 0)
then
293 allocate(a(lb(2):ub(2), lb(1):ub(1)))
295 allocate(a(lb(1):ub(1), lb(2):ub(2)))
◆ allocate_rotated_array_real_3d()
| subroutine mom_array_transform::allocate_rotated_array::allocate_rotated_array_real_3d |
( |
real, dimension(lb(1):, lb(2):, lb(3):), intent(in) |
A_in, |
|
|
integer, dimension(3), intent(in) |
lb, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:,:), intent(inout), allocatable |
A |
|
) |
| |
|
private |
Allocate a 3d real array on the rotated index map of a reference array.
- Parameters
-
| [in] | lb | Lower index bounds of A_in |
| [in] | a_in | Reference array |
| [in] | turns | Number of quarter turns |
| [in,out] | a | Array on rotated index |
Definition at line 302 of file MOM_array_transform.F90.
303 integer,
intent(in) :: lb(3)
304 real,
intent(in) :: A_in(lb(1):, lb(2):, lb(3):)
305 integer,
intent(in) :: turns
306 real,
allocatable,
intent(inout) :: A(:,:,:)
312 if (modulo(turns, 2) /= 0)
then
313 allocate(a(lb(2):ub(2), lb(1):ub(1), lb(3):ub(3)))
315 allocate(a(lb(1):ub(1), lb(2):ub(2), lb(3):ub(3)))
◆ allocate_rotated_array_real_4d()
| subroutine mom_array_transform::allocate_rotated_array::allocate_rotated_array_real_4d |
( |
real, dimension(lb(1):,lb(2):,lb(3):,lb(4):), intent(in) |
A_in, |
|
|
integer, dimension(4), intent(in) |
lb, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:,:,:), intent(inout), allocatable |
A |
|
) |
| |
|
private |
Allocate a 4d real array on the rotated index map of a reference array.
- Parameters
-
| [in] | lb | Lower index bounds of A_in |
| [in] | a_in | Reference array |
| [in] | turns | Number of quarter turns |
| [in,out] | a | Array on rotated index |
Definition at line 322 of file MOM_array_transform.F90.
323 integer,
intent(in) :: lb(4)
324 real,
intent(in) :: A_in(lb(1):,lb(2):,lb(3):,lb(4):)
325 integer,
intent(in) :: turns
326 real,
allocatable,
intent(inout) :: A(:,:,:,:)
332 if (modulo(turns, 2) /= 0)
then
333 allocate(a(lb(2):ub(2), lb(1):ub(1), lb(3):ub(3), lb(4):ub(4)))
335 allocate(a(lb(1):ub(1), lb(2):ub(2), lb(3):ub(3), lb(4):ub(4)))
The documentation for this interface was generated from the following file: