[5106] | 1 | SUBROUTINE covcont(klevel,ucov, vcov, ucont, vcont ) |
---|
[5136] | 2 | USE lmdz_comgeom |
---|
[5099] | 3 | |
---|
[2293] | 4 | !------------------------------------------------------------------------------- |
---|
| 5 | ! Author: P. Le Van |
---|
| 6 | !------------------------------------------------------------------------------- |
---|
| 7 | ! Purpose: Compute contravariant components from covariant components. |
---|
| 8 | !------------------------------------------------------------------------------- |
---|
[5159] | 9 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
| 10 | USE lmdz_paramet |
---|
[2293] | 11 | IMPLICIT NONE |
---|
[5159] | 12 | |
---|
| 13 | |
---|
[2293] | 14 | !=============================================================================== |
---|
| 15 | ! Arguments: |
---|
| 16 | INTEGER, INTENT(IN) :: klevel !--- VERTICAL LEVELS NUMBER |
---|
| 17 | REAL, INTENT(IN) :: ucov ( ip1jmp1,klevel ) !--- U COVARIANT WIND |
---|
| 18 | REAL, INTENT(IN) :: vcov ( ip1jm ,klevel ) !--- V COVARIANT WIND |
---|
| 19 | REAL, INTENT(OUT) :: ucont( ip1jmp1,klevel ) !--- U CONTRAVAR WIND |
---|
| 20 | REAL, INTENT(OUT) :: vcont( ip1jm ,klevel ) !--- V CONTRAVAR WIND |
---|
| 21 | !=============================================================================== |
---|
| 22 | ! Local variables: |
---|
| 23 | INTEGER :: l |
---|
| 24 | !=============================================================================== |
---|
| 25 | DO l=1,klevel |
---|
| 26 | ucont(iip2:ip1jm,l)=ucov(iip2:ip1jm,l) * unscu2(iip2:ip1jm) |
---|
| 27 | vcont( 1:ip1jm,l)=vcov( 1:ip1jm,l) * unscv2( 1:ip1jm) |
---|
| 28 | END DO |
---|
| 29 | |
---|
| 30 | END SUBROUTINE covcont |
---|
| 31 | |
---|