base type for particles
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | id | particle id |
|||
real(kind=dp), | public | :: | charge | particle charge |
|||
real(kind=dp), | public | :: | mass | particle mass |
|||
real(kind=dp), | public, | dimension(:), pointer | :: | coordinate | => | null() | pointer to coordinate of the particle |
real(kind=dp), | public, | dimension(:), pointer | :: | force | => | null() | pointer to force acting on particle |
logical, | public | :: | overlapped | flag indicating that the particle is treated by some other code |
type, abstract :: particle_type
!> particle id
integer, public :: id
!> particle charge
real(dp), public :: charge
!> particle mass
real(dp), public :: mass
!> pointer to coordinate of the particle
real(dp), dimension(:), pointer, public :: coordinate => null()
!> pointer to force acting on particle
real(dp), dimension(:), pointer, public :: force => null()
!> flag indicating that the particle is treated by some other code
logical :: overlapped
end type particle_type