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

    r2284 r2311  
    101101
    102102    USE mod_phys_lmdz_mpi_data, ONLY :  is_mpi_root
     103    USE print_control_mod, ONLY: lunout
    103104
    104105    IMPLICIT NONE
     
    110111    INCLUDE "paramet.h"
    111112    INCLUDE "thermcell.h"
    112     INCLUDE "iniprint.h"
    113113    !==========================================================================
    114114    !                   -- ARGUMENT DESCRIPTION --
     
    445445       WRITE(*,*) 'FIRST TIME IN PHYTRAC : pdtphys(sec) = ',pdtphys,'ecrit_tra (sec) = ',ecrit_tra
    446446       ALLOCATE( source(klon,nbtr), stat=ierr)
    447        IF (ierr /= 0) CALL abort_gcm('phytrac', 'pb in allocation 1',1)
     447       IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 1',1)
    448448
    449449       ALLOCATE( aerosol(nbtr), stat=ierr)
    450        IF (ierr /= 0) CALL abort_gcm('phytrac', 'pb in allocation 2',1)
     450       IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 2',1)
    451451
    452452
     
    503503!                ELSE
    504504!                   WRITE(lunout,*) 'pb it=', it
    505 !                   CALL abort_gcm('phytrac','pb it scavenging',1)
     505!                   CALL abort_physic('phytrac','pb it scavenging',1)
    506506!                ENDIF
    507507                !--test OB
     
    539539
    540540       IF (lessivage.AND.config_inca.EQ.'inca') THEN
    541           CALL abort_gcm('phytrac', 'lessivage=T config_inca=inca impossible',1)
     541          CALL abort_physic('phytrac', 'lessivage=T config_inca=inca impossible',1)
    542542          STOP
    543543       ENDIF
     
    740740    ELSE
    741741       !
    742        CALL abort_gcm('iflag_vdf_trac', 'cas non prevu',1)
     742       CALL abort_physic('iflag_vdf_trac', 'cas non prevu',1)
    743743       !
    744744    END IF ! couche limite
Note: See TracChangeset for help on using the changeset viewer.