[1682] | 1 | !> @file user_lpm_init.f90 |
---|
[4497] | 2 | !--------------------------------------------------------------------------------------------------! |
---|
[2696] | 3 | ! This file is part of the PALM model system. |
---|
[1036] | 4 | ! |
---|
[4497] | 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. |
---|
[1036] | 8 | ! |
---|
[4497] | 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. |
---|
[1036] | 12 | ! |
---|
[4497] | 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/>. |
---|
[1036] | 15 | ! |
---|
[4360] | 16 | ! Copyright 1997-2020 Leibniz Universitaet Hannover |
---|
[4497] | 17 | !--------------------------------------------------------------------------------------------------! |
---|
[1036] | 18 | ! |
---|
[4497] | 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[211] | 21 | ! ----------------- |
---|
[1360] | 22 | ! |
---|
[2001] | 23 | ! |
---|
[1321] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: user_lpm_init.f90 4497 2020-04-15 10:20:51Z maronga $ |
---|
[4497] | 27 | ! file re-formatted to follow the PALM coding standard |
---|
| 28 | ! |
---|
| 29 | ! |
---|
| 30 | ! 4360 2020-01-07 11:25:50Z suehring |
---|
[4182] | 31 | ! Corrected "Former revisions" section |
---|
[4497] | 32 | ! |
---|
[4182] | 33 | ! 3768 2019-02-27 14:35:58Z raasch |
---|
[3768] | 34 | ! unused variables commented out to avoid compiler warnings |
---|
[4497] | 35 | ! |
---|
[3768] | 36 | ! 3655 2019-01-07 16:51:22Z knoop |
---|
[2716] | 37 | ! Corrected "Former revisions" section |
---|
[1321] | 38 | ! |
---|
[4182] | 39 | ! 211 2008-11-11 04:46:24Z raasch |
---|
| 40 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 41 | ! |
---|
[211] | 42 | ! Description: |
---|
| 43 | ! ------------ |
---|
[1682] | 44 | !> Modification of initial particles by the user. |
---|
[4497] | 45 | !--------------------------------------------------------------------------------------------------! |
---|
[1682] | 46 | SUBROUTINE user_lpm_init |
---|
[4497] | 47 | |
---|
[1416] | 48 | USE indices |
---|
[211] | 49 | |
---|
[1320] | 50 | USE kinds |
---|
[4497] | 51 | |
---|
[211] | 52 | USE particle_attributes |
---|
[4497] | 53 | |
---|
[211] | 54 | USE user |
---|
| 55 | |
---|
| 56 | IMPLICIT NONE |
---|
| 57 | |
---|
[4497] | 58 | ! INTEGER(iwp) :: ip !< |
---|
| 59 | ! INTEGER(iwp) :: jp !< |
---|
| 60 | ! INTEGER(iwp) :: kp !< |
---|
| 61 | ! INTEGER(iwp) :: n !< |
---|
[211] | 62 | |
---|
| 63 | ! |
---|
| 64 | !-- Here the user-defined actions follow |
---|
[1359] | 65 | ! DO ip = nxl, nxr |
---|
| 66 | ! DO jp = nys, nyn |
---|
| 67 | ! DO kp = nzb+1, nzt |
---|
| 68 | ! number_of_particles = prt_count(kp,jp,ip) |
---|
| 69 | ! particles => grid_particles(kp,jp,ip)%particles(1:number_of_particles) |
---|
| 70 | ! IF ( number_of_particles <= 0 ) CYCLE |
---|
| 71 | ! DO n = 1, number_of_particles |
---|
| 72 | ! |
---|
| 73 | ! ENDDO |
---|
| 74 | ! ENDDO |
---|
| 75 | ! ENDDO |
---|
| 76 | ! ENDDO |
---|
[211] | 77 | |
---|
[849] | 78 | END SUBROUTINE user_lpm_init |
---|
[211] | 79 | |
---|