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

Last change on this file since 1551 was 1551, checked in by maronga, 9 years ago

land surface model released

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