Ignore:
Timestamp:
2024-03-27T13:02:01+01:00 (3 months ago)
Author:
josefine.ghattas
Message:

Integrated correction done in the trunk [8503] for compilation without XIOS.

Location:
branches/ORCHIDEE_2_2/ORCHIDEE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_2_2/ORCHIDEE

  • branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/routing_wrapper.f90

    r8227 r8504  
    7676       CALL routing_highres_xios_initialize 
    7777    ELSEIF(routing_method=='simple') THEN   
     78#ifdef XIOS 
    7879       CALL routing_simple_xios_initialize 
    7980    ELSEIF(routing_method=='native') THEN 
    8081       CALL routing_native_xios_initialize 
     82#else 
     83       CALL ipslerr_p(3,'routing_wrapper_xios_inititalize','ROUTING_METHOD simple and native needs XIOS',& 
     84                        'You must compile XIOS and then ORCHIDEE with cpp key XIOS','') 
     85#endif 
    8186    ENDIF 
    8287 
     
    176181 
    177182    ELSE IF(routing_method== 'simple') THEN  
    178  
     183#ifdef XIOS 
    179184       CALL routing_simple_initialize(    kjit,        nbpt,           index,                 & 
    180185                                          rest_id,     hist_id,        hist2_id,   lalo,      & 
     
    182187                                          returnflow,  reinfiltration, irrigation, riverflow, & 
    183188                                          coastalflow, flood_frac,     flood_res ) 
    184  
     189#endif 
    185190       riverflow(:) = zero 
    186191       coastalflow(:) = zero 
     
    192197    
    193198    ELSE IF(routing_method== 'native') THEN 
    194  
     199#ifdef XIOS 
    195200       CALL routing_native_initialize(    kjit,        nbpt,           index,                 & 
    196201                                          rest_id,     hist_id,        hist2_id,   lalo,      & 
     
    198203                                          returnflow,  reinfiltration, irrigation, riverflow, & 
    199204                                          coastalflow, flood_frac,     flood_res , irrigated_next) 
    200  
     205#endif 
    201206       riverflow(:) = zero 
    202207       coastalflow(:) = zero 
     
    298303 
    299304    ELSE IF(routing_method=='simple') THEN  
    300  
     305#ifdef XIOS 
    301306       CALL routing_simple_main (kjit, nbpt, index, & 
    302307            lalo, neighbours, resolution, contfrac, totfrac_nobio, veget_max, floodout, runoff, & 
     
    304309            stempdiag, reinf_slope, returnflow, reinfiltration, irrigation, riverflow, coastalflow, & 
    305310            rest_id, hist_id, hist2_id)  
    306  
     311#endif 
    307312    ELSE IF(routing_method=='native') THEN 
    308  
     313#ifdef XIOS 
    309314       CALL routing_native_main (kjit, nbpt, index, & 
    310315            lalo, neighbours, resolution, contfrac, totfrac_nobio, veget_max, floodout, runoff, & 
     
    313318            rest_id, hist_id, hist2_id, & 
    314319            soiltile, root_deficit, irrigated_next, irrig_frac, fraction_aeirrig_sw)  
     320#endif 
    315321    ENDIF 
    316322 
     
    356362 
    357363    ELSE IF(routing_method=='simple') THEN  
    358  
     364#ifdef XIOS 
    359365       CALL routing_simple_finalize( kjit, nbpt, rest_id, flood_frac, flood_res ) 
    360  
     366#endif 
    361367    ELSE IF(routing_method=='native') THEN 
    362  
     368#ifdef XIOS 
    363369       CALL routing_native_finalize( kjit, nbpt, rest_id, flood_frac, flood_res ) 
    364  
     370#endif 
    365371    ENDIF 
    366372 
     
    393399 
    394400    ELSE IF(routing_method=='simple') THEN  
    395  
     401#ifdef XIOS 
    396402       CALL routing_simple_clear 
    397      
     403#endif     
    398404    ELSE IF(routing_method=='native') THEN 
    399  
     405#ifdef XIOS 
    400406       CALL routing_native_clear 
     407#endif 
    401408    ENDIF 
    402409 
Note: See TracChangeset for help on using the changeset viewer.