copy_bond Subroutine

private subroutine copy_bond(dest, source)

Arguments

TypeIntentOptionalAttributesName
class(bond_type), intent(out) :: dest
class(bond_type), intent(in) :: source

Contents

Source Code


Source Code

subroutine copy_bond(dest, source)
    class(bond_type), intent(out) :: dest
    class(bond_type), intent(in) :: source

    dest%atom_i = source%atom_i
    dest%atom_j = source%atom_j
    dest%length = source%length
end subroutine copy_bond