Changeset 959 for palm/trunk/SOURCE
- Timestamp:
- Jul 24, 2012 1:13:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/netcdf.f90
r952 r959 7 7 ! Current revisions: 8 8 ! ------------------ 9 ! 9 ! Bugfix in cross_profiles. It is not possible to arrange more than 100 10 ! profiles with cross_profiles. 10 11 ! 11 12 ! Former revisions: … … 117 118 CHARACTER (LEN=10) :: netcdf_var_name, precision, var 118 119 CHARACTER (LEN=80) :: time_average_text 119 CHARACTER (LEN=2000) :: char_cross_profiles, var_list, & 120 var_list_old 120 CHARACTER (LEN=2000) :: char_cross_profiles, & 121 message_cross_profiles, & 122 var_list, var_list_old 121 123 122 124 CHARACTER (LEN=100), DIMENSION(1:crmax) :: cross_profiles_adj, & … … 3169 3171 IF ( TRIM( cross_profiles_adj(i) ) == ' ' ) EXIT 3170 3172 delim_old = 0 3171 DO j = 1, 1003173 DO j = 1, crmax 3172 3174 delim = INDEX( cross_profiles_adj(i)(delim_old+1:), ' ' ) 3173 3175 IF (delim .EQ. 1) EXIT 3174 cross_profiles_char( k) = cross_profiles_adj(i)(delim_old+1:&3175 delim_old+delim-1)3176 cross_profiles_numb( k) = i3176 cross_profiles_char( MIN( crmax, k ) ) = cross_profiles_adj(i) & 3177 (delim_old+1:delim_old+delim-1) 3178 cross_profiles_numb( MIN( crmax, k ) ) = i 3177 3179 k = k+1 3178 3180 cross_profiles_maxi = i … … 3181 3183 ENDDO 3182 3184 3183 cross_profiles_count = k-13185 cross_profiles_count = MIN( crmax, k-1 ) 3184 3186 3185 3187 ! … … 3192 3194 DO i = 1, cross_profiles_count 3193 3195 DO j = 1, dopr_n 3194 IF ( TRIM(cross_profiles_char(i) ) == TRIM(data_output_pr(j)) ) &3196 IF ( TRIM(cross_profiles_char(i) ) == TRIM(data_output_pr(j)) ) & 3195 3197 EXIT 3196 3198 IF ( j == dopr_n) THEN … … 3223 3225 cross_profiles_count = cross_profiles_count + 1 3224 3226 cross_profiles_maxi = cross_profiles_maxi + 1 3225 cross_profiles_char( cross_profiles_count ) =&3227 cross_profiles_char( MIN( crmax, cross_profiles_count ) ) = & 3226 3228 TRIM( data_output_pr(i) ) 3227 cross_profiles_numb(cross_profiles_count) = cross_profiles_maxi 3229 cross_profiles_numb( MIN( crmax, cross_profiles_count ) ) = & 3230 cross_profiles_maxi 3228 3231 cross_profiles_log = .TRUE. 3229 message_string = TRIM( message_string ) // ', ' //&3230 TRIM( data_output_pr(i) )3232 message_string = TRIM( message_string ) // ', '& 3233 // TRIM( data_output_pr(i) ) 3231 3234 ENDIF 3232 3235 ENDDO … … 3234 3237 3235 3238 IF ( cross_profiles_log ) THEN 3236 message_string = TRIM(message_string(2:)) // ' has/have been' // &3237 'added to cross_profiles.'3239 message_string = TRIM(message_string(2:)) // & 3240 ' has/have been added to cross_profiles.' 3238 3241 CALL message( 'define_netcdf_header', 'PA0353', 0, 0, 0, 6, 0 ) 3242 ENDIF 3243 3244 IF ( cross_profiles_count .ge. crmax ) THEN 3245 message_string = 'It is not possible to arrange more than '& 3246 // '100 profiles with cross_profiles.' 3247 CALL message( 'define_netcdf_header', 'PA0354', 0, 0, 0, 6, 0 ) 3239 3248 ENDIF 3240 3249
Note: See TracChangeset
for help on using the changeset viewer.