hit_t Derived Type

type, public :: hit_t

Hit type, which records possible interaction information


Components

Type Visibility Attributes Name Initial
type(vector), public :: dir

Direction the photon came from

integer, public :: layer

Layer ID of interaction

type(vector), public :: pos

Poition of the interaction

real(kind=wp), public :: value

Value to deposit


Constructor

public interface hit_t

  • private function hit_init(val)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=wp), intent(in) :: val

    Return Value type(hit_t)


Source Code

    type :: hit_t
        !> Poition of the interaction
        type(vector)  :: pos
        !> Direction the photon came from
        type(vector)  :: dir
        !> Value to deposit
        real(kind=wp) :: value
        !> Layer ID of interaction
        integer       :: layer
    end type hit_t