SUBROUTINE covcont (klevel,ucov, vcov, ucont, vcont ) ! !------------------------------------------------------------------------------- ! Author: P. Le Van !------------------------------------------------------------------------------- ! Purpose: Compute contravariant components from covariant components. !------------------------------------------------------------------------------- USE comgeom_mod_h USE dimensions_mod, ONLY: iim, jjm, llm, ndm USE paramet_mod_h IMPLICIT NONE !=============================================================================== ! Arguments: INTEGER, INTENT(IN) :: klevel !--- VERTICAL LEVELS NUMBER REAL, INTENT(IN) :: ucov ( ip1jmp1,klevel ) !--- U COVARIANT WIND REAL, INTENT(IN) :: vcov ( ip1jm ,klevel ) !--- V COVARIANT WIND REAL, INTENT(OUT) :: ucont( ip1jmp1,klevel ) !--- U CONTRAVAR WIND REAL, INTENT(OUT) :: vcont( ip1jm ,klevel ) !--- V CONTRAVAR WIND !=============================================================================== ! Local variables: INTEGER :: l !=============================================================================== DO l=1,klevel ucont(iip2:ip1jm,l)=ucov(iip2:ip1jm,l) * unscu2(iip2:ip1jm) vcont( 1:ip1jm,l)=vcov( 1:ip1jm,l) * unscv2( 1:ip1jm) END DO END SUBROUTINE covcont