source: palm/trunk/SOURCE/check_open.f90 @ 1784

Last change on this file since 1784 was 1784, checked in by raasch, 8 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 43.5 KB
Line 
1!> @file check_open.f90
2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2014 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21!
22!
23! Former revisions:
24! -----------------
25! $Id: check_open.f90 1784 2016-03-06 19:14:40Z raasch $
26!
27! 1783 2016-03-06 18:36:17Z raasch
28! name change of netcdf routines and module + related changes
29!
30! 1779 2016-03-03 08:01:28Z raasch
31! coupling_char is trimmed at every place it occurs, because it can have
32! different length now
33!
34! 1745 2016-02-05 13:06:51Z gronemeier
35! Bugfix: added MPI barrier after deleting existing non-extendable file by PE0
36!
37! 1682 2015-10-07 23:56:08Z knoop
38! Code annotations made doxygen readable
39!
40! 1551 2015-03-03 14:18:16Z maronga
41! Removed redundant output for combine_plot_fields
42!
43! 1468 2014-09-24 14:06:57Z maronga
44! Adapted for use on up to 6-digit processor cores
45! Added file unit 117 (PROGRESS)
46!
47! 1359 2014-04-11 17:15:14Z hoffmann
48! Format of particle exchange statistics extended to reasonable numbers of     
49! particles.
50!
51! 1353 2014-04-08 15:21:23Z heinze
52! REAL constants provided with KIND-attribute,
53! declaration for unused variables xkoor, ykoor, zkoor removed
54!
55! 1327 2014-03-21 11:00:16Z raasch
56! parts concerning iso2d and avs output removed
57!
58! 1320 2014-03-20 08:40:49Z raasch
59! ONLY-attribute added to USE-statements,
60! kind-parameters added to all INTEGER and REAL declaration statements,
61! kinds are defined in new module kinds,
62! old module precision_kind is removed,
63! revision history before 2012 removed,
64! comment fields (!:) to be used for variable explanations added to
65! all variable declaration statements
66!
67! 1106 2013-03-04 05:31:38Z raasch
68! array_kind renamed precision_kind
69!
70! 1092 2013-02-02 11:24:22Z raasch
71! unused variables removed
72!
73! 1036 2012-10-22 13:43:42Z raasch
74! code put under GPL (PALM 3.9)
75!
76! 1031 2012-10-19 14:35:30Z raasch
77! netCDF4 without parallel file support implemented,
78! opening of netCDF files are done by new routines create_netcdf_file and
79! open_write_netcdf_file
80!
81! 964 2012-07-26 09:14:24Z raasch
82! old profil-units (40:49) removed,
83! append feature removed from unit 14
84!
85! 849 2012-03-15 10:35:09Z raasch
86! comment changed
87!
88! 809 2012-01-30 13:32:58Z maronga
89! Bugfix: replaced .AND. and .NOT. with && and ! in the preprocessor directives
90!
91! 807 2012-01-25 11:53:51Z maronga
92! New cpp directive "__check" implemented which is used by check_namelist_files
93!
94! Revision 1.1  1997/08/11 06:10:55  raasch
95! Initial revision
96!
97!
98! Description:
99! ------------
100!> Check if file unit is open. If not, open file and, if necessary, write a
101!> header or start other initializing actions, respectively.
102!------------------------------------------------------------------------------!
103SUBROUTINE check_open( file_id )
104 
105
106    USE arrays_3d,                                                             &
107        ONLY:  zu
108
109    USE control_parameters,                                                    &
110        ONLY:  avs_data_file, coupling_char, data_output_2d_on_each_pe, host,  &
111               max_masks, message_string, mid, nz_do3d, openfile,              &
112               return_addres, return_username, run_description_header, runnr
113
114    USE grid_variables,                                                        &
115        ONLY:  dx, dy
116
117    USE indices,                                                               &
118        ONLY:  nbgp, nx, nxl, nxr, ny, nyn, nyng, nys, nysg, nz, nzb, nzt 
119
120    USE kinds
121
122#if defined( __netcdf )
123    USE NETCDF
124#endif
125
126    USE netcdf_interface,                                                      &
127        ONLY:  id_set_mask, id_set_pr, id_set_prt, id_set_pts, id_set_sp,      &
128               id_set_ts, id_set_xy, id_set_xz, id_set_yz, id_set_3d, nc_stat, &
129               netcdf_create_file, netcdf_data_format, netcdf_define_header,   &
130               netcdf_handle_error, netcdf_open_write_file
131
132    USE particle_attributes,                                                   &
133        ONLY:  max_number_of_particle_groups, number_of_particle_groups,       &
134               particle_groups
135
136    USE pegrid
137
138    USE profil_parameter,                                                      &
139        ONLY:  cross_ts_numbers, cross_ts_number_count
140
141    USE statistics,                                                            &
142        ONLY:  region, statistic_regions
143
144
145    IMPLICIT NONE
146
147    CHARACTER (LEN=2)   ::  mask_char               !<
148    CHARACTER (LEN=2)   ::  suffix                  !<
149    CHARACTER (LEN=20)  ::  xtext = 'time in s'     !<
150    CHARACTER (LEN=30)  ::  filename                !<
151    CHARACTER (LEN=40)  ::  avs_coor_file           !<
152    CHARACTER (LEN=40)  ::  avs_coor_file_localname !<
153    CHARACTER (LEN=40)  ::  avs_data_file_localname !<
154    CHARACTER (LEN=80)  ::  rtext                   !<
155    CHARACTER (LEN=100) ::  avs_coor_file_catalog   !<
156    CHARACTER (LEN=100) ::  avs_data_file_catalog   !<
157    CHARACTER (LEN=100) ::  batch_scp               !<
158    CHARACTER (LEN=100) ::  line                    !<
159    CHARACTER (LEN=400) ::  command                 !<
160
161    INTEGER(iwp) ::  av          !<
162    INTEGER(iwp) ::  numline = 1 !<
163    INTEGER(iwp) ::  cranz       !<
164    INTEGER(iwp) ::  file_id     !<
165    INTEGER(iwp) ::  i           !<
166    INTEGER(iwp) ::  iaddres     !<
167    INTEGER(iwp) ::  iusern      !<
168    INTEGER(iwp) ::  j           !<
169    INTEGER(iwp) ::  k           !<
170    INTEGER(iwp) ::  legpos = 1  !<
171    INTEGER(iwp) ::  timodex = 1 !<
172   
173    INTEGER(iwp), DIMENSION(10) ::  klist !<
174
175    LOGICAL ::  avs_coor_file_found = .FALSE. !<
176    LOGICAL ::  avs_data_file_found = .FALSE. !<
177    LOGICAL ::  datleg = .TRUE.               !<
178    LOGICAL ::  get_filenames                 !<
179    LOGICAL ::  grid = .TRUE.                 !<
180    LOGICAL ::  netcdf_extend                 !<
181    LOGICAL ::  rand = .TRUE.                 !<
182    LOGICAL ::  swap = .TRUE.                 !<
183    LOGICAL ::  twoxa = .TRUE.                !<
184    LOGICAL ::  twoya = .TRUE.                !<
185
186    REAL(wp) ::  ansx = -999.999_wp !<
187    REAL(wp) ::  ansy = -999.999_wp !<
188    REAL(wp) ::  gwid = 0.1_wp      !<
189    REAL(wp) ::  rlegfak = 1.5_wp   !<
190    REAL(wp) ::  sizex = 250.0_wp   !<
191    REAL(wp) ::  sizey = 40.0_wp    !<
192    REAL(wp) ::  texfac = 1.5_wp    !<
193
194    REAL(wp), DIMENSION(:), ALLOCATABLE      ::  eta !<
195    REAL(wp), DIMENSION(:), ALLOCATABLE      ::  ho  !<
196    REAL(wp), DIMENSION(:), ALLOCATABLE      ::  hu  !<
197 
198
199
200    NAMELIST /RAHMEN/  numline, cranz, datleg, rtext, swap
201    NAMELIST /CROSS/   ansx, ansy, grid, gwid, klist, legpos,                  &
202                       rand, rlegfak, sizex, sizey, texfac,                    &
203                       timodex, twoxa, twoya, xtext
204                       
205
206!
207!-- Immediate return if file already open
208    IF ( openfile(file_id)%opened )  RETURN
209
210#if ! defined ( __check )
211!
212!-- Only certain files are allowed to be re-opened
213!-- NOTE: some of the other files perhaps also could be re-opened, but it
214!--       has not been checked so far, if it works!
215    IF ( openfile(file_id)%opened_before )  THEN
216       SELECT CASE ( file_id )
217          CASE ( 13, 14, 21, 22, 23, 80:85, 117 )
218             IF ( file_id == 14 .AND. openfile(file_id)%opened_before )  THEN
219                message_string = 're-open of unit ' //                         &
220                                 '14 is not verified. Please check results!'
221                CALL message( 'check_open', 'PA0165', 0, 1, 0, 6, 0 )       
222             ENDIF
223
224          CASE DEFAULT
225             WRITE( message_string, * ) 're-opening of file-id ', file_id,     &
226                                        ' is not allowed'
227             CALL message( 'check_open', 'PA0166', 0, 1, 0, 6, 0 )   
228               
229             RETURN
230
231       END SELECT
232    ENDIF
233#endif
234
235!
236!-- Check if file may be opened on the relevant PE
237    SELECT CASE ( file_id )
238
239       CASE ( 15, 16, 17, 18, 19, 50:59, 81:84, 104:105, 107, 109, 117 )
240             
241          IF ( myid /= 0 )  THEN
242             WRITE( message_string, * ) 'opening file-id ',file_id,            &
243                                        ' not allowed for PE ',myid
244             CALL message( 'check_open', 'PA0167', 2, 2, -1, 6, 1 )
245          ENDIF
246
247       CASE ( 101:103, 106, 111:113, 116, 201:200+2*max_masks )
248
249          IF ( netcdf_data_format < 5 )  THEN
250         
251             IF ( myid /= 0 )  THEN
252                WRITE( message_string, * ) 'opening file-id ',file_id,         &
253                                           ' not allowed for PE ',myid
254                CALL message( 'check_open', 'PA0167', 2, 2, -1, 6, 1 )
255             ENDIF
256             
257          ENDIF
258
259       CASE ( 21, 22, 23 )
260
261          IF ( .NOT.  data_output_2d_on_each_pe )  THEN
262             IF ( myid /= 0 )  THEN
263                WRITE( message_string, * ) 'opening file-id ',file_id,         &
264                                           ' not allowed for PE ',myid
265                CALL message( 'check_open', 'PA0167', 2, 2, -1, 6, 1 )
266             END IF
267          ENDIF
268
269       CASE ( 27, 28, 29, 31, 33, 71:73, 90:99 )
270
271!
272!--       File-ids that are used temporarily in other routines
273          WRITE( message_string, * ) 'opening file-id ',file_id,               &
274                                    ' is not allowed since it is used otherwise'
275          CALL message( 'check_open', 'PA0168', 0, 1, 0, 6, 0 ) 
276         
277    END SELECT
278
279!
280!-- Open relevant files
281    SELECT CASE ( file_id )
282
283       CASE ( 11 )
284
285#if defined ( __check )
286!
287!--       In case of a prior parameter file check, the p3d data is stored in
288!--       PARIN, while the p3df is stored in PARINF. This only applies to
289!--       check_namelist_files!
290          IF ( check_restart == 2 ) THEN
291             OPEN ( 11, FILE='PARINF'//TRIM( coupling_char ),                  &
292                        FORM='FORMATTED', STATUS='OLD' )
293          ELSE
294             OPEN ( 11, FILE='PARIN'//TRIM( coupling_char ), FORM='FORMATTED', &
295                        STATUS='OLD' )
296          END IF
297#else
298
299          OPEN ( 11, FILE='PARIN'//TRIM( coupling_char ), FORM='FORMATTED',    &
300                     STATUS='OLD' )
301#endif
302
303       CASE ( 13 )
304
305          IF ( myid_char == '' )  THEN
306             OPEN ( 13, FILE='BININ'//TRIM( coupling_char )//myid_char,        &
307                        FORM='UNFORMATTED', STATUS='OLD' )
308          ELSE
309!
310!--          First opening of unit 13 openes file _000000 on all PEs because
311!--          only this file contains the global variables
312             IF ( .NOT. openfile(file_id)%opened_before )  THEN
313                OPEN ( 13, FILE='BININ'//TRIM( coupling_char )//'/_000000',    &
314                           FORM='UNFORMATTED', STATUS='OLD' )
315             ELSE
316                OPEN ( 13, FILE='BININ'//TRIM( coupling_char )//'/'//          &
317                           myid_char, FORM='UNFORMATTED', STATUS='OLD' )
318             ENDIF
319          ENDIF
320
321       CASE ( 14 )
322
323          IF ( myid_char == '' )  THEN
324             OPEN ( 14, FILE='BINOUT'//TRIM( coupling_char )//myid_char,       &
325                        FORM='UNFORMATTED', POSITION='APPEND' )
326          ELSE
327             IF ( myid == 0  .AND. .NOT. openfile(file_id)%opened_before )  THEN
328                CALL local_system( 'mkdir  BINOUT' // TRIM( coupling_char ) )
329             ENDIF
330#if defined( __parallel ) && ! defined ( __check )
331!
332!--          Set a barrier in order to allow that all other processors in the
333!--          directory created by PE0 can open their file
334             CALL MPI_BARRIER( comm2d, ierr )
335#endif
336             OPEN ( 14, FILE='BINOUT'//TRIM(coupling_char)//'/'//myid_char,    &
337                        FORM='UNFORMATTED' )
338          ENDIF
339
340       CASE ( 15 )
341
342          OPEN ( 15, FILE='RUN_CONTROL'//TRIM( coupling_char ),                &
343                     FORM='FORMATTED' )
344
345       CASE ( 16 )
346
347          OPEN ( 16, FILE='LIST_PROFIL'//TRIM( coupling_char ),                &
348                     FORM='FORMATTED' )
349
350       CASE ( 17 )
351
352          OPEN ( 17, FILE='LIST_PROFIL_1D'//TRIM( coupling_char ),             &
353                     FORM='FORMATTED' )
354
355       CASE ( 18 )
356
357          OPEN ( 18, FILE='CPU_MEASURES'//TRIM( coupling_char ),               &
358                     FORM='FORMATTED' )
359
360       CASE ( 19 )
361
362          OPEN ( 19, FILE='HEADER'//TRIM( coupling_char ), FORM='FORMATTED' )
363
364       CASE ( 20 )
365
366          IF ( myid == 0  .AND. .NOT. openfile(file_id)%opened_before )  THEN
367             CALL local_system( 'mkdir  DATA_LOG' // TRIM( coupling_char ) )
368          ENDIF
369          IF ( myid_char == '' )  THEN
370             OPEN ( 20, FILE='DATA_LOG'//TRIM( coupling_char )//'/_000000',    &
371                        FORM='UNFORMATTED', POSITION='APPEND' )
372          ELSE
373#if defined( __parallel ) && ! defined ( __check )
374!
375!--          Set a barrier in order to allow that all other processors in the
376!--          directory created by PE0 can open their file
377             CALL MPI_BARRIER( comm2d, ierr )
378#endif
379             OPEN ( 20, FILE='DATA_LOG'//TRIM( coupling_char )//'/'//          &
380                        myid_char, FORM='UNFORMATTED', POSITION='APPEND' )
381          ENDIF
382
383       CASE ( 21 )
384
385          IF ( data_output_2d_on_each_pe )  THEN
386             OPEN ( 21, FILE='PLOT2D_XY'//TRIM( coupling_char )//myid_char,    &
387                        FORM='UNFORMATTED', POSITION='APPEND' )
388          ELSE
389             OPEN ( 21, FILE='PLOT2D_XY'//TRIM( coupling_char ),                       &
390                        FORM='UNFORMATTED', POSITION='APPEND' )
391          ENDIF
392
393          IF ( myid == 0  .AND.  .NOT. openfile(file_id)%opened_before )  THEN
394!
395!--          Output for combine_plot_fields
396             IF ( data_output_2d_on_each_pe  .AND.  myid_char /= '' )  THEN
397                WRITE (21)  -nbgp, nx+nbgp, -nbgp, ny+nbgp    ! total array size
398                WRITE (21)   0, nx+1,  0, ny+1    ! output part
399             ENDIF
400!
401!--          Determine and write ISO2D coordiante header
402             ALLOCATE( eta(0:ny+1), ho(0:nx+1), hu(0:nx+1) )
403             hu = 0.0_wp
404             ho = (ny+1) * dy
405             DO  i = 1, ny
406                eta(i) = REAL( i ) / ( ny + 1.0_wp )
407             ENDDO
408             eta(0)    = 0.0_wp
409             eta(ny+1) = 1.0_wp
410
411             WRITE (21)  dx,eta,hu,ho
412             DEALLOCATE( eta, ho, hu )
413
414          ENDIF
415
416       CASE ( 22 )
417
418          IF ( data_output_2d_on_each_pe )  THEN
419             OPEN ( 22, FILE='PLOT2D_XZ'//TRIM( coupling_char )//myid_char,    &
420                        FORM='UNFORMATTED', POSITION='APPEND' )
421          ELSE
422             OPEN ( 22, FILE='PLOT2D_XZ'//TRIM( coupling_char ),               &
423                        FORM='UNFORMATTED', POSITION='APPEND' )
424          ENDIF
425
426          IF ( myid == 0  .AND.  .NOT. openfile(file_id)%opened_before )  THEN
427!
428!--          Output for combine_plot_fields
429             IF ( data_output_2d_on_each_pe  .AND.  myid_char /= '' )  THEN
430                WRITE (22)  -nbgp, nx+nbgp, 0, nz+1    ! total array size
431                WRITE (22)   0, nx+1, 0, nz+1    ! output part
432             ENDIF
433!
434!--          Determine and write ISO2D coordinate header
435             ALLOCATE( eta(0:nz+1), ho(0:nx+1), hu(0:nx+1) )
436             hu = 0.0_wp
437             ho = zu(nz+1)
438             DO  i = 1, nz
439                eta(i) = REAL( zu(i) ) / zu(nz+1)
440             ENDDO
441             eta(0)    = 0.0_wp
442             eta(nz+1) = 1.0_wp
443
444             WRITE (22)  dx,eta,hu,ho
445             DEALLOCATE( eta, ho, hu )
446
447          ENDIF
448
449       CASE ( 23 )
450
451          IF ( data_output_2d_on_each_pe )  THEN
452             OPEN ( 23, FILE='PLOT2D_YZ'//TRIM( coupling_char )//myid_char,    &
453                        FORM='UNFORMATTED', POSITION='APPEND' )
454          ELSE
455             OPEN ( 23, FILE='PLOT2D_YZ'//TRIM( coupling_char ),               &
456                        FORM='UNFORMATTED', POSITION='APPEND' )
457          ENDIF
458
459          IF ( myid == 0  .AND.  .NOT. openfile(file_id)%opened_before )  THEN
460!
461!--          Output for combine_plot_fields
462             IF ( data_output_2d_on_each_pe  .AND.  myid_char /= '' )  THEN
463                WRITE (23)  -nbgp, ny+nbgp, 0, nz+1    ! total array size
464                WRITE (23)   0, ny+1, 0, nz+1    ! output part
465             ENDIF
466!
467!--          Determine and write ISO2D coordiante header
468             ALLOCATE( eta(0:nz+1), ho(0:ny+1), hu(0:ny+1) )
469             hu = 0.0_wp
470             ho = zu(nz+1)
471             DO  i = 1, nz
472                eta(i) = REAL( zu(i) ) / zu(nz+1)
473             ENDDO
474             eta(0)    = 0.0_wp
475             eta(nz+1) = 1.0_wp
476
477             WRITE (23)  dx,eta,hu,ho
478             DEALLOCATE( eta, ho, hu )
479
480          ENDIF
481
482       CASE ( 30 )
483
484          OPEN ( 30, FILE='PLOT3D_DATA'//TRIM( coupling_char )//myid_char,     &
485                     FORM='UNFORMATTED' )
486!
487!--       Write coordinate file for AVS
488          IF ( myid == 0 )  THEN
489#if defined( __parallel )
490!
491!--          Specifications for combine_plot_fields
492             WRITE ( 30 )  -nbgp,nx+nbgp,-nbgp,ny+nbgp
493             WRITE ( 30 )  0,nx+1,0,ny+1,0,nz_do3d
494#endif
495          ENDIF
496
497       CASE ( 50:59 )
498
499          IF ( statistic_regions == 0  .AND.  file_id == 50 )  THEN
500             suffix = ''
501          ELSE
502             WRITE ( suffix, '(''_'',I1)' )  file_id - 50
503          ENDIF
504          OPEN ( file_id, FILE='PLOTTS_DATA'//TRIM( coupling_char )//          &
505                               TRIM( suffix ),                                 &
506                          FORM='FORMATTED', RECL=496 )
507!
508!--       Write PROFIL parameter file for output of time series
509!--       NOTE: To be on the safe side, this output is done at the beginning of
510!--             the model run (in case of collapse) and it is repeated in
511!--             close_file, then, however, with value ranges for the coordinate
512!--             systems
513!
514!--       Firstly determine the number of the coordinate systems to be drawn
515          cranz = 0
516          DO  j = 1, 10
517             IF ( cross_ts_number_count(j) /= 0 )  cranz = cranz+1
518          ENDDO
519          rtext = '\1.0 ' // TRIM( run_description_header ) // '    ' //       &
520                  TRIM( region( file_id - 50 ) )
521!
522!--       Write RAHMEN parameter
523          OPEN ( 90, FILE='PLOTTS_PAR'//TRIM( coupling_char )//                &
524                           TRIM( suffix ),                                     &
525                     FORM='FORMATTED', DELIM='APOSTROPHE' )
526          WRITE ( 90, RAHMEN )
527!
528!--       Determine and write CROSS parameters for the individual coordinate
529!--       systems
530          DO  j = 1, 10
531             k = cross_ts_number_count(j)
532             IF ( k /= 0 )  THEN
533!
534!--             Store curve numbers, colours and line style
535                klist(1:k) = cross_ts_numbers(1:k,j)
536                klist(k+1:10) = 999999
537!
538!--             Write CROSS parameter
539                WRITE ( 90, CROSS )
540
541             ENDIF
542          ENDDO
543
544          CLOSE ( 90 )
545!
546!--       Write all labels at the top of the data file, but only during the
547!--       first run of a sequence of jobs. The following jobs copy the time
548!--       series data to the bottom of that file.
549          IF ( runnr == 0 )  THEN
550             WRITE ( file_id, 5000 )  TRIM( run_description_header ) //        &
551                                      '    ' // TRIM( region( file_id - 50 ) )
552          ENDIF
553
554
555       CASE ( 80 )
556
557          IF ( myid_char == '' )  THEN
558             OPEN ( 80, FILE='PARTICLE_INFOS'//TRIM(coupling_char)//myid_char, &
559                        FORM='FORMATTED', POSITION='APPEND' )
560          ELSE
561             IF ( myid == 0  .AND.  .NOT. openfile(80)%opened_before )  THEN
562                CALL local_system( 'mkdir  PARTICLE_INFOS' //                  &
563                                   TRIM( coupling_char ) )
564             ENDIF
565#if defined( __parallel ) && ! defined ( __check )
566!
567!--          Set a barrier in order to allow that thereafter all other
568!--          processors in the directory created by PE0 can open their file.
569!--          WARNING: The following barrier will lead to hanging jobs, if
570!--                   check_open is first called from routine
571!--                   allocate_prt_memory!
572             IF ( .NOT. openfile(80)%opened_before )  THEN
573                CALL MPI_BARRIER( comm2d, ierr )
574             ENDIF
575#endif
576             OPEN ( 80, FILE='PARTICLE_INFOS'//TRIM( coupling_char )//'/'//    &
577                             myid_char,                                        &
578                        FORM='FORMATTED', POSITION='APPEND' )
579          ENDIF
580
581          IF ( .NOT. openfile(80)%opened_before )  THEN
582             WRITE ( 80, 8000 )  TRIM( run_description_header )
583          ENDIF
584
585       CASE ( 81 )
586
587             OPEN ( 81, FILE='PLOTSP_X_PAR'//TRIM( coupling_char ),            &
588                        FORM='FORMATTED', DELIM='APOSTROPHE', RECL=1500,       &
589                        POSITION='APPEND' )
590
591       CASE ( 82 )
592
593             OPEN ( 82, FILE='PLOTSP_X_DATA'//TRIM( coupling_char ),           &
594                        FORM='FORMATTED', POSITION = 'APPEND' )
595
596       CASE ( 83 )
597
598             OPEN ( 83, FILE='PLOTSP_Y_PAR'//TRIM( coupling_char ),            &
599                        FORM='FORMATTED', DELIM='APOSTROPHE', RECL=1500,       &
600                        POSITION='APPEND' )
601
602       CASE ( 84 )
603
604             OPEN ( 84, FILE='PLOTSP_Y_DATA'//TRIM( coupling_char ),           &
605                        FORM='FORMATTED', POSITION='APPEND' )
606
607       CASE ( 85 )
608
609          IF ( myid_char == '' )  THEN
610             OPEN ( 85, FILE='PARTICLE_DATA'//TRIM(coupling_char)//myid_char,  &
611                        FORM='UNFORMATTED', POSITION='APPEND' )
612          ELSE
613             IF ( myid == 0  .AND.  .NOT. openfile(85)%opened_before )  THEN
614                CALL local_system( 'mkdir  PARTICLE_DATA' //                   &
615                                   TRIM( coupling_char ) )
616             ENDIF
617#if defined( __parallel ) && ! defined ( __check )
618!
619!--          Set a barrier in order to allow that thereafter all other
620!--          processors in the directory created by PE0 can open their file
621             CALL MPI_BARRIER( comm2d, ierr )
622#endif
623             OPEN ( 85, FILE='PARTICLE_DATA'//TRIM( coupling_char )//'/'//     &
624                        myid_char,                                             &
625                        FORM='UNFORMATTED', POSITION='APPEND' )
626          ENDIF
627
628          IF ( .NOT. openfile(85)%opened_before )  THEN
629             WRITE ( 85 )  run_description_header
630!
631!--          Attention: change version number whenever the output format on
632!--                     unit 85 is changed (see also in routine
633!--                     lpm_data_output_particles)
634             rtext = 'data format version 3.1'
635             WRITE ( 85 )  rtext
636             WRITE ( 85 )  number_of_particle_groups,                          &
637                           max_number_of_particle_groups
638             WRITE ( 85 )  particle_groups
639             WRITE ( 85 )  nxl, nxr, nys, nyn, nzb, nzt, nbgp
640          ENDIF
641
642#if defined( __netcdf )
643       CASE ( 101, 111 )
644!
645!--       Set filename depending on unit number
646          IF ( file_id == 101 )  THEN
647             filename = 'DATA_2D_XY_NETCDF' // TRIM( coupling_char )
648             av = 0
649          ELSE
650             filename = 'DATA_2D_XY_AV_NETCDF' // TRIM( coupling_char )
651             av = 1
652          ENDIF
653!
654!--       Inquire, if there is a netCDF file from a previuos run. This should
655!--       be opened for extension, if its dimensions and variables match the
656!--       actual run.
657          INQUIRE( FILE=filename, EXIST=netcdf_extend )
658
659          IF ( netcdf_extend )  THEN
660!
661!--          Open an existing netCDF file for output
662             CALL netcdf_open_write_file( filename, id_set_xy(av), .TRUE., 20 )
663!
664!--          Read header information and set all ids. If there is a mismatch
665!--          between the previuos and the actual run, netcdf_extend is returned
666!--          as .FALSE.
667             CALL netcdf_define_header( 'xy', netcdf_extend, av )
668
669!
670!--          Remove the local file, if it can not be extended
671             IF ( .NOT. netcdf_extend )  THEN
672                nc_stat = NF90_CLOSE( id_set_xy(av) )
673                CALL netcdf_handle_error( 'check_open', 21 )
674                IF ( myid == 0 )  CALL local_system( 'rm ' // TRIM( filename ) )
675#if defined( __parallel ) && ! defined ( __check )
676!
677!--             Set a barrier in order to assure that PE0 deleted the old file
678!--             before any other processor tries to open a new file
679                CALL MPI_BARRIER( comm2d, ierr )
680#endif
681             ENDIF
682
683          ENDIF
684
685          IF ( .NOT. netcdf_extend )  THEN
686!
687!--          Create a new netCDF output file with requested netCDF format
688             CALL netcdf_create_file( filename, id_set_xy(av), .TRUE., 22 )
689
690!
691!--          Define the header
692             CALL netcdf_define_header( 'xy', netcdf_extend, av )
693
694!
695!--          In case of parallel netCDF output, create flag file which tells
696!--          combine_plot_fields that nothing is to do.
697             IF ( myid == 0  .AND.  netcdf_data_format > 4 )  THEN
698                OPEN( 99, FILE='NO_COMBINE_PLOT_FIELDS_XY' )
699                WRITE ( 99, '(A)' )  'no combine_plot_fields.x neccessary'
700                CLOSE( 99 )
701             ENDIF
702
703          ENDIF
704
705       CASE ( 102, 112 )
706!
707!--       Set filename depending on unit number
708          IF ( file_id == 102 )  THEN
709             filename = 'DATA_2D_XZ_NETCDF' // TRIM( coupling_char )
710             av = 0
711          ELSE
712             filename = 'DATA_2D_XZ_AV_NETCDF' // TRIM( coupling_char )
713             av = 1
714          ENDIF
715!
716!--       Inquire, if there is a netCDF file from a previuos run. This should
717!--       be opened for extension, if its dimensions and variables match the
718!--       actual run.
719          INQUIRE( FILE=filename, EXIST=netcdf_extend )
720
721          IF ( netcdf_extend )  THEN
722!
723!--          Open an existing netCDF file for output
724             CALL netcdf_open_write_file( filename, id_set_xz(av), .TRUE., 23 )
725!
726!--          Read header information and set all ids. If there is a mismatch
727!--          between the previuos and the actual run, netcdf_extend is returned
728!--          as .FALSE.
729             CALL netcdf_define_header( 'xz', netcdf_extend, av )
730
731!
732!--          Remove the local file, if it can not be extended
733             IF ( .NOT. netcdf_extend )  THEN
734                nc_stat = NF90_CLOSE( id_set_xz(av) )
735                CALL netcdf_handle_error( 'check_open', 24 )
736                IF ( myid == 0 )  CALL local_system( 'rm ' // TRIM( filename ) )
737#if defined( __parallel ) && ! defined ( __check )
738!
739!--             Set a barrier in order to assure that PE0 deleted the old file
740!--             before any other processor tries to open a new file
741                CALL MPI_BARRIER( comm2d, ierr )
742#endif
743             ENDIF
744
745          ENDIF
746
747          IF ( .NOT. netcdf_extend )  THEN
748!
749!--          Create a new netCDF output file with requested netCDF format
750             CALL netcdf_create_file( filename, id_set_xz(av), .TRUE., 25 )
751
752!
753!--          Define the header
754             CALL netcdf_define_header( 'xz', netcdf_extend, av )
755
756!
757!--          In case of parallel netCDF output, create flag file which tells
758!--          combine_plot_fields that nothing is to do.
759             IF ( myid == 0  .AND.  netcdf_data_format > 4 )  THEN
760                OPEN( 99, FILE='NO_COMBINE_PLOT_FIELDS_XZ' )
761                WRITE ( 99, '(A)' )  'no combine_plot_fields.x neccessary'
762                CLOSE( 99 )
763             ENDIF
764
765          ENDIF
766
767       CASE ( 103, 113 )
768!
769!--       Set filename depending on unit number
770          IF ( file_id == 103 )  THEN
771             filename = 'DATA_2D_YZ_NETCDF' // TRIM( coupling_char )
772             av = 0
773          ELSE
774             filename = 'DATA_2D_YZ_AV_NETCDF' // TRIM( coupling_char )
775             av = 1
776          ENDIF
777!
778!--       Inquire, if there is a netCDF file from a previuos run. This should
779!--       be opened for extension, if its dimensions and variables match the
780!--       actual run.
781          INQUIRE( FILE=filename, EXIST=netcdf_extend )
782
783          IF ( netcdf_extend )  THEN
784!
785!--          Open an existing netCDF file for output
786             CALL netcdf_open_write_file( filename, id_set_yz(av), .TRUE., 26 )
787!
788!--          Read header information and set all ids. If there is a mismatch
789!--          between the previuos and the actual run, netcdf_extend is returned
790!--          as .FALSE.
791             CALL netcdf_define_header( 'yz', netcdf_extend, av )
792
793!
794!--          Remove the local file, if it can not be extended
795             IF ( .NOT. netcdf_extend )  THEN
796                nc_stat = NF90_CLOSE( id_set_yz(av) )
797                CALL netcdf_handle_error( 'check_open', 27 )
798                IF ( myid == 0 )  CALL local_system( 'rm ' // TRIM( filename ) )
799#if defined( __parallel ) && ! defined ( __check )
800!
801!--             Set a barrier in order to assure that PE0 deleted the old file
802!--             before any other processor tries to open a new file
803                CALL MPI_BARRIER( comm2d, ierr )
804#endif
805             ENDIF
806
807          ENDIF
808
809          IF ( .NOT. netcdf_extend )  THEN
810!
811!--          Create a new netCDF output file with requested netCDF format
812             CALL netcdf_create_file( filename, id_set_yz(av), .TRUE., 28 )
813
814!
815!--          Define the header
816             CALL netcdf_define_header( 'yz', netcdf_extend, av )
817
818!
819!--          In case of parallel netCDF output, create flag file which tells
820!--          combine_plot_fields that nothing is to do.
821             IF ( myid == 0  .AND.  netcdf_data_format > 4 )  THEN
822                OPEN( 99, FILE='NO_COMBINE_PLOT_FIELDS_YZ' )
823                WRITE ( 99, '(A)' )  'no combine_plot_fields.x neccessary'
824                CLOSE( 99 )
825             ENDIF
826
827          ENDIF
828
829       CASE ( 104 )
830!
831!--       Set filename
832          filename = 'DATA_1D_PR_NETCDF' // TRIM( coupling_char )
833
834!
835!--       Inquire, if there is a netCDF file from a previuos run. This should
836!--       be opened for extension, if its variables match the actual run.
837          INQUIRE( FILE=filename, EXIST=netcdf_extend )
838
839          IF ( netcdf_extend )  THEN
840!
841!--          Open an existing netCDF file for output
842             CALL netcdf_open_write_file( filename, id_set_pr, .FALSE., 29 )
843!
844!--          Read header information and set all ids. If there is a mismatch
845!--          between the previuos and the actual run, netcdf_extend is returned
846!--          as .FALSE.
847             CALL netcdf_define_header( 'pr', netcdf_extend, 0 )
848
849!
850!--          Remove the local file, if it can not be extended
851             IF ( .NOT. netcdf_extend )  THEN
852                nc_stat = NF90_CLOSE( id_set_pr )
853                CALL netcdf_handle_error( 'check_open', 30 )
854                CALL local_system( 'rm ' // TRIM( filename ) )
855             ENDIF
856
857          ENDIF         
858
859          IF ( .NOT. netcdf_extend )  THEN
860!
861!--          Create a new netCDF output file with requested netCDF format
862             CALL netcdf_create_file( filename, id_set_pr, .FALSE., 31 )
863!
864!--          Define the header
865             CALL netcdf_define_header( 'pr', netcdf_extend, 0 )
866
867          ENDIF
868
869       CASE ( 105 )
870!
871!--       Set filename
872          filename = 'DATA_1D_TS_NETCDF' // TRIM( coupling_char )
873
874!
875!--       Inquire, if there is a netCDF file from a previuos run. This should
876!--       be opened for extension, if its variables match the actual run.
877          INQUIRE( FILE=filename, EXIST=netcdf_extend )
878
879          IF ( netcdf_extend )  THEN
880!
881!--          Open an existing netCDF file for output
882             CALL netcdf_open_write_file( filename, id_set_ts, .FALSE., 32 )
883!
884!--          Read header information and set all ids. If there is a mismatch
885!--          between the previuos and the actual run, netcdf_extend is returned
886!--          as .FALSE.
887             CALL netcdf_define_header( 'ts', netcdf_extend, 0 )
888
889!
890!--          Remove the local file, if it can not be extended
891             IF ( .NOT. netcdf_extend )  THEN
892                nc_stat = NF90_CLOSE( id_set_ts )
893                CALL netcdf_handle_error( 'check_open', 33 )
894                CALL local_system( 'rm ' // TRIM( filename ) )
895             ENDIF
896
897          ENDIF         
898
899          IF ( .NOT. netcdf_extend )  THEN
900!
901!--          Create a new netCDF output file with requested netCDF format
902             CALL netcdf_create_file( filename, id_set_ts, .FALSE., 34 )
903!
904!--          Define the header
905             CALL netcdf_define_header( 'ts', netcdf_extend, 0 )
906
907          ENDIF
908
909
910       CASE ( 106, 116 )
911!
912!--       Set filename depending on unit number
913          IF ( file_id == 106 )  THEN
914             filename = 'DATA_3D_NETCDF' // TRIM( coupling_char )
915             av = 0
916          ELSE
917             filename = 'DATA_3D_AV_NETCDF' // TRIM( coupling_char )
918             av = 1
919          ENDIF
920!
921!--       Inquire, if there is a netCDF file from a previous run. This should
922!--       be opened for extension, if its dimensions and variables match the
923!--       actual run.
924          INQUIRE( FILE=filename, EXIST=netcdf_extend )
925
926          IF ( netcdf_extend )  THEN
927!
928!--          Open an existing netCDF file for output
929             CALL netcdf_open_write_file( filename, id_set_3d(av), .TRUE., 35 )
930!
931!--          Read header information and set all ids. If there is a mismatch
932!--          between the previuos and the actual run, netcdf_extend is returned
933!--          as .FALSE.
934             CALL netcdf_define_header( '3d', netcdf_extend, av )
935
936!
937!--          Remove the local file, if it can not be extended
938             IF ( .NOT. netcdf_extend )  THEN
939                nc_stat = NF90_CLOSE( id_set_3d(av) )
940                CALL netcdf_handle_error( 'check_open', 36 )
941                IF ( myid == 0 )  CALL local_system( 'rm ' // TRIM( filename ) )
942#if defined( __parallel ) && ! defined ( __check )
943!
944!--             Set a barrier in order to assure that PE0 deleted the old file
945!--             before any other processor tries to open a new file
946                CALL MPI_BARRIER( comm2d, ierr )
947#endif
948
949             ENDIF
950
951          ENDIF
952
953          IF ( .NOT. netcdf_extend )  THEN
954!
955!--          Create a new netCDF output file with requested netCDF format
956             CALL netcdf_create_file( filename, id_set_3d(av), .TRUE., 37 )
957
958!
959!--          Define the header
960             CALL netcdf_define_header( '3d', netcdf_extend, av )
961
962!
963!--          In case of parallel netCDF output, create flag file which tells
964!--          combine_plot_fields that nothing is to do.
965             IF ( myid == 0  .AND.  netcdf_data_format > 4 )  THEN
966                OPEN( 99, FILE='NO_COMBINE_PLOT_FIELDS_3D' )
967                WRITE ( 99, '(A)' )  'no combine_plot_fields.x neccessary'
968                CLOSE( 99 )
969             ENDIF
970
971          ENDIF
972
973
974       CASE ( 107 )
975!
976!--       Set filename
977          filename = 'DATA_1D_SP_NETCDF' // TRIM( coupling_char )
978
979!
980!--       Inquire, if there is a netCDF file from a previuos run. This should
981!--       be opened for extension, if its variables match the actual run.
982          INQUIRE( FILE=filename, EXIST=netcdf_extend )
983
984          IF ( netcdf_extend )  THEN
985!
986!--          Open an existing netCDF file for output
987             CALL netcdf_open_write_file( filename, id_set_sp, .FALSE., 38 )
988
989!
990!--          Read header information and set all ids. If there is a mismatch
991!--          between the previuos and the actual run, netcdf_extend is returned
992!--          as .FALSE.
993             CALL netcdf_define_header( 'sp', netcdf_extend, 0 )
994
995!
996!--          Remove the local file, if it can not be extended
997             IF ( .NOT. netcdf_extend )  THEN
998                nc_stat = NF90_CLOSE( id_set_sp )
999                CALL netcdf_handle_error( 'check_open', 39 )
1000                CALL local_system( 'rm ' // TRIM( filename ) )
1001             ENDIF
1002
1003          ENDIF         
1004
1005          IF ( .NOT. netcdf_extend )  THEN
1006!
1007!--          Create a new netCDF output file with requested netCDF format
1008             CALL netcdf_create_file( filename, id_set_sp, .FALSE., 40 )
1009!
1010!--          Define the header
1011             CALL netcdf_define_header( 'sp', netcdf_extend, 0 )
1012
1013          ENDIF
1014
1015
1016       CASE ( 108 )
1017
1018          IF ( myid_char == '' )  THEN
1019             filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char )
1020          ELSE
1021             filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char ) // '/' //   &
1022                        myid_char
1023          ENDIF
1024!
1025!--       Inquire, if there is a netCDF file from a previuos run. This should
1026!--       be opened for extension, if its variables match the actual run.
1027          INQUIRE( FILE=filename, EXIST=netcdf_extend )
1028
1029          IF ( netcdf_extend )  THEN
1030!
1031!--          Open an existing netCDF file for output
1032             CALL netcdf_open_write_file( filename, id_set_prt, .FALSE., 41 )
1033!
1034!--          Read header information and set all ids. If there is a mismatch
1035!--          between the previuos and the actual run, netcdf_extend is returned
1036!--          as .FALSE.
1037             CALL netcdf_define_header( 'pt', netcdf_extend, 0 )
1038
1039!
1040!--          Remove the local file, if it can not be extended
1041             IF ( .NOT. netcdf_extend )  THEN
1042                nc_stat = NF90_CLOSE( id_set_prt )
1043                CALL netcdf_handle_error( 'check_open', 42 )
1044                CALL local_system( 'rm ' // TRIM( filename ) )
1045             ENDIF
1046
1047          ENDIF         
1048
1049          IF ( .NOT. netcdf_extend )  THEN
1050
1051!
1052!--          For runs on multiple processors create the subdirectory
1053             IF ( myid_char /= '' )  THEN
1054                IF ( myid == 0  .AND. .NOT. openfile(file_id)%opened_before )  &
1055                THEN    ! needs modification in case of non-extendable sets
1056                   CALL local_system( 'mkdir  DATA_PRT_NETCDF' //              &
1057                                       TRIM( coupling_char ) // '/' )
1058                ENDIF
1059#if defined( __parallel ) && ! defined ( __check )
1060!
1061!--             Set a barrier in order to allow that all other processors in the
1062!--             directory created by PE0 can open their file
1063                CALL MPI_BARRIER( comm2d, ierr )
1064#endif
1065             ENDIF
1066
1067!
1068!--          Create a new netCDF output file with requested netCDF format
1069             CALL netcdf_create_file( filename, id_set_prt, .FALSE., 43 )
1070
1071!
1072!--          Define the header
1073             CALL netcdf_define_header( 'pt', netcdf_extend, 0 )
1074
1075          ENDIF
1076
1077       CASE ( 109 )
1078!
1079!--       Set filename
1080          filename = 'DATA_1D_PTS_NETCDF' // TRIM( coupling_char )
1081
1082!
1083!--       Inquire, if there is a netCDF file from a previuos run. This should
1084!--       be opened for extension, if its variables match the actual run.
1085          INQUIRE( FILE=filename, EXIST=netcdf_extend )
1086
1087          IF ( netcdf_extend )  THEN
1088!
1089!--          Open an existing netCDF file for output
1090             CALL netcdf_open_write_file( filename, id_set_pts, .FALSE., 393 )
1091!
1092!--          Read header information and set all ids. If there is a mismatch
1093!--          between the previuos and the actual run, netcdf_extend is returned
1094!--          as .FALSE.
1095             CALL netcdf_define_header( 'ps', netcdf_extend, 0 )
1096
1097!
1098!--          Remove the local file, if it can not be extended
1099             IF ( .NOT. netcdf_extend )  THEN
1100                nc_stat = NF90_CLOSE( id_set_pts )
1101                CALL netcdf_handle_error( 'check_open', 394 )
1102                CALL local_system( 'rm ' // TRIM( filename ) )
1103             ENDIF
1104
1105          ENDIF         
1106
1107          IF ( .NOT. netcdf_extend )  THEN
1108!
1109!--          Create a new netCDF output file with requested netCDF format
1110             CALL netcdf_create_file( filename, id_set_pts, .FALSE., 395 )
1111!
1112!--          Define the header
1113             CALL netcdf_define_header( 'ps', netcdf_extend, 0 )
1114
1115          ENDIF
1116
1117
1118!
1119!--    Progress file that is used by the PALM watchdog
1120       CASE ( 117 )
1121
1122          OPEN ( 117, FILE='PROGRESS'//TRIM( coupling_char ),                  &
1123                      STATUS='REPLACE', FORM='FORMATTED' )
1124
1125
1126       CASE ( 201:200+2*max_masks )
1127!
1128!--       Set filename depending on unit number
1129          IF ( file_id <= 200+max_masks )  THEN
1130             mid = file_id - 200
1131             WRITE ( mask_char,'(I2.2)')  mid
1132             filename = 'DATA_MASK_' // mask_char // '_NETCDF' //              &
1133                        TRIM( coupling_char )
1134             av = 0
1135          ELSE
1136             mid = file_id - (200+max_masks)
1137             WRITE ( mask_char,'(I2.2)')  mid
1138             filename = 'DATA_MASK_' // mask_char // '_AV_NETCDF' //           &
1139                        TRIM( coupling_char )
1140             av = 1
1141          ENDIF
1142!
1143!--       Inquire, if there is a netCDF file from a previuos run. This should
1144!--       be opened for extension, if its dimensions and variables match the
1145!--       actual run.
1146          INQUIRE( FILE=filename, EXIST=netcdf_extend )
1147
1148          IF ( netcdf_extend )  THEN
1149!
1150!--          Open an existing netCDF file for output
1151             CALL netcdf_open_write_file( filename, id_set_mask(mid,av),       &
1152                                          .TRUE., 456 )
1153!
1154!--          Read header information and set all ids. If there is a mismatch
1155!--          between the previuos and the actual run, netcdf_extend is returned
1156!--          as .FALSE.
1157             CALL netcdf_define_header( 'ma', netcdf_extend, file_id )
1158
1159!
1160!--          Remove the local file, if it can not be extended
1161             IF ( .NOT. netcdf_extend )  THEN
1162                nc_stat = NF90_CLOSE( id_set_mask(mid,av) )
1163                CALL netcdf_handle_error( 'check_open', 457 )
1164                CALL local_system('rm ' // TRIM( filename ) )
1165             ENDIF
1166
1167          ENDIF         
1168
1169          IF ( .NOT. netcdf_extend )  THEN
1170!
1171!--          Create a new netCDF output file with requested netCDF format
1172             CALL netcdf_create_file( filename, id_set_mask(mid,av), .TRUE., 458 )
1173!
1174!--          Define the header
1175             CALL netcdf_define_header( 'ma', netcdf_extend, file_id )
1176
1177          ENDIF
1178
1179
1180#else
1181
1182       CASE ( 101:109, 111:113, 116, 201:200+2*max_masks )
1183
1184!
1185!--       Nothing is done in case of missing netcdf support
1186          RETURN
1187
1188#endif
1189
1190       CASE DEFAULT
1191
1192          WRITE( message_string, * ) 'no OPEN-statement for file-id ',file_id
1193          CALL message( 'check_open', 'PA0172', 2, 2, -1, 6, 1 )
1194
1195    END SELECT
1196
1197!
1198!-- Set open flag
1199    openfile(file_id)%opened = .TRUE.
1200
1201!
1202!-- Formats
12033300 FORMAT ('#'/                                                              &
1204             'coord 1  file=',A,'  filetype=unformatted'/                      &
1205             'coord 2  file=',A,'  filetype=unformatted  skip=',I6/            &
1206             'coord 3  file=',A,'  filetype=unformatted  skip=',I6/            &
1207             '#')
12084000 FORMAT ('# ',A)
12095000 FORMAT ('# ',A/                                                           &
1210             '#1 E'/'#2 E*'/'#3 dt'/'#4 u*'/'#5 th*'/'#6 umax'/'#7 vmax'/      &
1211             '#8 wmax'/'#9 div_new'/'#10 div_old'/'#11 z_i_wpt'/'#12 z_i_pt'/  &
1212             '#13 w*'/'#14 w''pt''0'/'#15 w''pt'''/'#16 wpt'/'#17 pt(0)'/      &
1213             '#18 pt(zp)'/'#19 splptx'/'#20 splpty'/'#21 splptz')
12148000 FORMAT (A/                                                                &
1215             '  step    time    # of parts     lPE sent/recv  rPE sent/recv  ',&
1216             'sPE sent/recv  nPE sent/recv    max # of parts  '/               &
1217             109('-'))
1218
1219 END SUBROUTINE check_open
Note: See TracBrowser for help on using the repository browser.