Ignore:
Timestamp:
04/08/09 16:05:18 (15 years ago)
Author:
ymipsl
Message:

Feature : ajout des paramÚtres temporels dans les contexts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_SERVER/trunk/src/XMLIO/mod_context.f90

    r26 r28  
    1515  USE mod_axis_definition 
    1616  USE mod_dependency 
     17  USE mod_time_parameters 
    1718 
    1819 
     
    4849    TYPE(vector_field_out),POINTER    :: dependency__field_enabled  
    4950    TYPE(vector_field_dep),POINTER    :: dependency__field_id 
    50     TYPE(sorted_list),POINTER         :: dependency__sorted_id   
    51    
     51    TYPE(sorted_list),POINTER         :: dependency__sorted_id  
     52    INTEGER,POINTER                   :: time_param__initial_timestep 
     53    REAL,POINTER                      :: time_param__initial_date 
     54    REAL,POINTER                      :: time_param__timestep_value  
     55    INTEGER,POINTER                   :: time_param__timestep_number 
     56 
    5257  END TYPE context 
    5358   
     
    132137        ALLOCATE(pt_context%dependency__field_id) 
    133138        ALLOCATE(pt_context%dependency__sorted_id)   
     139        ALLOCATE(pt_context%time_param__initial_timestep) 
     140        ALLOCATE(pt_context%time_param__initial_date) 
     141        ALLOCATE(pt_context%time_param__timestep_value)  
     142        ALLOCATE(pt_context%time_param__timestep_number) 
    134143 
    135144        CALL context__swap(pt_context) 
     
    207216      CALL axis_definition__swap_context(pt_context%axis_definition__axis_definition) 
    208217      CALL dependency__swap_context(pt_context%dependency__file_enabled,pt_context%dependency__field_enabled,  & 
    209                                     pt_context%dependency__field_id,pt_context%dependency__sorted_id)   
     218                                    pt_context%dependency__field_id,pt_context%dependency__sorted_id) 
     219      CALL time_parameters__swap_context(pt_context%time_param__initial_timestep,pt_context%time_param__initial_date,  & 
     220                                         pt_context%time_param__timestep_value,pt_context%time_param__timestep_number) 
     221                                     
    210222    END SUBROUTINE context__swap_pt 
    211223 
Note: See TracChangeset for help on using the changeset viewer.