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

    r2265 r2311  
    7777    ! Allocate restart variables trs
    7878    ALLOCATE( trs(klon,nbtr), stat=ierr)
    79     IF (ierr /= 0) CALL abort_gcm('traclmdz_from_restart', 'pb in allocation 1',1)
     79    IF (ierr /= 0) CALL abort_physic('traclmdz_from_restart', 'pb in allocation 1',1)
    8080   
    8181    ! Initialize trs with values read from restart file
     
    9696    USE mod_phys_lmdz_para
    9797    USE indice_sol_mod
    98 
    99     INCLUDE "iniprint.h"
     98    USE print_control_mod, ONLY: lunout
     99
    100100! Input variables
    101101    REAL,DIMENSION(klon,nbsrf),INTENT(IN)     :: pctsrf ! Pourcentage de sol f(nature du sol)
     
    133133! --------------------------------------------
    134134    ALLOCATE( scavtr(nbtr), stat=ierr)
    135     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 9',1)
     135    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 9',1)
    136136    scavtr(:)=1.
    137137   
    138138    ALLOCATE( radio(nbtr), stat=ierr)
    139     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 11',1)
     139    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 11',1)
    140140    radio(:) = .false.    ! Par defaut pas decroissance radioactive
    141141   
    142142    ALLOCATE( masktr(klon,nbtr), stat=ierr)
    143     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 2',1)
     143    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 2',1)
    144144   
    145145    ALLOCATE( fshtr(klon,nbtr), stat=ierr)
    146     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 3',1)
     146    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 3',1)
    147147   
    148148    ALLOCATE( hsoltr(nbtr), stat=ierr)
    149     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 4',1)
     149    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 4',1)
    150150   
    151151    ALLOCATE( tautr(nbtr), stat=ierr)
    152     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 5',1)
     152    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 5',1)
    153153    tautr(:)  = 0.
    154154   
    155155    ALLOCATE( vdeptr(nbtr), stat=ierr)
    156     IF (ierr /= 0) CALL abort_gcm('traclmdz_init', 'pb in allocation 6',1)
     156    IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 6',1)
    157157    vdeptr(:) = 0.
    158158
Note: See TracChangeset for help on using the changeset viewer.