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

    r3809 r3814  
    451451    use phys_output_var_mod, only: type_ecri, zoutm, zdtime_moy, lev_files, &
    452452                                   nid_files, nhorim, swaero_diag, nfiles
     453    USE temps_phy_mod
    453454    IMPLICIT NONE
    454 
    455455    INCLUDE "dimensions.h"
    456     INCLUDE "temps.h"
    457456    INCLUDE "clesphys.h"
    458457
     
    507506                                   nhorim, zdtime_moy, levmin, levmax, &
    508507                                   nvertm, nfiles
     508    USE temps_phy_mod
    509509    IMPLICIT NONE
    510510
    511511    INCLUDE "dimensions.h"
    512     INCLUDE "temps.h"
    513512!    INCLUDE "indicesol.h"
    514513    INCLUDE "clesphys.h"
     
    566565    use wxios, only: wxios_add_field_to_file
    567566#endif
     567    USE temps_phy_mod
    568568    IMPLICIT NONE
    569569
    570570    INCLUDE "dimensions.h"
    571     INCLUDE "temps.h"
    572571    INCLUDE "clesphys.h"
    573572    INCLUDE "iniprint.h"
     
    653652    use wxios, only: wxios_add_field_to_file
    654653#endif
     654    USE temps_phy_mod
    655655    IMPLICIT NONE
    656656
    657657    INCLUDE "dimensions.h"
    658     INCLUDE "temps.h"
    659658    INCLUDE "clesphys.h"
    660659    INCLUDE "iniprint.h"
     
    767766
    768767
    769     IF (size(field)/=klon) CALL abort_gcm('iophy::histwrite2d','Field first DIMENSION not equal to klon',1)
     768    IF (size(field)/=klon) CALL abort_physic('iophy::histwrite2d','Field first DIMENSION not equal to klon',1)
    770769   
    771770    CALL Gather_omp(field,buffer_omp)   
     
    831830
    832831
    833     IF (size(field,1)/=klon) CALL abort_gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
     832    IF (size(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
    834833    nlev=size(field,2)
    835834
     
    945944
    946945    !Et sinon on.... écrit
    947     IF (SIZE(field)/=klon) CALL abort_gcm('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1)
     946    IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1)
    948947   
    949948    if (prt_level >= 10) then
     
    971970          endif
    972971#else
    973         CALL abort_gcm ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)
     972        CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)
    974973#endif
    975974      ELSE 
     
    10951094  ELSE
    10961095    !Et sinon on.... écrit
    1097     IF (SIZE(field,1)/=klon) CALL abort_gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
     1096    IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
    10981097    nlev=SIZE(field,2)
    10991098    if (nlev.eq.klev+1) then
     
    11191118          CALL xios_send_field(var%name, Field3d(:,:,1:nlevx))
    11201119#else
    1121         CALL abort_gcm ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)
     1120        CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)
    11221121#endif
    11231122      ELSE 
     
    12161215
    12171216    !Et sinon on.... écrit
    1218     IF (SIZE(field)/=klon) CALL abort_gcm('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)
     1217    IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)
    12191218   
    12201219    CALL Gather_omp(field,buffer_omp)   
     
    12861285
    12871286    !Et on.... écrit
    1288     IF (SIZE(field,1)/=klon) CALL abort_gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
     1287    IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
    12891288    nlev=SIZE(field,2)
    12901289
Note: See TracChangeset for help on using the changeset viewer.