Ignore:
Timestamp:
2011-09-13T09:25:22+02:00 (13 years ago)
Author:
didier.solyga
Message:

Correct wrong loops in slowproc (wrong algorithm and wrong vectorisation). Replace the differents ok_sechiba, ok_stomate, etc by a structure control_type for simplifying the routines

File:
1 edited

Legend:

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

    r435 r471  
    11371137 CONTAINS 
    11381138 
    1139    SUBROUTINE activate_sub_models(ok_sechiba,ok_routing, ok_stomate) 
     1139   SUBROUTINE activate_sub_models(active_flags) 
    11401140 
    11411141     IMPLICIT NONE 
     1142 
     1143     ! 0.1 input 
     1144 
     1145     ! What parts of the code are activated ? 
     1146     TYPE(control_type),INTENT(in) :: active_flags 
     1147 
    11421148     ! first call 
    11431149     LOGICAL, SAVE ::  first_call = .TRUE.    
    1144      ! input 
    1145      LOGICAL, INTENT(in) :: ok_sechiba 
    1146      LOGICAL, INTENT(in) :: ok_routing 
    1147      LOGICAL, INTENT(in) :: ok_stomate     
    11481150 
    11491151     IF (first_call) THEN  
    11501152 
    1151         IF(ok_sechiba .AND. ok_routing) THEN 
     1153        IF(active_flags%ok_sechiba .AND. active_flags%river_routing) THEN 
    11521154            
    11531155           !Config Key  = DO_IRRIGATION 
     
    11741176 
    11751177            
    1176         IF(ok_stomate) THEN 
     1178        IF(active_flags%ok_stomate) THEN 
    11771179 
    11781180           !Config  Key  = HERBIVORES 
Note: See TracChangeset for help on using the changeset viewer.