particles_soa Derived Type

type, public :: particles_soa

粒子の位置・速度・物性値・生存フラグをSoA形式で保持する型。


Components

Type Visibility Attributes Name Initial
integer(kind=i32), public :: n = 0
real(kind=dp), public, allocatable :: x(:,:)
real(kind=dp), public, allocatable :: v(:,:)
real(kind=dp), public, allocatable :: q(:)
real(kind=dp), public, allocatable :: m(:)
real(kind=dp), public, allocatable :: w(:)
logical, public, allocatable :: alive(:)

Source Code

  type :: particles_soa
    integer(i32) :: n = 0
    real(dp), allocatable :: x(:, :)
    real(dp), allocatable :: v(:, :)
    real(dp), allocatable :: q(:)
    real(dp), allocatable :: m(:)
    real(dp), allocatable :: w(:)
    logical, allocatable :: alive(:)
  end type particles_soa