Changeset 983 for palm/trunk/SOURCE
- Timestamp:
- Aug 21, 2012 2:17:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/netcdf.f90
r965 r983 7 7 ! Current revisions: 8 8 ! ------------------ 9 ! 9 ! Bugfix in cross_profiles. 10 10 ! 11 11 ! Former revisions: … … 3166 3166 cross_profiles_adj = ADJUSTL( cross_profiles ) 3167 3167 cross_profiles_numb = 999999 3168 cross_profiles_char = '' 3168 3169 3169 3170 ! … … 3223 3224 ENDIF 3224 3225 3226 DO i = 1, crmax 3227 IF ( cross_profiles_numb(i) == 999999 ) THEN 3228 DO j = i + 1, crmax 3229 IF ( cross_profiles_numb(j) /= 999999 ) THEN 3230 cross_profiles_char(i) = cross_profiles_char(j) 3231 cross_profiles_numb(i) = cross_profiles_numb(j) 3232 cross_profiles_numb(j) = 999999 3233 EXIT 3234 ENDIF 3235 ENDDO 3236 ENDIF 3237 ENDDO 3238 3239 DO i = 1, crmax-1 3240 IF ( cross_profiles_numb(i + 1) == 999999 ) THEN 3241 cross_profiles_count = i 3242 EXIT 3243 ENDIF 3244 ENDDO 3225 3245 ! 3226 3246 !-- Check if all profiles defined in data_output_pr are defined in … … 3237 3257 ENDIF 3238 3258 3239 IF ( j == cross_profiles_count ) THEN 3259 IF (( j == cross_profiles_count ) .AND. & 3260 ( cross_profiles_count <= crmax - 1)) THEN 3240 3261 cross_profiles_count = cross_profiles_count + 1 3241 3262 cross_profiles_maxi = cross_profiles_maxi + 1 … … 3260 3281 IF ( cross_profiles_count >= crmax ) THEN 3261 3282 message_string = 'It is not allowed to arrange more than '& 3262 // '100 profiles with cross_profiles.' 3283 // '100 profiles with cross_profiles. Apart '& 3284 // 'from that, all profiles are saved to the '& 3285 // 'netCDF file.' 3263 3286 CALL message( 'define_netcdf_header', 'PA0354', 0, 0, 0, 6, 0 ) 3264 3287 ENDIF … … 3270 3293 char_cross_profiles = ';' 3271 3294 id_last = 1 3295 cross_profiles_count = MIN( cross_profiles_count, crmax ) 3272 3296 3273 3297 DO i = 1, cross_profiles_count
Note: See TracChangeset
for help on using the changeset viewer.