/[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 27 by guez, Thu Mar 25 14:29:07 2010 UTC trunk/dyn3d/dteta1.f revision 88 by guez, Tue Mar 11 15:09:02 2014 UTC
# Line 1  Line 1 
1  !  module dteta1_m
 ! $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  
       use filtreg_m, only: filtreg  
2    
3        IMPLICIT NONE    IMPLICIT NONE
4    
5  c=======================================================================  contains
 c  
 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=======================================================================  
6    
7      SUBROUTINE dteta1(teta, pbaru, pbarv, dteta)
8    
9        ! From LMDZ4/libf/dyn3d/dteta1.F, version 1.1.1.1, 2004/05/19 12:53:06
10        ! Authors: P. Le Van, F. Forget
11    
12        REAL teta( ip1jmp1,llm ),pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)      ! Calcul du terme de convergence horizontale du flux d'enthalpie
13        REAL dteta( ip1jmp1,llm )      ! potentielle.
       INTEGER   l,ij  
14    
15        REAL hbyv( ip1jm,llm ), hbxu( ip1jmp1,llm )      USE dimens_m, ONLY: iim, llm
16        USE paramet_m, ONLY: iip1, iip2, ip1jm, ip1jmp1, jjp1
17        USE filtreg_m, ONLY: filtreg
18    
19  c      REAL, intent(in):: teta(ip1jmp1, llm)
20        REAL, intent(in):: pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
21        REAL, intent(out):: dteta(ip1jmp1, llm)
22    
23        DO 5 l = 1,llm      ! Local:
24        INTEGER l, ij
25        REAL hbyv(ip1jm, llm), hbxu(ip1jmp1, llm)
26    
27        DO 1  ij = iip2, ip1jm - 1      !----------------------------------------------------------------
       hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )  
    1  CONTINUE  
28    
29  c    .... correction pour  hbxu(iip1,j,l)  .....      DO l = 1, llm
30  c    ....   hbxu(iip1,j,l)= hbxu(1,j,l) ....         DO ij = iip2, ip1jm - 1
31              hbxu(ij, l) = pbaru(ij, l) * 0.5 * (teta(ij, l) + teta(ij + 1, l))
32           end DO
33    
34  CDIR$ IVDEP         DO ij = iip1+ iip1, ip1jm, iip1
35        DO 2 ij = iip1+ iip1, ip1jm, iip1            hbxu(ij, l) = hbxu(ij - iim, l)
36        hbxu( ij, l ) = hbxu( ij - iim, l )         end DO
    2  CONTINUE  
37    
38           DO ij = 1, ip1jm
39              hbyv(ij, l)= pbarv(ij, l) * 0.5 * (teta(ij, l) + teta(ij + iip1, l))
40           end DO
41        end DO
42    
43        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  
44    
45     5  CONTINUE      ! stockage dans dh de la convergence horizontale filtrée du flux
46        ! d'enthalpie potentielle
47        CALL filtreg(dteta, jjp1, llm, 2, 2, .true.)
48    
49      END SUBROUTINE dteta1
50    
51          CALL  convflu ( hbxu, hbyv, llm, dteta )  end module dteta1_m
   
   
 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.27  
changed lines
  Added in v.88

  ViewVC Help
Powered by ViewVC 1.1.21