Changeset 29 for XMLIO_SERVER/trunk/src/XMLIO/mod_dependency.f90
- Timestamp:
- 04/15/09 17:34:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_SERVER/trunk/src/XMLIO/mod_dependency.f90
r26 r29 5 5 USE mod_axis 6 6 USE mod_sorted_list 7 USE mod_zoom 7 8 8 9 TYPE file_dep … … 11 12 TYPE(vector_field),POINTER :: fields 12 13 TYPE(vector_grid),POINTER :: grids 14 TYPE(vector_zoom),POINTER :: zooms 13 15 TYPE(vector_axis),POINTER :: axis 14 16 END TYPE file_dep … … 26 28 TYPE(axis), POINTER :: axis 27 29 TYPE(grid), POINTER :: grid 30 TYPE(zoom), POINTER :: zoom 28 31 END TYPE field_out 29 32 … … 82 85 TYPE (sorted_list),POINTER :: sorted_axis 83 86 TYPE (sorted_list),POINTER :: sorted_grid 87 TYPE (sorted_list),POINTER :: sorted_zoom 84 88 INTEGER :: i 85 89 INTEGER :: j … … 87 91 ALLOCATE(sorted_axis) 88 92 ALLOCATE(sorted_grid) 93 ALLOCATE(sorted_zoom) 89 94 90 95 IF (PRESENT(Pt_file_group)) THEN … … 106 111 ALLOCATE(Pt_file_dep%fields) 107 112 ALLOCATE(Pt_file_dep%grids) 113 ALLOCATE(Pt_file_dep%zooms) 108 114 ALLOCATE(Pt_file_dep%axis) 109 115 pt_file_dep%file=>pt_file … … 111 117 CALL vector_field__new(Pt_file_dep%fields) 112 118 CALL vector_grid__new(Pt_file_dep%grids) 119 CALL vector_zoom__new(Pt_file_dep%zooms) 113 120 CALL vector_axis__new(Pt_file_dep%axis) 114 121 CALL sorted_list__new(sorted_axis) 115 122 CALL sorted_list__new(sorted_grid) 123 CALL sorted_list__new(sorted_zoom) 116 124 117 125 CALL Treat_field_group(pt_file%field_list) … … 119 127 CALL sorted_list__delete(sorted_axis) 120 128 CALL sorted_list__delete(sorted_grid) 129 CALL sorted_list__delete(sorted_zoom) 121 130 ENDIF 122 131 ENDDO … … 152 161 CALL vector_grid__set_new(pt_file_dep%grids,Pt_field%grid,pos) 153 162 CALL sorted_list__add(sorted_grid,hash(Pt_field%grid%id),pos) 163 ENDIF 164 ENDIF 165 166 IF (Pt_field%has_zoom) THEN 167 CALL sorted_list__find(sorted_zoom,hash(Pt_field%zoom%id),pos,found) 168 IF (.NOT. found) THEN 169 CALL vector_zoom__set_new(pt_file_dep%zooms,Pt_field%zoom,pos) 170 CALL sorted_list__add(sorted_zoom,hash(Pt_field%zoom%id),pos) 154 171 ENDIF 155 172 ENDIF … … 185 202 pt_field_out%axis=>pt_field_out%field%axis 186 203 pt_field_out%grid=>pt_field_out%field%grid 204 pt_field_out%zoom=>pt_field_out%field%zoom 187 205 ENDDO 188 206 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.