Changeset 1783 for palm/trunk/SOURCE/close_file.f90
- Timestamp:
- Mar 6, 2016 6:36:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/close_file.f90
r1683 r1783 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! name change of netcdf routines and module + related changes 22 22 ! 23 23 ! Former revisions: … … 65 65 66 66 USE control_parameters, & 67 ONLY: do2d_xz_n, do2d_xy_n, do2d_yz_n, do3d_avs_n, & 68 host, max_masks, mid, netcdf_data_format, & 69 nz_do3d, openfile, run_description_header, & 70 z_max_do2d 67 ONLY: do2d_xz_n, do2d_xy_n, do2d_yz_n, do3d_avs_n, host, max_masks, & 68 mid, nz_do3d, openfile, run_description_header, z_max_do2d 71 69 72 70 USE grid_variables, & … … 78 76 USE kinds 79 77 80 USE netcdf_control 78 #if defined( __netcdf ) 79 USE NETCDF 80 #endif 81 82 USE netcdf_interface, & 83 ONLY: id_set_mask, id_set_pr, id_set_prt, id_set_pts, id_set_sp, & 84 id_set_ts, id_set_xy, id_set_xz, id_set_yz, id_set_3d, nc_stat, & 85 netcdf_data_format, netcdf_handle_error 81 86 82 87 USE pegrid … … 132 137 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 133 138 nc_stat = NF90_CLOSE( id_set_xy(0) ) 134 CALL handle_netcdf_error( 'close_file', 44 )139 CALL netcdf_handle_error( 'close_file', 44 ) 135 140 ENDIF 136 141 … … 139 144 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 140 145 nc_stat = NF90_CLOSE( id_set_xz(0) ) 141 CALL handle_netcdf_error( 'close_file', 45 )146 CALL netcdf_handle_error( 'close_file', 45 ) 142 147 ENDIF 143 148 … … 146 151 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 147 152 nc_stat = NF90_CLOSE( id_set_yz(0) ) 148 CALL handle_netcdf_error( 'close_file', 46 )153 CALL netcdf_handle_error( 'close_file', 46 ) 149 154 ENDIF 150 155 … … 153 158 IF ( myid == 0 ) THEN 154 159 nc_stat = NF90_CLOSE( id_set_pr ) 155 CALL handle_netcdf_error( 'close_file', 47 )160 CALL netcdf_handle_error( 'close_file', 47 ) 156 161 ENDIF 157 162 … … 160 165 IF ( myid == 0 ) THEN 161 166 nc_stat = NF90_CLOSE( id_set_ts ) 162 CALL handle_netcdf_error( 'close_file', 48 )167 CALL netcdf_handle_error( 'close_file', 48 ) 163 168 ENDIF 164 169 … … 167 172 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 168 173 nc_stat = NF90_CLOSE( id_set_3d(0) ) 169 CALL handle_netcdf_error( 'close_file', 49 )174 CALL netcdf_handle_error( 'close_file', 49 ) 170 175 ENDIF 171 176 … … 174 179 IF ( myid == 0 ) THEN 175 180 nc_stat = NF90_CLOSE( id_set_sp ) 176 CALL handle_netcdf_error( 'close_file', 50 )181 CALL netcdf_handle_error( 'close_file', 50 ) 177 182 ENDIF 178 183 … … 180 185 181 186 nc_stat = NF90_CLOSE( id_set_prt ) 182 CALL handle_netcdf_error( 'close_file', 51 )187 CALL netcdf_handle_error( 'close_file', 51 ) 183 188 184 189 CASE ( 109 ) 185 190 186 191 nc_stat = NF90_CLOSE( id_set_pts ) 187 CALL handle_netcdf_error( 'close_file', 412 )192 CALL netcdf_handle_error( 'close_file', 412 ) 188 193 189 194 CASE ( 111 ) … … 191 196 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 192 197 nc_stat = NF90_CLOSE( id_set_xy(1) ) 193 CALL handle_netcdf_error( 'close_file', 52 )198 CALL netcdf_handle_error( 'close_file', 52 ) 194 199 ENDIF 195 200 … … 198 203 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 199 204 nc_stat = NF90_CLOSE( id_set_xz(1) ) 200 CALL handle_netcdf_error( 'close_file', 352 )205 CALL netcdf_handle_error( 'close_file', 352 ) 201 206 ENDIF 202 207 … … 205 210 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 206 211 nc_stat = NF90_CLOSE( id_set_yz(1) ) 207 CALL handle_netcdf_error( 'close_file', 353 )212 CALL netcdf_handle_error( 'close_file', 353 ) 208 213 ENDIF 209 214 … … 212 217 IF ( myid == 0 .OR. netcdf_data_format > 4 ) THEN 213 218 nc_stat = NF90_CLOSE( id_set_3d(1) ) 214 CALL handle_netcdf_error( 'close_file', 353 )219 CALL netcdf_handle_error( 'close_file', 353 ) 215 220 ENDIF 216 221 … … 228 233 ENDIF 229 234 nc_stat = NF90_CLOSE( id_set_mask(mid,av) ) 230 CALL handle_netcdf_error( 'close_file', 459 )235 CALL netcdf_handle_error( 'close_file', 459 ) 231 236 232 237 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.