/[lmdze]/trunk/dyn3d/dteta1.f
ViewVC logotype

Diff of /trunk/dyn3d/dteta1.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/libf/dyn3d/dteta1.f revision 3 by guez, Wed Feb 27 13:16:39 2008 UTC trunk/dyn3d/dteta1.f revision 82 by guez, Wed Mar 5 14:57:53 2014 UTC
# Line 1  Line 1 
1  !  SUBROUTINE dteta1(teta, pbaru, pbarv, dteta)
 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/dteta1.F,v 1.1.1.1 2004/05/19 12:53:06 lmdzadmin Exp $  
 !  
       SUBROUTINE dteta1 ( teta, pbaru, pbarv, dteta)  
       use dimens_m  
       use paramet_m  
       use logic  
       IMPLICIT NONE  
2    
3  c=======================================================================    ! From LMDZ4/libf/dyn3d/dteta1.F, version 1.1.1.1 2004/05/19 12:53:06
4  c    ! Auteurs : P. Le Van, F. Forget
 c   Auteur:  P. Le Van  
 c   -------  
 c Modif F.Forget 03/94 (on retire q et dq  pour construire dteta1)  
 c  
 c   ********************************************************************  
 c   ... calcul du terme de convergence horizontale du flux d'enthalpie  
 c        potentielle   ......  
 c   ********************************************************************  
 c  .. teta,pbaru et pbarv sont des arguments d'entree  pour le s-pg ....  
 c     dteta               sont des arguments de sortie pour le s-pg ....  
 c  
 c=======================================================================  
5    
6      ! Calcul du terme de convergence horizontale du flux d'enthalpie
7      ! potentielle.
8    
9      ! dteta est un argument de sortie pour le s-pg
10    
11        REAL teta( ip1jmp1,llm ),pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)    use dimens_m
12        REAL dteta( ip1jmp1,llm )    use paramet_m
13        INTEGER   l,ij    use conf_gcm_m
14      use filtreg_m, only: filtreg
15    
16        REAL hbyv( ip1jm,llm ), hbxu( ip1jmp1,llm )    IMPLICIT NONE
17    
18  c    REAL, intent(in):: teta(ip1jmp1, llm), pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
19      REAL dteta(ip1jmp1, llm)
20      INTEGER l, ij
21    
22        DO 5 l = 1,llm    REAL hbyv(ip1jm, llm), hbxu(ip1jmp1, llm)
23    
24        DO 1  ij = iip2, ip1jm - 1    !----------------------------------------------------------------
       hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )  
    1  CONTINUE  
25    
26  c    .... correction pour  hbxu(iip1,j,l)  .....    DO l = 1, llm
27  c    ....   hbxu(iip1,j,l)= hbxu(1,j,l) ....       DO ij = iip2, ip1jm - 1
28            hbxu(ij, l) = pbaru(ij, l) * 0.5 * (teta(ij, l) + teta(ij + 1, l))
29         end DO
30    
31  CDIR$ IVDEP       DO ij = iip1+ iip1, ip1jm, iip1
32        DO 2 ij = iip1+ iip1, ip1jm, iip1          hbxu(ij, l) = hbxu(ij - iim, l)
33        hbxu( ij, l ) = hbxu( ij - iim, l )       end DO
    2  CONTINUE  
34    
35         DO ij = 1, ip1jm
36            hbyv(ij, l)= pbarv(ij, l) * 0.5 * (teta(ij, l) + teta(ij + iip1, l))
37         end DO
38      end DO
39    
40        DO 3 ij = 1,ip1jm    CALL convflu(hbxu, hbyv, llm, dteta)
       hbyv(ij,l)= pbarv(ij, l)* 0.5 * ( teta(ij, l)+ teta(ij +iip1,l) )  
    3  CONTINUE  
41    
42     5  CONTINUE    ! stockage dans dh de la convergence horizont. filtree' du flux
43      ! d'enthalpie potentielle
44      CALL filtreg(dteta, jjp1, llm, 2, 2, .true.)
45    
46    END SUBROUTINE dteta1
         CALL  convflu ( hbxu, hbyv, llm, dteta )  
   
   
 c    stockage dans  dh de la convergence horizont. filtree' du  flux  
 c                  ....                           ...........  
 c           d'enthalpie potentielle .  
   
       CALL filtreg( dteta, jjp1, llm, 2, 2, .true., 1)  
   
 c  
       RETURN  
       END  

Legend:
Removed from v.3  
changed lines
  Added in v.82

  ViewVC Help
Powered by ViewVC 1.1.21