Changeset 1508 for trunk/LMDZ.COMMON/libf/dyn3d_common/covcont.F90
- Timestamp:
- Jan 15, 2016, 8:27:16 AM (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/covcont.F90
r1506 r1508 1 SUBROUTINE covcont (klevel,ucov, vcov, ucont, vcont ) 1 2 ! 2 ! $Header$ 3 ! 4 SUBROUTINE covcont (klevel,ucov, vcov, ucont, vcont ) 5 IMPLICIT NONE 3 !------------------------------------------------------------------------------- 4 ! Author: P. Le Van 5 !------------------------------------------------------------------------------- 6 ! Purpose: Compute contravariant components from covariant components. 7 !------------------------------------------------------------------------------- 8 IMPLICIT NONE 9 include "dimensions.h" 10 include "paramet.h" 11 include "comgeom.h" 12 !=============================================================================== 13 ! Arguments: 14 INTEGER, INTENT(IN) :: klevel !--- VERTICAL LEVELS NUMBER 15 REAL, INTENT(IN) :: ucov ( ip1jmp1,klevel ) !--- U COVARIANT WIND 16 REAL, INTENT(IN) :: vcov ( ip1jm ,klevel ) !--- V COVARIANT WIND 17 REAL, INTENT(OUT) :: ucont( ip1jmp1,klevel ) !--- U CONTRAVAR WIND 18 REAL, INTENT(OUT) :: vcont( ip1jm ,klevel ) !--- V CONTRAVAR WIND 19 !=============================================================================== 20 ! Local variables: 21 INTEGER :: l 22 !=============================================================================== 23 DO l=1,klevel 24 ucont(iip2:ip1jm,l)=ucov(iip2:ip1jm,l) * unscu2(iip2:ip1jm) 25 vcont( 1:ip1jm,l)=vcov( 1:ip1jm,l) * unscv2( 1:ip1jm) 26 END DO 6 27 7 c======================================================================= 8 c 9 c Auteur: P. Le Van 10 c ------- 11 c 12 c Objet: 13 c ------ 14 c 15 c ********************************************************************* 16 c calcul des compos. contravariantes a partir des comp.covariantes 17 c ******************************************************************** 18 c 19 c======================================================================= 28 END SUBROUTINE covcont 20 29 21 #include "dimensions.h"22 #include "paramet.h"23 #include "comgeom.h"24 25 INTEGER klevel26 REAL ucov( ip1jmp1,klevel ), vcov( ip1jm,klevel )27 REAL ucont( ip1jmp1,klevel ), vcont( ip1jm,klevel )28 INTEGER l,ij29 30 31 DO 10 l = 1,klevel32 33 DO 2 ij = iip2, ip1jm34 ucont( ij,l ) = ucov( ij,l ) * unscu2( ij )35 2 CONTINUE36 37 DO 4 ij = 1,ip1jm38 vcont( ij,l ) = vcov( ij,l ) * unscv2( ij )39 4 CONTINUE40 41 10 CONTINUE42 RETURN43 END
Note: See TracChangeset
for help on using the changeset viewer.