source: palm/trunk/SOURCE/user_lpm_advec.f90 @ 4869

Last change on this file since 4869 was 4828, checked in by Giersch, 4 years ago

Copyright updated to year 2021, interface pmc_sort removed to accelarate the nesting code

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1!> @file user_lpm_advec.f90
2!--------------------------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General
6! Public License as published by the Free Software Foundation, either version 3 of the License, or
7! (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
10! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11! Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with PALM. If not, see
14! <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2021 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------------------------!
18!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_lpm_advec.f90 4828 2021-01-05 11:21:41Z schwenkel $
27! file re-formatted to follow the PALM coding standard
28!
29!
30! 4360 2020-01-07 11:25:50Z suehring
31! Corrected "Former revisions" section
32!
33! 3768 2019-02-27 14:35:58Z raasch
34! variables commented + statement added to avoid compiler warnings about unused variables
35!
36! 3655 2019-01-07 16:51:22Z knoop
37! Corrected "Former revisions" section
38!
39! 211 2008-11-11 04:46:24Z raasch
40! Former file user_interface.f90 split into one file per subroutine
41!
42! Description:
43! ------------
44!> Modification of initial particles by the user.
45!--------------------------------------------------------------------------------------------------!
46 SUBROUTINE user_lpm_advec( ip, jp, kp )
47
48
49    USE kinds
50
51    USE particle_attributes
52
53    USE user
54
55    IMPLICIT NONE
56
57    INTEGER(iwp) ::  ip  !< index of particle grid box, x-direction
58    INTEGER(iwp) ::  jp  !< index of particle grid box, y-direction
59    INTEGER(iwp) ::  kp  !< index of particle grid box, z-direction
60!    INTEGER(iwp) ::  n   !< particle index
61!    INTEGER(iwp) ::  nb  !< index of sub-box particles are sorted in
62
63!    INTEGER(iwp), DIMENSION(0:7)  ::  start_index !< start particle index for current sub-box
64!    INTEGER(iwp), DIMENSION(0:7)  ::  end_index   !< start particle index for current sub-box
65
66!
67!-- Next line is to avoid compiler warning about unused variables. Please remove.
68    IF ( ip == 0  .OR.  jp == 0  .OR.  kp == 0 )  CONTINUE
69
70!
71!-- Here the user-defined actions follow
72!   number_of_particles = prt_count(kp,jp,ip)
73!   particles => grid_particles(kp,jp,ip)%particles(1:number_of_particles)
74!
75!   start_index = grid_particles(kp,jp,ip)%start_index
76!   end_index   = grid_particles(kp,jp,ip)%end_index
77!
78!   IF ( number_of_particles <= 0 )  CYCLE
79!   DO  n = 1, number_of_particles
80!   DO  nb = 0, 7
81!      DO  n = start_index(nb), end_index(nb)
82!         particles(n)%xxx =
83!      ENDDO
84!   ENDDO
85
86 END SUBROUTINE user_lpm_advec
87
Note: See TracBrowser for help on using the repository browser.