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

    r2075 r2311  
    102102    USE surface_data
    103103    USE indice_sol_mod
     104    USE print_control_mod, ONLY: lunout
    104105
    105106    INCLUDE "dimensions.h"
    106107    INCLUDE "temps.h"
    107     INCLUDE "iniprint.h"
    108108
    109109! Input arguments
     
    204204    IF (sum_error /= 0) THEN
    205205       abort_message='Pb allocation variables couplees'
    206        CALL abort_gcm(modname,abort_message,1)
     206       CALL abort_physic(modname,abort_message,1)
    207207    ENDIF
    208208!*************************************************************************************
     
    279279    IF (carbon_cycle_cpl .AND. version_ocean=='opa8') THEN
    280280       abort_message='carbon_cycle_cpl does not work with opa8'
    281        CALL abort_gcm(modname,abort_message,1)
     281       CALL abort_physic(modname,abort_message,1)
    282282    END IF
    283283
     
    299299
    300300    INCLUDE "temps.h"
    301     INCLUDE "iniprint.h"
    302301    INCLUDE "YOMCST.h"
    303302    INCLUDE "dimensions.h"
     
    668667          IF (sum_error /= 0) THEN
    669668             abort_message='Pb allocation variables couplees pour l''ecriture'
    670              CALL abort_gcm(modname,abort_message,1)
     669             CALL abort_physic(modname,abort_message,1)
    671670          ENDIF
    672671       ENDIF
     
    853852          IF (sum_error /= 0) THEN
    854853             abort_message='Pb allocation variables couplees pour l''ecriture'
    855              CALL abort_gcm(modname,abort_message,1)
     854             CALL abort_physic(modname,abort_message,1)
    856855          ENDIF
    857856       ENDIF
     
    12911290    IF (sum_error /= 0) THEN
    12921291       abort_message='Pb in deallocation of cpl_xxxx2D coupling variables'
    1293        CALL abort_gcm(modname,abort_message,1)
     1292       CALL abort_physic(modname,abort_message,1)
    12941293    ENDIF
    12951294   
Note: See TracChangeset for help on using the changeset viewer.