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

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

NetCDF routines modularized; new parameter netcdf_deflate; further changes in the pmc

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