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

    r3809 r3814  
    8888    USE comgeomphy
    8989    USE mod_phys_lmdz_transfert_para
    90     USE infotrac
     90    USE infotrac_phy
    9191    USE IOIPSL
    9292    USE surface_data, ONLY : ok_veget, type_ocean
     
    135135       WRITE(lunout,*) 'carbon_cycle_emis_comp = ',carbon_cycle_emis_comp
    136136       IF (carbon_cycle_emis_comp) THEN
    137           CALL abort_gcm('carbon_cycle_init', 'carbon_cycle_emis_comp option not yet implemented!!',1)
     137          CALL abort_physic('carbon_cycle_init', 'carbon_cycle_emis_comp option not yet implemented!!',1)
    138138       END IF
    139139    END IF
     
    225225          co2trac(itc)%updatefreq = 86400
    226226          ! DOES THIS WORK ???? Problematic due to implementation of the coupled fluxes...
    227           CALL abort_gcm('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1)
     227          CALL abort_physic('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1)
    228228       END SELECT
    229229    END DO
     
    247247    ! Allocate vector for storing fluxes to inject
    248248    ALLOCATE(dtr_add(klon,maxco2trac), stat=ierr)
    249     IF (ierr /= 0) CALL abort_gcm('carbon_cycle_init', 'pb in allocation 11',1)       
     249    IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 11',1)       
    250250   
    251251    ! Allocate variables for cumulating fluxes from ORCHIDEE
     
    253253       IF (.NOT. carbon_cycle_tr .AND. carbon_cycle_cpl) THEN
    254254          ALLOCATE(fco2_land_day(klon), stat=ierr)
    255           IF (ierr /= 0) CALL abort_gcm('carbon_cycle_init', 'pb in allocation 2',1)
     255          IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 2',1)
    256256          fco2_land_day(1:klon) = 0.
    257257         
    258258          ALLOCATE(fco2_lu_day(klon), stat=ierr)
    259           IF (ierr /= 0) CALL abort_gcm('carbon_cycle_init', 'pb in allocation 3',1)
     259          IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 3',1)
    260260          fco2_lu_day(1:klon)   = 0.
    261261       END IF
     
    267267!    IF (carbon_cycle_cpl .AND. type_ocean/='couple') THEN
    268268!       WRITE(lunout,*) 'Coupling with ocean model is needed for carbon_cycle_cpl'
    269 !       CALL abort_gcm('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1)
     269!       CALL abort_physic('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1)
    270270!    END IF
    271271!
    272272!    IF (carbon_cycle_cpl .AND..NOT. ok_veget) THEN
    273273!       WRITE(lunout,*) 'Coupling with surface land model ORCHDIEE is needed for carbon_cycle_cpl'
    274 !       CALL abort_gcm('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1)
     274!       CALL abort_physic('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1)
    275275!    END IF
    276276
     
    278278    teststop=0
    279279    DO it=1,teststop
    280        CALL abort_gcm('carbon_cycle_init', 'Entering loop from 1 to 0',1)
     280       CALL abort_physic('carbon_cycle_init', 'Entering loop from 1 to 0',1)
    281281    END DO
    282282
     
    284284       ! No carbon tracers found in tracer.def. It is not possible to do carbon cycle
    285285       WRITE(lunout,*) 'No carbon tracers found in tracer.def. Not ok with carbon_cycle_tr and/or carbon_cycle_cp'
    286        CALL abort_gcm('carbon_cycle_init', 'No carbon tracers found in tracer.def',1)
     286       CALL abort_physic('carbon_cycle_init', 'No carbon tracers found in tracer.def',1)
    287287    END IF
    288288   
     
    303303! - Calculate CO2 flux to send to ocean and land models (PISCES and ORCHIDEE)
    304304
    305     USE infotrac
     305    USE infotrac_phy
    306306    USE dimphy
    307307    USE mod_phys_lmdz_transfert_para
     
    370370             CASE DEFAULT
    371371                WRITE(lunout,*) 'Error with tracer ',co2trac(it)%name
    372                 CALL abort_gcm('carbon_cycle', 'No coupling implemented for this tracer',1)
     372                CALL abort_physic('carbon_cycle', 'No coupling implemented for this tracer',1)
    373373             END SELECT
    374374          ELSE
Note: See TracChangeset for help on using the changeset viewer.