1 | SUBROUTINE lpm_write_exchange_statistics |
---|
2 | |
---|
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 | ! |
---|
17 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
18 | !--------------------------------------------------------------------------------! |
---|
19 | ! |
---|
20 | ! Current revisions: |
---|
21 | ! ------------------ |
---|
22 | ! |
---|
23 | ! |
---|
24 | ! Former revisions: |
---|
25 | ! ----------------- |
---|
26 | ! $Id: lpm_write_exchange_statistics.f90 1310 2014-03-14 08:01:56Z fricke $ |
---|
27 | ! |
---|
28 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
29 | ! code put under GPL (PALM 3.9) |
---|
30 | ! |
---|
31 | ! 849 2012-03-15 10:35:09Z raasch |
---|
32 | ! initial revision (former part of advec_particles) |
---|
33 | ! |
---|
34 | ! |
---|
35 | ! Description: |
---|
36 | ! ------------ |
---|
37 | ! Write particle statistics (total particle numbers and number of particles |
---|
38 | ! exchanged between subdomains) on ASCII file. |
---|
39 | ! |
---|
40 | ! ATTENTION: output format of this file could be further improved! At current |
---|
41 | ! stage it is only a test output. |
---|
42 | !------------------------------------------------------------------------------! |
---|
43 | |
---|
44 | USE control_parameters |
---|
45 | USE particle_attributes |
---|
46 | USE pegrid |
---|
47 | |
---|
48 | IMPLICIT NONE |
---|
49 | |
---|
50 | |
---|
51 | CALL check_open( 80 ) |
---|
52 | #if defined( __parallel ) |
---|
53 | WRITE ( 80, 8000 ) current_timestep_number+1, simulated_time+dt_3d, & |
---|
54 | number_of_particles, pleft, trlp_count_sum, & |
---|
55 | trlp_count_recv_sum, pright, trrp_count_sum, & |
---|
56 | trrp_count_recv_sum, psouth, trsp_count_sum, & |
---|
57 | trsp_count_recv_sum, pnorth, trnp_count_sum, & |
---|
58 | trnp_count_recv_sum, maximum_number_of_particles |
---|
59 | CALL close_file( 80 ) |
---|
60 | #else |
---|
61 | WRITE ( 80, 8000 ) current_timestep_number+1, simulated_time+dt_3d, & |
---|
62 | number_of_particles, maximum_number_of_particles |
---|
63 | #endif |
---|
64 | |
---|
65 | ! |
---|
66 | !-- Formats |
---|
67 | 8000 FORMAT (I6,1X,F7.2,4X,I6,5X,4(I3,1X,I4,'/',I4,2X),6X,I6) |
---|
68 | |
---|
69 | |
---|
70 | END SUBROUTINE lpm_write_exchange_statistics |
---|