|
MOM6
|
Rotate an array pair representing the components of a vector. Rotation is applied across the first and second axes of the array. This rotation should be applied when the fields satisfy vector transformation rules. For example, the u and v components of a velocity will map from one to the other for quarter turns, with a sign change in one component. A half turn will map elements onto themselves with sign changes in both components.
Definition at line 55 of file MOM_array_transform.F90.
Private functions | |
| subroutine | rotate_vector_real_2d (A_in, B_in, turns, A, B) |
| Rotate the elements of a 2d real vector along first and second axes. More... | |
| subroutine | rotate_vector_real_3d (A_in, B_in, turns, A, B) |
| Rotate the elements of a 3d real vector along first and second axes. More... | |
| subroutine | rotate_vector_real_4d (A_in, B_in, turns, A, B) |
| Rotate the elements of a 4d real vector along first and second axes. More... | |
Rotate an array pair representing the components of a vector. Rotation is applied across the first and second axes of the array. This rotation should be applied when the fields satisfy vector transformation rules. For example, the u and v components of a velocity will map from one to the other for quarter turns, with a sign change in one component. A half turn will map elements onto themselves with sign changes in both components.
Definition at line 55 of file MOM_array_transform.F90.
|
private |
Rotate the elements of a 2d real vector along first and second axes.
| [in] | a_in | First component of unrotated vector |
| [in] | b_in | Second component of unrotated vector |
| [in] | turns | Number of quarter turns |
| [out] | a | First component of rotated vector |
| [out] | b | Second component of unrotated vector |
Definition at line 230 of file MOM_array_transform.F90.
|
private |
Rotate the elements of a 3d real vector along first and second axes.
| [in] | a_in | First component of unrotated vector |
| [in] | b_in | Second component of unrotated vector |
| [in] | turns | Number of quarter turns |
| [out] | a | First component of rotated vector |
| [out] | b | Second component of unrotated vector |
Definition at line 248 of file MOM_array_transform.F90.
|
private |
Rotate the elements of a 4d real vector along first and second axes.
| [in] | a_in | First component of unrotated vector |
| [in] | b_in | Second component of unrotated vector |
| [in] | turns | Number of quarter turns |
| [out] | a | First component of rotated vector |
| [out] | b | Second component of unrotated vector |
Definition at line 264 of file MOM_array_transform.F90.