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/cosp/cosp_output_write_mod.F90

    r2297 r2311  
    2222    USE ioipsl
    2323    USE control_mod
     24    USE print_control_mod, ONLY: lunout,prt_level
    2425
    2526#ifdef CPP_XIOS
     
    4546
    4647  include "temps.h"
    47   include "iniprint.h"
    4848
    4949  Nlevout = vgrid%Nlvgrid
     
    268268    use iophy
    269269    USE mod_phys_lmdz_para
     270    USE print_control_mod, ONLY: lunout,prt_level
    270271#ifdef CPP_XIOS
    271272  USE wxios
     
    277278    INCLUDE "temps.h"
    278279    INCLUDE "clesphys.h"
    279     include "iniprint.h"
    280280
    281281    INTEGER                          :: iff
     
    332332    use iophy
    333333    USE mod_phys_lmdz_para
     334    USE print_control_mod, ONLY: lunout,prt_level
    334335
    335336#ifdef CPP_XIOS
     
    343344    INCLUDE "temps.h"
    344345    INCLUDE "clesphys.h"
    345     include "iniprint.h"
    346346
    347347    INTEGER                        :: iff, klevs
     
    428428  USE ioipsl
    429429  use iophy
     430  USE print_control_mod, ONLY: lunout,prt_level
    430431
    431432#ifdef CPP_XIOS
     
    435436  IMPLICIT NONE
    436437  INCLUDE 'dimensions.h'
    437   INCLUDE 'iniprint.h'
    438438  INCLUDE 'clesphys.h'
    439439
     
    467467    !Et sinon on.... écrit
    468468    IF (SIZE(field)/=klon) &
    469   CALL abort_gcm('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1)
     469  CALL abort_physic('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1)
    470470
    471471    CALL Gather_omp(field,buffer_omp)
     
    517517  USE ioipsl
    518518  use iophy
     519  USE print_control_mod, ONLY: lunout,prt_level
    519520
    520521#ifdef CPP_XIOS
     
    525526  IMPLICIT NONE
    526527  INCLUDE 'dimensions.h'
    527   INCLUDE 'iniprint.h'
    528528  INCLUDE 'clesphys.h'
    529529
     
    568568    !Et sinon on.... écrit
    569569    IF (SIZE(field,1)/=klon) &
    570    CALL abort_gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)                                 
     570   CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)                                 
    571571    nlev=SIZE(field,2)
    572572
     
    613613    !   en utilisant les routines getin de IOIPSL 
    614614    use ioipsl
     615    USE print_control_mod, ONLY: lunout,prt_level
    615616
    616617    IMPLICIT NONE
    617     include 'iniprint.h'
    618618
    619619   CHARACTER(LEN=20)               :: nam_var, nnam_var
Note: See TracChangeset for help on using the changeset viewer.