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

    r2240 r2311  
    4545    USE carbon_cycle_mod, ONLY : carbon_cycle_cpl
    4646    USE indice_sol_mod
    47 
     47    USE print_control_mod, ONLY: lunout
    4848!   
    4949! Cette routine sert d'interface entre le modele atmospherique et le
     
    100100    INCLUDE "temps.h"
    101101    INCLUDE "YOMCST.h"
    102     INCLUDE "iniprint.h"
    103102    INCLUDE "dimensions.h"
    104103 
     
    210209#ifndef CPP_VEGET
    211210       abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.'
    212        CALL abort_gcm(modname,abort_message,1)
     211       CALL abort_physic(modname,abort_message,1)
    213212#endif
    214213
     
    244243          IF (error /= 0) THEN
    245244             abort_message='Pb allocation lalo'
    246              CALL abort_gcm(modname,abort_message,1)
     245             CALL abort_physic(modname,abort_message,1)
    247246          ENDIF
    248247       ENDIF
     
    251250          IF (error /= 0) THEN
    252251             abort_message='Pb allocation lon_scat'
    253              CALL abort_gcm(modname,abort_message,1)
     252             CALL abort_physic(modname,abort_message,1)
    254253          ENDIF
    255254       ENDIF
     
    258257          IF (error /= 0) THEN
    259258             abort_message='Pb allocation lat_scat'
    260              CALL abort_gcm(modname,abort_message,1)
     259             CALL abort_physic(modname,abort_message,1)
    261260          ENDIF
    262261       ENDIF
     
    298297          IF (error /= 0) THEN
    299298             abort_message='Pb allocation neighbours'
    300              CALL abort_gcm(modname,abort_message,1)
     299             CALL abort_physic(modname,abort_message,1)
    301300          ENDIF
    302301       ENDIF
     
    306305          IF (error /= 0) THEN
    307306             abort_message='Pb allocation contfrac'
    308              CALL abort_gcm(modname,abort_message,1)
     307             CALL abort_physic(modname,abort_message,1)
    309308          ENDIF
    310309       ENDIF
     
    324323          IF (error /= 0) THEN
    325324             abort_message='Pb allocation resolution'
    326              CALL abort_gcm(modname,abort_message,1)
     325             CALL abort_physic(modname,abort_message,1)
    327326          ENDIF
    328327       ENDIF
     
    336335       IF (error /= 0) THEN
    337336          abort_message='Pb allocation coastalflow'
    338           CALL abort_gcm(modname,abort_message,1)
     337          CALL abort_physic(modname,abort_message,1)
    339338       ENDIF
    340339       
     
    342341       IF (error /= 0) THEN
    343342          abort_message='Pb allocation riverflow'
    344           CALL abort_gcm(modname,abort_message,1)
     343          CALL abort_physic(modname,abort_message,1)
    345344       ENDIF
    346345!
     
    349348       IF (carbon_cycle_cpl) THEN
    350349          abort_message='carbon_cycle_cpl not yet possible with this interface of ORCHIDEE'
    351           CALL abort_gcm(modname,abort_message,1)
     350          CALL abort_physic(modname,abort_message,1)
    352351       END IF
    353352       
Note: See TracChangeset for help on using the changeset viewer.