Ignore:
Timestamp:
Oct 30, 2024, 2:17:34 PM (5 weeks ago)
Author:
abarral
Message:

Turn gradsdef.h coefils.h into a module

Location:
LMDZ6/trunk/libf/filtrez
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/filtrez/coefils_mod_h.f90

    r5296 r5297  
    1 !
    2 ! $Id $
    3 !
    4       COMMON/coefils/jfiltnu,jfiltsu,jfiltnv,jfiltsv,sddu(iim),sddv(iim)&
    5      & ,unsddu(iim),unsddv(iim),coefilu(iim,jjm),coefilv(iim,jjm),      &
    6      & modfrstu(jjm),modfrstv(jjm),eignfnu(iim,iim),eignfnv(iim,iim)    &
    7      & ,coefilu2(iim,jjm),coefilv2(iim,jjm)
    8 !c
    9       INTEGER jfiltnu ! index of the last lat line filtered in NH (U grid)
    10       INTEGER jfiltsu ! index of the first lat line filtered in SH (U grid)
    11       INTEGER jfiltnv ! index of the last lat line filtered in NH (V grid)
    12       INTEGER jfiltsv ! index of the first lat line filtered in SH (V grid)
    13       INTEGER modfrstu ! number of retained (ie: unfiltered) modes on U grid
    14       INTEGER modfrstv ! number of retained (ie: unfiltered) modes on V grid
    15       REAL    sddu,sddv,unsddu,unsddv,coefilu,coefilv,eignfnu,eignfnv
    16       REAL    coefilu2,coefilv2
     1! replacement for coefils.h
     2MODULE coefils_mod_h
     3  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
     4  IMPLICIT NONE; PRIVATE
     5
     6  PUBLIC jfiltnu, jfiltsu, jfiltnv, jfiltsv, sddu, sddv, unsddu, unsddv, coefilu, coefilv, &
     7          modfrstu, modfrstv, eignfnu, eignfnv, coefilu2, coefilv2
     8
     9  INTEGER :: jfiltnu ! index of the last lat line filtered in NH (U grid)
     10  INTEGER :: jfiltsu ! index of the first lat line filtered in SH (U grid)
     11  INTEGER :: jfiltnv ! index of the last lat line filtered in NH (V grid)
     12  INTEGER :: jfiltsv ! index of the first lat line filtered in SH (V grid)
     13  INTEGER, DIMENSION(jjm) :: modfrstu ! number of retained (ie: unfiltered) modes on U grid
     14  INTEGER, DIMENSION(jjm) :: modfrstv ! number of retained (ie: unfiltered) modes on V grid
     15  REAL, DIMENSION(iim) :: sddu, sddv, unsddu, unsddv
     16  REAL, DIMENSION(iim, jjm) :: coefilu, coefilv, coefilu2, coefilv2
     17  REAL, DIMENSION(iim, iim) :: eignfnu, eignfnv
     18END MODULE coefils_mod_h
  • LMDZ6/trunk/libf/filtrez/filtreg.F90

    r5285 r5297  
    88
    99  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
    10 USE paramet_mod_h
     10  USE paramet_mod_h
     11  USE coefils_mod_h
    1112IMPLICIT NONE
    1213  !=======================================================================
     
    4748  !            ifiltre =-2     filtre inverse
    4849  !
    49   !
    50 
    51 
    52   INCLUDE "coefils.h"
    5350
    5451  INTEGER :: nlat,nbniv,ifiltre,iter
  • LMDZ6/trunk/libf/filtrez/filtreg_mod.F90

    r5285 r5297  
    1515#endif
    1616  USE comgeom_mod_h
    17     USE serre_mod, ONLY: alphax
     17  USE serre_mod, ONLY: alphax
    1818  USE logic_mod, ONLY: fxyhypb, ysinus
    1919  USE comconst_mod, ONLY: maxlatfilter
    2020
    21     !    ... H. Upadhyaya, O.Sharma   ...
    22     !
    23     USE dimensions_mod, ONLY: iim, jjm, llm, ndm
    24 USE paramet_mod_h
     21  !    ... H. Upadhyaya, O.Sharma   ...
     22  !
     23  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
     24  USE paramet_mod_h
     25  USE coefils_mod_h
    2526IMPLICIT NONE
    2627    !
     
    2829
    2930    !     Correction  le 28/10/97    P. Le Van .
    30     !  -------------------------------------------------------------------
    31 
    32 
    33     !  -------------------------------------------------------------------
    34     include "coefils.h"
     31
    3532
    3633    REAL  dlonu(iim),dlatu(jjm)
  • LMDZ6/trunk/libf/filtrez/inifgn.F90

    r5285 r5297  
    88  USE comgeom_mod_h
    99  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
    10 USE paramet_mod_h
     10  USE paramet_mod_h
     11  USE coefils_mod_h
    1112IMPLICIT NONE
    12   !
    1313
    14 
    15 
    16   !
    1714  REAL :: vec(iim,iim),vec1(iim,iim)
    1815  REAL :: dlonu(iim),dlonv(iim)
     
    2017  REAL :: pi
    2118  INTEGER :: i,j,k,imm1,nrot
    22   !
    23   include "coefils.h"
    24   !
    2519  EXTERNAL SSUM, acc,eigen,jacobi
    2620  REAL :: SSUM
Note: See TracChangeset for help on using the changeset viewer.