Ignore:
Timestamp:
Apr 15, 2015, 6:49:07 PM (10 years ago)
Author:
ymipsl
Message:

remove all dynamic dependency in LMDZ physics except for the include "dimensions.h"

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/physiq.F90

    r3809 r3814  
    1717  USE write_field_phy
    1818  USE dimphy
    19   USE infotrac
     19  USE infotrac_phy
    2020  USE mod_grid_phy_lmdz
    2121  USE mod_phys_lmdz_para
     
    4646  use radlwsw_m, only: radlwsw
    4747  use phyaqua_mod, only: zenang_an
    48   USE control_mod
     48  USE control_phy_mod
     49  USE temps_phy_mod
    4950#ifdef REPROBUS
    5051  USE CHEM_REP, ONLY : Init_chem_rep_xjour
     
    114115  include "dimsoil.h"
    115116  include "clesphys.h"
    116   include "temps.h"
     117!  include "temps.h"
    117118  include "iniprint.h"
    118119  include "thermcell.h"
     
    516517  EXTERNAL suphel    ! initialiser certaines constantes
    517518  EXTERNAL transp    ! transport total de l'eau et de l'energie
    518   EXTERNAL ecribina  ! ecrire le fichier binaire global
    519   EXTERNAL ecribins  ! ecrire le fichier binaire global
    520   EXTERNAL ecrirega  ! ecrire le fichier binaire regional
    521   EXTERNAL ecriregs  ! ecrire le fichier binaire regional
    522519  !IM
    523520  EXTERNAL haut2bas  !variables de haut en bas
     
    10311028     IF (iflag_con.EQ.2.AND.iflag_cld_th.GT.-1) THEN
    10321029        abort_message = 'Tiedtke needs iflag_cld_th=-2 or -1'
    1033         CALL abort_gcm (modname,abort_message,1)
     1030        CALL abort_physic (modname,abort_message,1)
    10341031     ENDIF
    10351032     !
     
    10901087             pdtphys
    10911088        abort_message='Pas physique n est pas correct '
    1092         !           call abort_gcm(modname,abort_message,1)
     1089
    10931090        dtime=pdtphys
    10941091     ENDIF
     
    10971094             klon
    10981095        abort_message='nlon et klon ne sont pas coherents'
    1099         call abort_gcm(modname,abort_message,1)
     1096        call abort_physic(modname,abort_message,1)
    11001097     ENDIF
    11011098     IF (nlev .NE. klev) THEN
     
    11031100             klev
    11041101        abort_message='nlev et klev ne sont pas coherents'
    1105         call abort_gcm(modname,abort_message,1)
     1102        call abort_physic(modname,abort_message,1)
    11061103     ENDIF
    11071104     !
     
    11101107        WRITE(lunout,*)"Au minimum 4 appels par jour si cycle diurne"
    11111108        abort_message='Nbre d appels au rayonnement insuffisant'
    1112         call abort_gcm(modname,abort_message,1)
     1109        call abort_physic(modname,abort_message,1)
    11131110     ENDIF
    11141111     WRITE(lunout,*)"Clef pour la convection, iflag_con=", iflag_con
     
    11651162           IF(nCFMIP.GT.npCFMIP) THEN
    11661163              print*,'nCFMIP > npCFMIP : augmenter npCFMIP et recompiler'
    1167               call abort_gcm("physiq", "", 1)
     1164              call abort_physic("physiq", "", 1)
    11681165           else
    11691166              print*,'physiq npCFMIP=',npCFMIP,'nCFMIP=',nCFMIP
     
    16641661        IF (read_climoz/=-1) THEN
    16651662           abort_message ='read_climoz=-1 is recommended when solarlong0=1000.'
    1666            CALL abort_gcm (modname,abort_message,1)
     1663           CALL abort_physic (modname,abort_message,1)
    16671664        ENDIF
    16681665     ELSE
     
    20472044  IF (iflag_con.EQ.1) THEN
    20482045     abort_message ='reactiver le call conlmd dans physiq.F'
    2049      CALL abort_gcm (modname,abort_message,1)
     2046     CALL abort_physic (modname,abort_message,1)
    20502047     !     CALL conlmd (dtime, paprs, pplay, t_seri, q_seri, conv_q,
    20512048     !    .             d_t_con, d_q_con,
     
    21852182           else
    21862183       abort_message ='Ne pas passer la car www non calcule'
    2187        CALL abort_gcm (modname,abort_message,1)
     2184       CALL abort_physic (modname,abort_message,1)
    21882185
    21892186!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    23512348  ELSE
    23522349     WRITE(lunout,*) "iflag_con non-prevu", iflag_con
    2353      call abort_gcm("physiq", "", 1)
     2350     call abort_physic("physiq", "", 1)
    23542351  ENDIF
    23552352
     
    30173014           IF (aerosol_couple .AND. config_inca == 'aero' ) THEN
    30183015            abort_message='config_inca=aero et rrtm=1 impossible'
    3019             call abort_gcm(modname,abort_message,1)
     3016            call abort_physic(modname,abort_message,1)
    30203017           ELSE
    30213018!
     
    30323029
    30333030              abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    3034               call abort_gcm(modname,abort_message,1)
     3031              call abort_physic(modname,abort_message,1)
    30353032#endif
    30363033              !
     
    30653062
    30663063           abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    3067            call abort_gcm(modname,abort_message,1)
     3064           call abort_physic(modname,abort_message,1)
    30683065#endif
    30693066        ENDIF
     
    32943291        IF (ok_cdnc.AND.NRADLP.NE.3) THEN
    32953292           abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc'
    3296            call abort_gcm(modname,abort_message,1)
     3293           call abort_physic(modname,abort_message,1)
    32973294        endif
    32983295#else
    32993296
    33003297        abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    3301         call abort_gcm(modname,abort_message,1)
     3298        call abort_physic(modname,abort_message,1)
    33023299#endif
    33033300     ENDIF
     
    41744171    IF (abortphy==1) THEN
    41754172       abort_message ='Plantage hgardfou'
    4176        CALL abort_gcm (modname,abort_message,1)
     4173       CALL abort_physic (modname,abort_message,1)
    41774174    ENDIF
    41784175
     
    41924189  !        "stats")          only possible in 3D runs !
    41934190
    4194 
     4191#ifdef YM_TO_DO_LATER
    41954192  IF (callstats) THEN
    41964193
     
    42374234
    42384235  ENDIF !if callstats
     4236#endif
    42394237
    42404238  IF (lafin) THEN
Note: See TracChangeset for help on using the changeset viewer.