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

    r1907 r2311  
    118118        IF (ierr.NE.NF_NOERR) THEN
    119119           abort_message = 'Pb d''ouverture du fichier de conditions aux limites'
    120            CALL abort_gcm(modname,abort_message,1)
     120           CALL abort_physic(modname,abort_message,1)
    121121        ENDIF
    122122
     
    135135           IF (ierr /= NF_NOERR) THEN
    136136              abort_message = 'Le champ <FOCE> est absent'
    137               CALL abort_gcm(modname,abort_message,1)
     137              CALL abort_physic(modname,abort_message,1)
    138138           ENDIF
    139139#ifdef NC_DOUBLE
     
    144144           IF (ierr /= NF_NOERR) THEN
    145145              abort_message = 'Lecture echouee pour <FOCE>'
    146               CALL abort_gcm(modname,abort_message,1)
     146              CALL abort_physic(modname,abort_message,1)
    147147           ENDIF
    148148           !
     
    152152           IF (ierr /= NF_NOERR) THEN
    153153              abort_message = 'Le champ <FSIC> est absent'
    154               CALL abort_gcm(modname,abort_message,1)
     154              CALL abort_physic(modname,abort_message,1)
    155155           ENDIF
    156156#ifdef NC_DOUBLE
     
    161161           IF (ierr /= NF_NOERR) THEN
    162162              abort_message = 'Lecture echouee pour <FSIC>'
    163               CALL abort_gcm(modname,abort_message,1)
     163              CALL abort_physic(modname,abort_message,1)
    164164           ENDIF
    165165           !
     
    169169           IF (ierr /= NF_NOERR) THEN
    170170              abort_message = 'Le champ <FTER> est absent'
    171               CALL abort_gcm(modname,abort_message,1)
     171              CALL abort_physic(modname,abort_message,1)
    172172           ENDIF
    173173#ifdef NC_DOUBLE
     
    178178           IF (ierr /= NF_NOERR) THEN
    179179              abort_message = 'Lecture echouee pour <FTER>'
    180               CALL abort_gcm(modname,abort_message,1)
     180              CALL abort_physic(modname,abort_message,1)
    181181           ENDIF
    182182           !
     
    186186           IF (ierr /= NF_NOERR) THEN
    187187              abort_message = 'Le champ <FLIC> est absent'
    188               CALL abort_gcm(modname,abort_message,1)
     188              CALL abort_physic(modname,abort_message,1)
    189189           ENDIF
    190190#ifdef NC_DOUBLE
     
    195195           IF (ierr /= NF_NOERR) THEN
    196196              abort_message = 'Lecture echouee pour <FLIC>'
    197               CALL abort_gcm(modname,abort_message,1)
     197              CALL abort_physic(modname,abort_message,1)
    198198           ENDIF
    199199           !
     
    203203           IF (ierr /= NF_NOERR) THEN
    204204              abort_message = 'Le champ <NAT> est absent'
    205               CALL abort_gcm(modname,abort_message,1)
     205              CALL abort_physic(modname,abort_message,1)
    206206           ENDIF
    207207#ifdef NC_DOUBLE
     
    212212           IF (ierr /= NF_NOERR) THEN
    213213              abort_message = 'Lecture echouee pour <NAT>'
    214               CALL abort_gcm(modname,abort_message,1)
     214              CALL abort_physic(modname,abort_message,1)
    215215           ENDIF
    216216!
     
    237237        IF (ierr /= NF_NOERR) THEN
    238238           abort_message = 'Le champ <SST> est absent'
    239            CALL abort_gcm(modname,abort_message,1)
     239           CALL abort_physic(modname,abort_message,1)
    240240        ENDIF
    241241#ifdef NC_DOUBLE
     
    246246        IF (ierr /= NF_NOERR) THEN
    247247           abort_message = 'Lecture echouee pour <SST>'
    248            CALL abort_gcm(modname,abort_message,1)
     248           CALL abort_physic(modname,abort_message,1)
    249249        ENDIF
    250250         
Note: See TracChangeset for help on using the changeset viewer.