Ignore:
Timestamp:
Jul 25, 2016, 11:31:56 AM (8 years ago)
Author:
Ehouarn Millour
Message:

Cleanup in the dynamics: turn logic.h into module logic_mod.F90
EM

Location:
LMDZ5/trunk/libf/dyn3d
Files:
12 edited
1 moved

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3d/advect.F

    r2600 r2603  
    55
    66      USE comconst_mod, ONLY: daysec
     7      USE logic_mod, ONLY: conser
    78     
    89      IMPLICIT NONE
     
    2930      include "paramet.h"
    3031      include "comgeom.h"
    31       include "logic.h"
    3232      include "ener.h"
    3333
  • LMDZ5/trunk/libf/dyn3d/advtrac.F90

    r2601 r2603  
    1919  include "comdissip.h"
    2020  include "comgeom2.h"
    21   include "logic.h"
    2221  include "ener.h"
    2322  include "description.h"
  • LMDZ5/trunk/libf/dyn3d/conf_gcm.F90

    r2601 r2603  
    1616                          iflag_top_bound, mode_top_bound, tau_top_bound, &
    1717                          ngroup
     18  USE logic_mod, ONLY: fxyhypb, iflag_phys, ok_etat0, ok_gradsfile, &
     19                       ok_guide, ok_limit, ok_strato, purmats, read_start, &
     20                       ysinus
    1821  USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy, &
    1922                       alphax,alphay,taux,tauy
     
    3740  include "dimensions.h"
    3841  include "paramet.h"
    39   include "logic.h"
    4042  include "comdissnew.h"
    4143  include "iniprint.h"
  • LMDZ5/trunk/libf/dyn3d/dteta1.F

    r1907 r2603  
    2121
    2222
    23 #include "dimensions.h"
    24 #include "paramet.h"
    25 #include "logic.h"
     23      include "dimensions.h"
     24      include "paramet.h"
    2625
    2726      REAL teta( ip1jmp1,llm ),pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)
  • LMDZ5/trunk/libf/dyn3d/dynetat0.f90

    r2601 r2603  
    1313  USE comvert_mod, ONLY: pa,preff
    1414  USE comconst_mod, ONLY: cpp, daysec, dtvr, g, im, jm, kappa, lllm, omeg, rad
     15  USE logic_mod, ONLY: fxyhypb, ysinus
    1516  USE serre_mod, ONLY: clon, clat, grossismx, grossismy
    1617  USE temps_mod, ONLY: annee_ref, day_ini, day_ref, itau_dyn, start_time
     
    2223  include "ener.h"
    2324  include "description.h"
    24   include "logic.h"
    2525  include "iniprint.h"
    2626!===============================================================================
  • LMDZ5/trunk/libf/dyn3d/dynredem.F90

    r2601 r2603  
    1414                              nivsig,nivsigs
    1515  USE comconst_mod, ONLY: cpp, daysec, dtvr, g, kappa, omeg, rad
     16  USE logic_mod, ONLY: fxyhypb, ysinus
    1617  USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy, &
    1718                              taux,tauy
     
    2324  include "comgeom2.h"
    2425  include "ener.h"
    25   include "logic.h"
    2626  include "description.h"
    2727  include "iniprint.h"
  • LMDZ5/trunk/libf/dyn3d/gcm.F90

    r2601 r2603  
    2626                     itau_dyn,itau_phy,day_ini,jD_ref,jH_ref,day_end
    2727  USE comconst_mod, ONLY: cpp, daysec, dtphys, dtvr, g, r, rad
     28  USE logic_mod, ONLY: ecripar, iflag_phys, read_start
    2829
    2930!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    7273  include "comdissnew.h"
    7374  include "comgeom.h"
    74   include "logic.h"
    7575  include "ener.h"
    7676  include "description.h"
  • LMDZ5/trunk/libf/dyn3d/iniacademic.F90

    r2601 r2603  
    1717  use exner_milieu_m, only: exner_milieu
    1818  USE comconst_mod, ONLY: cpp, kappa, g, daysec, dtvr, pi, im, jm
     19  USE logic_mod, ONLY: iflag_phys, read_start
    1920  USE comvert_mod, ONLY: ap, bp, preff, presnivs, pressure_exner
    2021  USE temps_mod, ONLY: annee_ref, day_ini, day_ref
     
    3536  include "ener.h"
    3637  include "iniprint.h"
    37   include "logic.h"
    3838
    3939  !   Arguments:
  • LMDZ5/trunk/libf/dyn3d/integrd.F

    r2601 r2603  
    99      use control_mod, only : planet_type
    1010      use comconst_mod, only: pi
     11      USE logic_mod, ONLY: leapf
    1112      use comvert_mod, only: ap, bp
    1213      USE temps_mod, ONLY: dt
     
    3334      include "paramet.h"
    3435      include "comgeom.h"
    35       include "logic.h"
    3636      include "iniprint.h"
    3737
  • LMDZ5/trunk/libf/dyn3d/leapfrog.F

    r2601 r2603  
    2222      USE comvert_mod, ONLY: ap,bp,pressure_exner,presnivs
    2323      USE comconst_mod, ONLY: cpp, dtphys, dtvr, pi, ihf
     24      USE logic_mod, ONLY: iflag_phys,ok_guide,forward,leapf,apphys,
     25     &                     statcl,conser,apdiss,purmats,ok_strato
    2426      USE temps_mod, ONLY: jD_ref,jH_ref,itaufin,day_ini,day_ref,
    2527     &                        start_time,dt
     
    6264      include "comdissnew.h"
    6365      include "comgeom.h"
    64       include "logic.h"
    6566      include "ener.h"
    6667      include "description.h"
  • LMDZ5/trunk/libf/dyn3d/logic_mod.F90

    r2600 r2603  
    22! $Id$
    33!
    4 !
    5 ! NB: keep items of different kinds in seperate common blocs to avoid
    6 !     "misaligned commons" issues
    7 !-----------------------------------------------------------------------
    8 ! INCLUDE 'logic.h'
     4MODULE logic_mod
    95
    10       COMMON/logicl/ purmats,forward,leapf,apphys,                      &
    11      &  statcl,conser,apdiss,apdelq,saison,ecripar,fxyhypb,ysinus       &
    12      &  ,read_start,ok_guide,ok_strato,ok_gradsfile                     &
    13      &  ,ok_limit,ok_etat0,hybrid
     6IMPLICIT NONE
    147
    15       COMMON/logici/ iflag_phys,iflag_trac
    16      
    17       LOGICAL purmats,forward,leapf,apphys,statcl,conser,               &
    18      & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus                      &
    19      &  ,read_start,ok_guide,ok_strato,ok_gradsfile                     &
    20      &  ,ok_limit,ok_etat0
    21      
    22       logical hybrid ! vertical coordinate is hybrid if true (sigma otherwise)
    23                      ! (only used if disvert_type==2)
     8  LOGICAL purmats ! true if time stepping is purely Matsuno scheme
     9                  ! false implies Matsuno-Leapfrog time stepping scheme
     10  LOGICAL forward ! true if during forward phase of Matsuno step
     11  LOGICAL leapf ! true if during a leapfrog time stepping step
     12  LOGICAL apphys ! true if during a time step when physics will be called
     13  LOGICAL statcl
     14  LOGICAL conser
     15  LOGICAL apdiss ! true if during a time step when dissipation will be called
     16  LOGICAL apdelq
     17  LOGICAL saison
     18  LOGICAL ecripar
     19  LOGICAL fxyhypb ! true if using hyperbolic function discretization
     20                  ! for latitudinal grid
     21  LOGICAL ysinus ! true if using sine function discretiation
     22                 ! for latitudinal grid
     23  LOGICAL read_start ! true if reading a start.nc file to initialize fields
     24  LOGICAL ok_guide ! true if nudging
     25  LOGICAL ok_strato
     26  LOGICAL ok_gradsfile
     27  LOGICAL ok_limit
     28  LOGICAL ok_etat0
     29  LOGICAL hybrid ! vertical coordinate is hybrid if true (sigma otherwise)
     30                 ! (only used if disvert_type==2)
     31  INTEGER iflag_phys ! type of physics to call: 0 none, 1: phy*** package,
     32                     ! 2: Held & Suarez, 101-200: aquaplanets & terraplanets
     33  INTEGER iflag_trac
    2434
    25       integer iflag_phys,iflag_trac
    26 !-----------------------------------------------------------------------
     35END MODULE logic_mod
  • LMDZ5/trunk/libf/dyn3d/vlsplt.F

    r2600 r2603  
    2323      include "dimensions.h"
    2424      include "paramet.h"
    25       include "logic.h"
    2625
    2726c
     
    155154      include "dimensions.h"
    156155      include "paramet.h"
    157       include "logic.h"
    158156      include "iniprint.h"
    159157c
     
    529527      include "dimensions.h"
    530528      include "paramet.h"
    531       include "logic.h"
    532529      include "comgeom.h"
    533530c
     
    890887      include "dimensions.h"
    891888      include "paramet.h"
    892       include "logic.h"
    893889c
    894890c
  • LMDZ5/trunk/libf/dyn3d/vlspltqs.F

    r2600 r2603  
    3030      include "dimensions.h"
    3131      include "paramet.h"
    32       include "logic.h"
    3332
    3433c
     
    195194      include "dimensions.h"
    196195      include "paramet.h"
    197       include "logic.h"
    198196c
    199197c
     
    565563      include "dimensions.h"
    566564      include "paramet.h"
    567       include "logic.h"
    568565      include "comgeom.h"
    569566c
Note: See TracChangeset for help on using the changeset viewer.