Rotate the elements of an array to the rotated set of indices. Rotation is applied across the first and second axes of the array.
Definition at line 27 of file MOM_array_transform.F90.
|
| subroutine | rotate_array_real_2d (A_in, turns, A) |
| | Rotate the elements of a 2d real array along first and second axes. More...
|
| |
| subroutine | rotate_array_real_3d (A_in, turns, A) |
| | Rotate the elements of a 3d real array along first and second axes. More...
|
| |
| subroutine | rotate_array_real_4d (A_in, turns, A) |
| | Rotate the elements of a 4d real array along first and second axes. More...
|
| |
| subroutine | rotate_array_integer (A_in, turns, A) |
| | Rotate the elements of a 2d integer array along first and second axes. More...
|
| |
| subroutine | rotate_array_logical (A_in, turns, A) |
| | Rotate the elements of a 2d logical array along first and second axes. More...
|
| |
Rotate the elements of an array to the rotated set of indices. Rotation is applied across the first and second axes of the array.
Definition at line 27 of file MOM_array_transform.F90.
◆ rotate_array_integer()
| subroutine mom_array_transform::rotate_array::rotate_array_integer |
( |
integer, dimension(:,:), intent(in) |
A_in, |
|
|
integer, intent(in) |
turns, |
|
|
integer, dimension(:,:), intent(out) |
A |
|
) |
| |
|
private |
Rotate the elements of a 2d integer array along first and second axes.
- Parameters
-
| [in] | a_in | Unrotated array |
| [in] | turns | Number of quarter turns |
| [out] | a | Rotated array |
Definition at line 128 of file MOM_array_transform.F90.
128 integer,
intent(in) :: a_in(:,:)
129 integer,
intent(in) :: turns
130 integer,
intent(out) :: a(:,:)
137 select case (modulo(turns, 4))
141 a(:,:) = transpose(a_in)
142 a(:,:) = a(n:1:-1, :)
144 a(:,:) = a_in(m:1:-1, n:1:-1)
146 a(:,:) = transpose(a_in(m:1:-1, :))
◆ rotate_array_logical()
| subroutine mom_array_transform::rotate_array::rotate_array_logical |
( |
logical, dimension(:,:), intent(in) |
A_in, |
|
|
integer, intent(in) |
turns, |
|
|
logical, dimension(:,:), intent(out) |
A |
|
) |
| |
|
private |
Rotate the elements of a 2d logical array along first and second axes.
- Parameters
-
| [in] | a_in | Unrotated array |
| [in] | turns | Number of quarter turns |
| [out] | a | Rotated array |
Definition at line 153 of file MOM_array_transform.F90.
153 logical,
intent(in) :: a_in(:,:)
154 integer,
intent(in) :: turns
155 logical,
intent(out) :: a(:,:)
162 select case (modulo(turns, 4))
166 a(:,:) = transpose(a_in)
167 a(:,:) = a(n:1:-1, :)
169 a(:,:) = a_in(m:1:-1, n:1:-1)
171 a(:,:) = transpose(a_in(m:1:-1, :))
◆ rotate_array_real_2d()
| subroutine mom_array_transform::rotate_array::rotate_array_real_2d |
( |
real, dimension(:,:), intent(in) |
A_in, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:), intent(out) |
A |
|
) |
| |
|
private |
Rotate the elements of a 2d real array along first and second axes.
- Parameters
-
| [in] | a_in | Unrotated array |
| [in] | turns | Number of quarter turns |
| [out] | a | Rotated array |
Definition at line 75 of file MOM_array_transform.F90.
75 real,
intent(in) :: a_in(:,:)
76 integer,
intent(in) :: turns
77 real,
intent(out) :: a(:,:)
84 select case (modulo(turns, 4))
88 a(:,:) = transpose(a_in)
91 a(:,:) = a_in(m:1:-1, n:1:-1)
93 a(:,:) = transpose(a_in(m:1:-1, :))
◆ rotate_array_real_3d()
| subroutine mom_array_transform::rotate_array::rotate_array_real_3d |
( |
real, dimension(:,:,:), intent(in) |
A_in, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:,:), intent(out) |
A |
|
) |
| |
|
private |
Rotate the elements of a 3d real array along first and second axes.
- Parameters
-
| [in] | a_in | Unrotated array |
| [in] | turns | Number of quarter turns |
| [out] | a | Rotated array |
Definition at line 100 of file MOM_array_transform.F90.
100 real,
intent(in) :: a_in(:,:,:)
101 integer,
intent(in) :: turns
102 real,
intent(out) :: a(:,:,:)
106 do k = 1,
size(a_in, 3)
107 call rotate_array(a_in(:,:,k), turns, a(:,:,k))
◆ rotate_array_real_4d()
| subroutine mom_array_transform::rotate_array::rotate_array_real_4d |
( |
real, dimension(:,:,:,:), intent(in) |
A_in, |
|
|
integer, intent(in) |
turns, |
|
|
real, dimension(:,:,:,:), intent(out) |
A |
|
) |
| |
|
private |
Rotate the elements of a 4d real array along first and second axes.
- Parameters
-
| [in] | a_in | Unrotated array |
| [in] | turns | Number of quarter turns |
| [out] | a | Rotated array |
Definition at line 114 of file MOM_array_transform.F90.
114 real,
intent(in) :: a_in(:,:,:,:)
115 integer,
intent(in) :: turns
116 real,
intent(out) :: a(:,:,:,:)
120 do n = 1,
size(a_in, 4)
121 call rotate_array(a_in(:,:,:,n), turns, a(:,:,:,n))
The documentation for this interface was generated from the following file: