source: palm/trunk/SOURCE/lpm_write_exchange_statistics.f90 @ 1320

Last change on this file since 1320 was 1320, checked in by raasch, 10 years ago

ONLY-attribute added to USE-statements,
kind-parameters added to all INTEGER and REAL declaration statements,
kinds are defined in new module kinds,
old module precision_kind is removed,
revision history before 2012 removed,
comment fields (!:) to be used for variable explanations added to all variable declaration statements

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
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! ONLY-attribute added to USE-statements,
23! comment fields (!:) to be used for variable explanations added to
24! all variable declaration statements
25!
26! Former revisions:
27! -----------------
28! $Id: lpm_write_exchange_statistics.f90 1320 2014-03-20 08:40:49Z raasch $
29!
30! 1036 2012-10-22 13:43:42Z raasch
31! code put under GPL (PALM 3.9)
32!
33! 849 2012-03-15 10:35:09Z raasch
34! initial revision (former part of advec_particles)
35!
36!
37! Description:
38! ------------
39! Write particle statistics (total particle numbers and number of particles
40! exchanged between subdomains) on ASCII file.
41!
42! ATTENTION: output format of this file could be further improved! At current
43!            stage it is only a test output.
44!------------------------------------------------------------------------------!
45
46    USE control_parameters,                                                     &
47        ONLY:  current_timestep_number, dt_3d, simulated_time
48
49    USE particle_attributes,                                                    &
50        ONLY:  maximum_number_of_particles, number_of_particles, trlp_count_sum,&
51               trlp_count_recv_sum, trnp_count_sum, trnp_count_recv_sum,        &
52               trrp_count_sum, trrp_count_recv_sum, trsp_count_sum,             &
53               trsp_count_recv_sum
54
55    USE pegrid
56
57    IMPLICIT NONE
58
59
60    CALL check_open( 80 )
61#if defined( __parallel )
62    WRITE ( 80, 8000 )  current_timestep_number+1, simulated_time+dt_3d, &
63                        number_of_particles, pleft, trlp_count_sum,      &
64                        trlp_count_recv_sum, pright, trrp_count_sum,     &
65                        trrp_count_recv_sum, psouth, trsp_count_sum,     &
66                        trsp_count_recv_sum, pnorth, trnp_count_sum,     &
67                        trnp_count_recv_sum, maximum_number_of_particles
68    CALL close_file( 80 )
69#else
70    WRITE ( 80, 8000 )  current_timestep_number+1, simulated_time+dt_3d, &
71                        number_of_particles, maximum_number_of_particles
72#endif
73
74!
75!-- Formats
768000 FORMAT (I6,1X,F7.2,4X,I6,5X,4(I3,1X,I4,'/',I4,2X),6X,I6)
77
78
79 END SUBROUTINE lpm_write_exchange_statistics
Note: See TracBrowser for help on using the repository browser.