Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bond_type), | intent(out) | :: | dest | |||
class(bond_type), | intent(in) | :: | source |
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