Sampling of spectrum

Dear fluka experts,
I want to use the source_hb.f (uploaded it) to define the spectrum, but in this file, the sampling of the spectrum is done linearly (lines 82 to 85) while i want the sampling to be done interval(continuous).can any one help me what command to replace these lines?( i do not know fortran ) .thank you
source_hb.f (10.3 KB)

As I have already told you here, on this forum, support is provided only to FLUKA CERN users. Please, refrain from posting here until you are one of such users.