add an overlap entry to the map
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(map_type), | intent(out) | :: | dest | |||
class(map_type), | intent(in) | :: | source |
subroutine copy_map(dest, source)
class(map_type), intent(out) :: dest
class(map_type), intent(in) :: source
if(allocated(dest%codes)) deallocate(dest%codes)
if(allocated(dest%atoms)) deallocate(dest%atoms)
allocate(dest%codes, source=source%codes)
allocate(dest%atoms, source=source%atoms)
dest%id=source%id
end subroutine copy_map