Changeset 2039 for palm/trunk/SOURCE/check_open.f90
- Timestamp:
- Oct 26, 2016 4:53:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_open.f90
r2001 r2039 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Removed open of file 'PLOTTS_DATA' ( CASE(50:59) ) as it is no longer needed 23 23 ! 24 24 ! Former revisions: … … 163 163 ONLY: cross_ts_numbers, cross_ts_number_count 164 164 165 USE statistics, &166 ONLY: region, statistic_regions167 168 165 169 166 IMPLICIT NONE … … 524 521 ENDIF 525 522 526 CASE ( 50:59 )527 528 IF ( statistic_regions == 0 .AND. file_id == 50 ) THEN529 suffix = ''530 ELSE531 WRITE ( suffix, '(''_'',I1)' ) file_id - 50532 ENDIF533 OPEN ( file_id, FILE='PLOTTS_DATA'//TRIM( coupling_char )// &534 TRIM( suffix ), &535 FORM='FORMATTED', RECL=496 )536 !537 !-- Write PROFIL parameter file for output of time series538 !-- NOTE: To be on the safe side, this output is done at the beginning of539 !-- the model run (in case of collapse) and it is repeated in540 !-- close_file, then, however, with value ranges for the coordinate541 !-- systems542 !543 !-- Firstly determine the number of the coordinate systems to be drawn544 cranz = 0545 DO j = 1, 10546 IF ( cross_ts_number_count(j) /= 0 ) cranz = cranz+1547 ENDDO548 rtext = '\1.0 ' // TRIM( run_description_header ) // ' ' // &549 TRIM( region( file_id - 50 ) )550 !551 !-- Write RAHMEN parameter552 OPEN ( 90, FILE='PLOTTS_PAR'//TRIM( coupling_char )// &553 TRIM( suffix ), &554 FORM='FORMATTED', DELIM='APOSTROPHE' )555 WRITE ( 90, RAHMEN )556 !557 !-- Determine and write CROSS parameters for the individual coordinate558 !-- systems559 DO j = 1, 10560 k = cross_ts_number_count(j)561 IF ( k /= 0 ) THEN562 !563 !-- Store curve numbers, colours and line style564 klist(1:k) = cross_ts_numbers(1:k,j)565 klist(k+1:10) = 999999566 !567 !-- Write CROSS parameter568 WRITE ( 90, CROSS )569 570 ENDIF571 ENDDO572 573 CLOSE ( 90 )574 !575 !-- Write all labels at the top of the data file, but only during the576 !-- first run of a sequence of jobs. The following jobs copy the time577 !-- series data to the bottom of that file.578 IF ( runnr == 0 ) THEN579 WRITE ( file_id, 5000 ) TRIM( run_description_header ) // &580 ' ' // TRIM( region( file_id - 50 ) )581 ENDIF582 583 584 523 CASE ( 80 ) 585 524
Note: See TracChangeset
for help on using the changeset viewer.