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/thermcell_main.F90

    r2193 r2311  
    2525      USE comgeomphy , ONLY:rlond,rlatd
    2626      USE indice_sol_mod
     27      USE print_control_mod, ONLY: lunout,prt_level
    2728      IMPLICIT NONE
    2829
     
    6667#include "YOETHF.h"
    6768#include "FCTTRE.h"
    68 #include "iniprint.h"
    6969#include "thermcell.h"
    7070
     
    565565      if (.not. (f0(1).ge.0.) ) then
    566566              abort_message = '.not. (f0(1).ge.0.)'
    567               CALL abort_gcm (modname,abort_message,1)
     567              CALL abort_physic (modname,abort_message,1)
    568568      endif
    569569
     
    695695      if (ierr==1) then
    696696           abort_message = 'thermcellV0_main: les thermiques vont trop haut '
    697            CALL abort_gcm (modname,abort_message,1)
     697           CALL abort_physic (modname,abort_message,1)
    698698      endif
    699699
     
    10971097
    10981098      subroutine test_ltherm(klon,klev,pplev,pplay,long,seuil,ztv,po,ztva,zqla,f_star,zw2,comment)
     1099      USE print_control_mod, ONLY: prt_level
    10991100      IMPLICIT NONE
    1100 #include "iniprint.h"
    11011101
    11021102      integer i, k, klon,klev
     
    11381138      subroutine thermcell_tke_transport(ngrid,nlay,ptimestep,fm0,entr0,  &
    11391139     &           rg,pplev,therm_tke_max)
     1140      USE print_control_mod, ONLY: prt_level
    11401141      implicit none
    11411142
    1142 #include "iniprint.h"
    11431143!=======================================================================
    11441144!
Note: See TracChangeset for help on using the changeset viewer.