Changeset 426


Ignore:
Timestamp:
2011-08-31T10:29:05+02:00 (13 years ago)
Author:
didier.solyga
Message:

Correct the conditions for reading the parameters in the run.def file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/intersurf.f90

    r425 r426  
    29182918    !Config Help = The number of vegetation types define by the user 
    29192919    !Config Units = NONE 
     2920    ! 
    29202921    CALL getin_p('NVM',nvm) 
    29212922    WRITE(numout,*)'the number of pfts is : ', nvm 
     
    29472948    ! 6. Read the parameters in the run.def file  according the flags 
    29482949 
    2949     IF ( control_flags%ok_sechiba .AND. impose_param ) THEN 
    2950        CALL getin_sechiba_parameters 
    2951        CALL getin_sechiba_pft_parameters 
    2952        WRITE(numout,*)'    some sechiba_pft_parameters have been imposed ' 
    2953     ELSE  
    2954        WRITE(numout,*)'    all sechiba_pft_parameters are set to default values' 
     2950    IF ( control_flags%ok_sechiba ) THEN 
     2951       IF (impose_param ) THEN 
     2952          CALL getin_sechiba_parameters 
     2953          CALL getin_sechiba_pft_parameters 
     2954          WRITE(numout,*)'    some sechiba parameters have been imposed ' 
     2955       ENDIF 
    29552956    ENDIF 
    29562957 
    2957     IF ( control_flags%ok_co2 .AND. impose_param ) THEN 
    2958        CALL getin_co2_parameters 
     2958    IF ( control_flags%ok_co2 ) THEN 
     2959       IF ( impose_param ) THEN 
     2960          CALL getin_co2_parameters 
     2961          WRITE(numout,*)'    some co2 parameters have been imposed '          
     2962       ENDIF 
    29592963    ENDIF 
    29602964 
    2961     IF ( control_flags%hydrol_cwrr .AND. impose_param ) THEN 
    2962        CALL getin_hydrol_cwrr_parameters 
     2965    IF ( control_flags%hydrol_cwrr ) THEN 
     2966       IF ( impose_param ) THEN       
     2967          CALL getin_hydrol_cwrr_parameters 
     2968          WRITE(numout,*)'    some cwrr parameters have been imposed '         
     2969       ENDIF 
    29632970    ELSE 
    29642971       IF (impose_param) THEN 
    29652972          CALL getin_hydrolc_parameters 
    2966           ! we read the parameters for the choisnel hydrology 
     2973          WRITE(numout,*)'    some Choisnel parameters have been imposed ' 
    29672974       ENDIF 
    29682975    ENDIF 
    29692976 
    2970     IF ( control_flags%river_routing .AND. impose_param ) THEN 
    2971        CALL getin_routing_parameters 
     2977    IF ( control_flags%river_routing ) THEN 
     2978       IF (impose_param) THEN 
     2979          CALL getin_routing_parameters 
     2980          WRITE(numout,*)'    some routing parameters have been imposed '          
     2981       ENDIF 
    29722982    ENDIF 
    2973  
    2974     IF ( control_flags%ok_stomate .AND. impose_param ) THEN 
    2975        CALL getin_stomate_parameters 
    2976        CALL getin_stomate_pft_parameters 
    2977        WRITE(numout,*)'    some stomate_pft_parameters have been imposed ' 
    2978     ELSE  
    2979        WRITE(numout,*)'    all stomate_pft_parameters are set to default values' 
     2983     
     2984    IF ( control_flags%ok_stomate ) THEN 
     2985       IF ( impose_param ) THEN 
     2986          CALL getin_stomate_parameters 
     2987          CALL getin_stomate_pft_parameters 
     2988          WRITE(numout,*)'    some stomate parameters have been imposed ' 
     2989       ENDIF 
    29802990    ENDIF 
    2981  
    2982      IF ( control_flags%ok_dgvm .AND. impose_param ) THEN 
    2983        CALL getin_dgvm_parameters 
     2991     
     2992    IF ( control_flags%ok_dgvm ) THEN 
     2993       IF ( impose_param ) THEN 
     2994          CALL getin_dgvm_parameters 
     2995          WRITE(numout,*)'    some dgvm parameters have been imposed '          
     2996       ENDIF 
    29842997    ENDIF     
    29852998 
Note: See TracChangeset for help on using the changeset viewer.