init_nucleus Subroutine

private subroutine init_nucleus(this, id, species_id, atom_id, charge, coordinate, force, overlapped)

Arguments

TypeIntentOptionalAttributesName
class(nucleus_type), intent(inout) :: this
integer, intent(in) :: id
integer, intent(in) :: species_id
integer, intent(in) :: atom_id
real(kind=dp), intent(in) :: charge
real(kind=dp), intent(in), dimension(:), target:: coordinate
real(kind=dp), intent(in), dimension(:), target:: force
logical, intent(in) :: overlapped

Contents

Source Code


Source Code

subroutine init_nucleus(this, id, &
                        species_id, atom_id, &
                        charge, coordinate, &
                        force, overlapped)

    class(nucleus_type), intent(inout) :: this
    integer, intent(in) :: id, species_id, atom_id
    real(dp), intent(in) :: charge
    real(dp), dimension(:), intent(in), target :: coordinate, force
    logical, intent(in) :: overlapped

    this%id = id
    this%species_id = species_id
    this%atom_id = atom_id
    this%charge = charge
    this%coordinate => coordinate
    this%force => force
    this%overlapped = overlapped

end subroutine init_nucleus