Ignore:
Timestamp:
Jun 25, 2015, 9:45:24 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Further modifications to enforce physics/dynamics separation:

  • moved iniprint.h and misc_mod back to dyn3d_common, as these should only be used by dynamics.
  • created print_control_mod in the physics to store flags prt_level, lunout, debug to be local to physics (should be used rather than iniprint.h)
  • created abort_physic.F90 , which does the same job as abort_gcm() did, but should be used instead when in physics.
  • reactivated inifis (turned it into a module, inifis_mod.F90) to initialize physical constants and print_control_mod flags.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/thermcellV0_main.F90

    r1978 r2311  
    1414      USE dimphy
    1515      USE comgeomphy , ONLY:rlond,rlatd
     16      USE print_control_mod, ONLY: prt_level,lunout
    1617      IMPLICIT NONE
    1718
     
    4546      include "YOETHF.h"
    4647      include "FCTTRE.h"
    47       include "iniprint.h"
    4848
    4949!   arguments:
     
    465465      if (.not. (f0(1).ge.0.) ) then
    466466        abort_message = 'Dans thermcell_main f0(1).lt.0 '
    467         CALL abort_gcm (modname,abort_message,1)
     467        CALL abort_physic (modname,abort_message,1)
    468468      endif
    469469
     
    591591           zcon2(ig)=zlay(ig,nlay)-(pcon(ig)-pplay(ig,nlay))/(RG*rho(ig,nlay))/100.
    592592           abort_message = 'thermcellV0_main: les thermiques vont trop haut '
    593            CALL abort_gcm (modname,abort_message,1)
     593           CALL abort_physic (modname,abort_message,1)
    594594        endif
    595595      enddo
     
    790790
    791791      subroutine testV0_ltherm(klon,klev,pplev,pplay,long,seuil,ztv,po,ztva,zqla,f_star,zw2,comment)
     792      USE print_control_mod, ONLY: prt_level
    792793      IMPLICIT NONE
    793       include "iniprint.h"
    794794
    795795      integer i, k, klon,klev
     
    833833!thermcell_closure: fermeture, determination de f
    834834!-------------------------------------------------------------------------
     835      USE print_control_mod, ONLY: prt_level,lunout
    835836      IMPLICIT NONE
    836837
    837       include "iniprint.h"
    838838      include "thermcell.h"
    839839      INTEGER ngrid,nlay
     
    880880                print*,'wmax_sec',wmax_sec(ig)
    881881                abort_message = 'zdenom<1.e-14'
    882                 CALL abort_gcm (modname,abort_message,1)
     882                CALL abort_physic (modname,abort_message,1)
    883883             endif
    884884             if ((zmax_sec(ig).gt.1.e-10).and.(iflag_thermals_ed.eq.0)) then
     
    913913!--------------------------------------------------------------------------
    914914
     915      USE print_control_mod, ONLY: prt_level
    915916      IMPLICIT NONE
    916917
     
    918919      include "YOETHF.h"
    919920      include "FCTTRE.h"
    920       include "iniprint.h"
    921921      include "thermcell.h"
    922922
     
    17111711!thermcell_dry: calcul de zmax et wmax du thermique sec
    17121712!--------------------------------------------------------------------------
     1713       USE print_control_mod, ONLY: prt_level
    17131714       IMPLICIT NONE
    17141715      include "YOMCST.h"       
    1715       include "iniprint.h"
    17161716       INTEGER l,ig
    17171717
     
    19231923!thermcell_init: calcul du profil d alimentation du thermique
    19241924!----------------------------------------------------------------------
     1925      USE print_control_mod, ONLY: prt_level
    19251926      IMPLICIT NONE
    1926       include "iniprint.h"
    19271927      include "thermcell.h"
    19281928
Note: See TracChangeset for help on using the changeset viewer.