Changeset 28
- Timestamp:
- 04/08/09 16:05:18 (16 years ago)
- Location:
- XMLIO_SERVER/trunk/src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_SERVER/trunk/src/IOSERVER/mod_interface_ioipsl.f90
r17 r28 1 1 MODULE mod_interface_ioipsl 2 2 3 INTEGER,SAVE,PRIVATE :: ini_timestep 4 REAL,SAVE,PRIVATE :: zjulian 5 REAL,SAVE,PRIVATE :: timestep 6 INTEGER,SAVE,PRIVATE :: timestep_nb 3 4 INTEGER,PARAMETER :: id_file=1 5 6 7 CONTAINS 8 9 SUBROUTINE init_interface_ioipsl 10 USE xmlio 11 IMPLICIT NONE 7 12 8 INTEGER,PARAMETER :: id_file=19 10 11 CONTAINS12 13 SUBROUTINE init_interface_ioipsl14 USE xmlio15 IMPLICIT NONE16 17 13 18 14 END SUBROUTINE init_interface_ioipsl … … 20 16 21 17 SUBROUTINE set_time_parameters(ini_timestep0,zjulian0,timestep0) 18 USE xmlio 22 19 IMPLICIT NONE 23 20 INTEGER :: ini_timestep0 24 21 REAL :: zjulian0, timestep0 25 22 26 timestep =timestep027 ini _timestep=ini_timestep028 zjulian=zjulian023 timestep_value=timestep0 24 initial_timestep=ini_timestep0 25 initial_date=zjulian0 29 26 30 27 END SUBROUTINE set_time_parameters … … 66 63 CALL set_ioipsl_domain_id(pt_grid,nb_server,server_rank,ioipsl_domain_id) 67 64 CALL histbeg(TRIM(pt_file%name),pt_domain%ni,pt_domain%lon, pt_domain%nj, pt_domain%lat, & 68 1, pt_domain%ni, 1, pt_domain%nj,ini _timestep, zjulian, timestep,&65 1, pt_domain%ni, 1, pt_domain%nj,initial_timestep, initial_date, timestep_value, & 69 66 ioipsl_hori_id, ioipsl_file_id,domain_id=ioipsl_domain_id) 70 67 … … 132 129 pt_field=>pt_field_base%field_out%at(i)%pt%field 133 130 ioipsl_file_id=pt_field%internal(id_file) 134 CALL histwrite(ioipsl_file_id, TRIM(pt_field%name), timestep_n b, var, size(var), nindex)131 CALL histwrite(ioipsl_file_id, TRIM(pt_field%name), timestep_number, var, size(var), nindex) 135 132 ENDDO 136 133 ENDIF … … 162 159 pt_field=>pt_field_base%field_out%at(i)%pt%field 163 160 ioipsl_file_id=pt_field%internal(id_file) 164 CALL histwrite(ioipsl_file_id, TRIM(pt_field%name), timestep_n b, var, size(var), nindex)161 CALL histwrite(ioipsl_file_id, TRIM(pt_field%name), timestep_number, var, size(var), nindex) 165 162 ENDDO 166 163 ENDIF … … 169 166 170 167 SUBROUTINE set_timestep(timestep_nb0) 168 USE xmlio 171 169 IMPLICIT NONE 172 170 INTEGER,INTENT(IN) :: timestep_nb0 173 171 174 timestep_n b=timestep_nb0172 timestep_number=timestep_nb0 175 173 176 174 END SUBROUTINE set_timestep -
XMLIO_SERVER/trunk/src/XMLIO/mod_context.f90
r26 r28 15 15 USE mod_axis_definition 16 16 USE mod_dependency 17 USE mod_time_parameters 17 18 18 19 … … 48 49 TYPE(vector_field_out),POINTER :: dependency__field_enabled 49 50 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 52 57 END TYPE context 53 58 … … 132 137 ALLOCATE(pt_context%dependency__field_id) 133 138 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) 134 143 135 144 CALL context__swap(pt_context) … … 207 216 CALL axis_definition__swap_context(pt_context%axis_definition__axis_definition) 208 217 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 210 222 END SUBROUTINE context__swap_pt 211 223 -
XMLIO_SERVER/trunk/src/XMLIO/xmlio.f90
r26 r28 17 17 USE error_msg 18 18 USE mod_context 19 USE mod_time_parameters 19 20 20 21 CONTAINS
Note: See TracChangeset
for help on using the changeset viewer.