Changeset 328


Ignore:
Timestamp:
2011-07-18T15:46:30+02:00 (13 years ago)
Author:
didier.solyga
Message:

Add first_call flag in veget_config subroutine. Add the default value of the flag disable_fire

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_parameters/constantes.f90

    r311 r328  
    413413  LOGICAL,SAVE    :: harvest_agri = .TRUE. 
    414414  ! constant moratlity 
    415   LOGICAL,SAVE    :: lpj_gap_const_mort=.TRUE. 
     415  LOGICAL,SAVE    :: lpj_gap_const_mort = .TRUE. 
    416416  ! flag that disable fire 
    417   LOGICAL, SAVE   :: disable_fire 
     417  LOGICAL, SAVE   :: disable_fire = .FALSE. 
    418418 
    419419  ! 
     
    12561256       
    12571257     IMPLICIT NONE 
     1258 
     1259     ! first call 
     1260     LOGICAL, SAVE ::  first_call = .TRUE.    
    12581261      
     1262     IF (first_call) THEN  
     1263 
    12591264        !Config  Key  = AGRICULTURE 
    12601265        !Config  Desc = agriculture allowed? 
     
    13321337        CALL getin_p('VEGET_REINIT', veget_reinit) 
    13331338 
    1334  
    1335         ! Check consistency 
    1336  
    1337         ! 1. You have to activate agriculture and land_use 
    1338         IF ( .NOT. agriculture .AND. land_use ) THEN  
    1339            CALL ipslerr (2,'veget_config', & 
    1340                &     'Problem with agriculture desactivated and Land Use activated.',& 
    1341                &     'Are you sure ?', & 
    1342                &     '(check your parameters).') 
    1343         ENDIF 
     1339        first_call = .FALSE. 
     1340 
     1341     ENDIF 
     1342 
     1343     ! Check consistency 
     1344 
     1345     ! 1. You have to activate agriculture and land_use 
     1346     IF ( .NOT. agriculture .AND. land_use ) THEN  
     1347        CALL ipslerr (2,'veget_config', & 
     1348             &     'Problem with agriculture desactivated and Land Use activated.',& 
     1349             &     'Are you sure ?', & 
     1350             &     '(check your parameters).') 
     1351     ENDIF 
    13441352 
    13451353!!$        ! DS : Add warning in case of a wrong configuration (need to be discussed) 
Note: See TracChangeset for help on using the changeset viewer.