I simplified the computational model, using the air layer as the neutron source,the soil thickness is 6 m.The calculations were made using the cosmic neutron ray energy spectrum, but the resulting trend seems to be problematic.I can only calculate single-energy neutrons.
I could not reproduce your first plot, with the user routine you provided. Also, to make it run I had to remove the first line from the spectrum file.
Furthermore, what is the quantity of the second column? For me it seems, that the numbers are the values of a lethargy plot (dN/d(logE) = E*dN/dE), while the source routine expects dN/dE values.
With my assumption I get the following source spectrum:
I don’t see any changes in your spectrum file or source routine, also the attached Flair project file has different plot settings compared to the figure you posted last.
For these reasons I couldn’t reproduce you last result.
My spectrum was scored immediately after the starting location of the neutrons, so that is maybe the reason you see a different result.