Ignore:
Timestamp:
Apr 15, 2015, 6:49:07 PM (10 years ago)
Author:
ymipsl
Message:

remove all dynamic dependency in LMDZ physics except for the include "dimensions.h"

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/pbl_surface_mod.F90

    r3809 r3814  
    2323  USE climb_wind_mod,      ONLY : climb_wind_down, climb_wind_up
    2424  USE coef_diff_turb_mod,  ONLY : coef_diff_turb
    25   USE control_mod
     25  USE control_phy_mod
    2626
    2727
     
    7373!****************************************************************************************   
    7474    ALLOCATE(fder(klon), stat=ierr)
    75     IF (ierr /= 0) CALL abort_gcm('pbl_surface_init', 'pb in allocation',1)
     75    IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
    7676
    7777    ALLOCATE(snow(klon,nbsrf), stat=ierr)
    78     IF (ierr /= 0) CALL abort_gcm('pbl_surface_init', 'pb in allocation',1)
     78    IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
    7979
    8080    ALLOCATE(qsurf(klon,nbsrf), stat=ierr)
    81     IF (ierr /= 0) CALL abort_gcm('pbl_surface_init', 'pb in allocation',1)
     81    IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
    8282
    8383    ALLOCATE(ftsoil(klon,nsoilmx,nbsrf), stat=ierr)
    84     IF (ierr /= 0) CALL abort_gcm('pbl_surface_init', 'pb in allocation',1)
     84    IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
    8585
    8686
     
    100100      WRITE(lunout,*)"or on doit commencer par les surfaces continentales"
    101101      abort_message="voir ci-dessus"
    102       CALL abort_gcm(modname,abort_message,1)
     102      CALL abort_physic(modname,abort_message,1)
    103103    ENDIF
    104104
     
    109109      WRITE(lunout,*)' or is_oce = ',is_oce, '> is_sic = ',is_sic
    110110      abort_message='voir ci-dessus'
    111       CALL abort_gcm(modname,abort_message,1)
     111      CALL abort_physic(modname,abort_message,1)
    112112    ENDIF
    113113
     
    118118      WRITE(lunout,*)' or is_lic = ',is_lic, '> is_sic = ',is_sic
    119119      abort_message='voir ci-dessus'
    120       CALL abort_gcm(modname,abort_message,1)
     120      CALL abort_physic(modname,abort_message,1)
    121121    ENDIF
    122122
     
    130130       WRITE(lunout,*)'Option couplage pour l''ocean = ', type_ocean
    131131       abort_message='option pour l''ocean non valable'
    132        CALL abort_gcm(modname,abort_message,1)
     132       CALL abort_physic(modname,abort_message,1)
    133133    ENDIF
    134134
     
    261261    USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send
    262262    USE indice_sol_mod
    263 
     263    USE temps_phy_mod
    264264    IMPLICIT NONE
    265265
     
    272272    INCLUDE "compbl.h"
    273273    INCLUDE "dimensions.h"
    274     INCLUDE "temps.h"
    275274    INCLUDE "flux_arp.h"
    276275!****************************************************************************************
     
    18371836          WRITE(lunout,*) 'Surface index = ', nsrf
    18381837          abort_message = 'Surface index not valid'
    1839           CALL abort_gcm(modname,abort_message,1)
     1838          CALL abort_physic(modname,abort_message,1)
    18401839       END SELECT
    18411840
     
    30493048                ! Security abort. This option has never been tested. To test, comment the following line.
    30503049!                abort_message='The fraction of the continents have changed!'
    3051 !                CALL abort_gcm(modname,abort_message,1)
     3050!                CALL abort_physic(modname,abort_message,1)
    30523051                nfois(nsrf) = nfois(nsrf) + 1
    30533052             END IF
Note: See TracChangeset for help on using the changeset viewer.