Changeset 964 for palm/trunk/SOURCE/check_parameters.f90
- Timestamp:
- Jul 26, 2012 9:14:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_parameters.f90
r941 r964 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! check of old profil-parameters removed 7 7 ! 8 8 ! Former revisions: … … 2518 2518 END SELECT 2519 2519 2520 !2521 !-- Check to which of the predefined coordinate systems the profile belongs2522 DO k = 1, crmax2523 IF ( INDEX( cross_profiles(k), ' '//TRIM( data_output_pr(i) )//' ' ) &2524 /=0 ) &2525 THEN2526 dopr_crossindex(i) = k2527 EXIT2528 ENDIF2529 ENDDO2530 !2531 !-- Generate the text for the labels of the PROFIL output file. "-characters2532 !-- must be substituted, otherwise PROFIL would interpret them as TeX2533 !-- control characters2534 dopr_label(i) = data_output_pr(i)2535 position = INDEX( dopr_label(i) , '"' )2536 DO WHILE ( position /= 0 )2537 dopr_label(i)(position:position) = ''''2538 position = INDEX( dopr_label(i) , '"' )2539 ENDDO2540 2541 2520 ENDDO 2542 2543 !2544 !-- y-value range of the coordinate system (PROFIL).2545 !-- x-value range determined in plot_1d.2546 IF ( .NOT. ocean ) THEN2547 cross_uymin = 0.02548 IF ( z_max_do1d == -1.0 ) THEN2549 cross_uymax = zu(nzt+1)2550 ELSEIF ( z_max_do1d < zu(nzb+1) .OR. z_max_do1d > zu(nzt+1) ) THEN2551 WRITE( message_string, * ) 'z_max_do1d = ', z_max_do1d, ' must ', &2552 'be >= ', zu(nzb+1), ' or <= ', zu(nzt+1)2553 CALL message( 'check_parameters', 'PA0099', 1, 2, 0, 6, 0 )2554 ELSE2555 cross_uymax = z_max_do1d2556 ENDIF2557 ENDIF2558 2559 !2560 !-- Check whether the chosen normalizing factor for the coordinate systems is2561 !-- permissible2562 DO i = 1, crmax2563 SELECT CASE ( TRIM( cross_normalized_x(i) ) ) ! TRIM required on IBM2564 2565 CASE ( '', 'wpt0', 'ws2', 'tsw2', 'ws3', 'ws2tsw', 'wstsw2' )2566 j = 02567 2568 CASE DEFAULT2569 message_string = 'unknown normalization method cross_normali' // &2570 'zed_x = "' // TRIM( cross_normalized_x(i) ) // &2571 '"'2572 CALL message( 'check_parameters', 'PA0100', 1, 2, 0, 6, 0 )2573 2574 END SELECT2575 SELECT CASE ( TRIM( cross_normalized_y(i) ) ) ! TRIM required on IBM2576 2577 CASE ( '', 'z_i' )2578 j = 02579 2580 CASE DEFAULT2581 message_string = 'unknown normalization method cross_normali' // &2582 'zed_y = "' // TRIM( cross_normalized_y(i) ) // &2583 '"'2584 CALL message( 'check_parameters', 'PA0101', 1, 2, 0, 6, 0 )2585 2586 END SELECT2587 ENDDO2588 !2589 !-- Check normalized y-value range of the coordinate system (PROFIL)2590 IF ( z_max_do1d_normalized /= -1.0 .AND. z_max_do1d_normalized <= 0.0 ) &2591 THEN2592 WRITE( message_string, * ) 'z_max_do1d_normalized = ', &2593 z_max_do1d_normalized, ' must be >= 0.0'2594 CALL message( 'check_parameters', 'PA0101', 1, 2, 0, 6, 0 )2595 ENDIF2596 2521 2597 2522 … … 2864 2789 2865 2790 ! 2866 !-- Upper plot limit (grid point value) for 1D profiles2867 IF ( z_max_do1d == -1.0 ) THEN2868 2869 nz_do1d = nzt+12870 2871 ELSE2872 DO k = nzb+1, nzt+12873 nz_do1d = k2874 IF ( zw(k) > z_max_do1d ) EXIT2875 ENDDO2876 ENDIF2877 2878 !2879 2791 !-- Upper plot limit for 2D vertical sections 2880 2792 IF ( z_max_do2d == -1.0 ) z_max_do2d = zu(nzt) … … 2958 2870 CASE ( 'iso2d' ) 2959 2871 iso2d_output = .TRUE. 2960 CASE ( 'profil' )2961 profil_output = .TRUE.2962 2872 CASE ( 'avs' ) 2963 2873 avs_output = .TRUE.
Note: See TracChangeset
for help on using the changeset viewer.