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_noopenmp_mod.F90

    r1958 r2311  
    102102    INCLUDE "temps.h"
    103103    INCLUDE "YOMCST.h"
    104     INCLUDE "iniprint.h"
    105104    INCLUDE "dimensions.h"
    106105 
     
    215214       IF (carbon_cycle_cpl) THEN
    216215          abort_message='You must define preprossing key ORCH_NEW when running carbon_cycle_cpl=y'
    217           CALL abort_gcm(modname,abort_message,1)
     216          CALL abort_physic(modname,abort_message,1)
    218217       END IF
    219218#endif
     
    246245          IF (error /= 0) THEN
    247246             abort_message='Pb allocation lalo'
    248              CALL abort_gcm(modname,abort_message,1)
     247             CALL abort_physic(modname,abort_message,1)
    249248          ENDIF
    250249       ENDIF
     
    253252          IF (error /= 0) THEN
    254253             abort_message='Pb allocation lon_scat'
    255              CALL abort_gcm(modname,abort_message,1)
     254             CALL abort_physic(modname,abort_message,1)
    256255          ENDIF
    257256       ENDIF
     
    260259          IF (error /= 0) THEN
    261260             abort_message='Pb allocation lat_scat'
    262              CALL abort_gcm(modname,abort_message,1)
     261             CALL abort_physic(modname,abort_message,1)
    263262          ENDIF
    264263       ENDIF
     
    301300          IF (error /= 0) THEN
    302301             abort_message='Pb allocation neighbours'
    303              CALL abort_gcm(modname,abort_message,1)
     302             CALL abort_physic(modname,abort_message,1)
    304303          ENDIF
    305304       ENDIF
     
    309308          IF (error /= 0) THEN
    310309             abort_message='Pb allocation contfrac'
    311              CALL abort_gcm(modname,abort_message,1)
     310             CALL abort_physic(modname,abort_message,1)
    312311          ENDIF
    313312       ENDIF
     
    327326          IF (error /= 0) THEN
    328327             abort_message='Pb allocation resolution'
    329              CALL abort_gcm(modname,abort_message,1)
     328             CALL abort_physic(modname,abort_message,1)
    330329          ENDIF
    331330       ENDIF
     
    339338       IF (error /= 0) THEN
    340339          abort_message='Pb allocation coastalflow'
    341           CALL abort_gcm(modname,abort_message,1)
     340          CALL abort_physic(modname,abort_message,1)
    342341       ENDIF
    343342       
     
    345344       IF (error /= 0) THEN
    346345          abort_message='Pb allocation riverflow'
    347           CALL abort_gcm(modname,abort_message,1)
     346          CALL abort_physic(modname,abort_message,1)
    348347       ENDIF
    349348
     
    359358       IF (carbon_cycle_cpl) THEN
    360359          ALLOCATE(fco2_land_inst(klon),stat=error)
    361           IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation fco2_land_inst',1)
     360          IF (error /= 0)  CALL abort_physic(modname,'Pb in allocation fco2_land_inst',1)
    362361         
    363362          ALLOCATE(fco2_lu_inst(klon),stat=error)
    364           IF(error /=0) CALL abort_gcm(modname,'Pb in allocation fco2_lu_inst',1)
     363          IF(error /=0) CALL abort_physic(modname,'Pb in allocation fco2_lu_inst',1)
    365364       END IF
    366365
    367366       ALLOCATE(fields_cpl(klon,nb_fields_cpl), stat = error)
    368        IF (error /= 0) CALL abort_gcm(modname,'Pb in allocation fields_cpl',1)
     367       IF (error /= 0) CALL abort_physic(modname,'Pb in allocation fields_cpl',1)
    369368
    370369    ENDIF                          ! (fin debut)
Note: See TracChangeset for help on using the changeset viewer.