module ecloud_interface interface subroutine read_beamfield(ecloud_bunch,ele, spacing) use bmad use ecloud_mod implicit none type (ele_struct) :: ele type (ecloud_bunch_struct), allocatable::ecloud_bunch(:) integer spacing end subroutine end interface end module