Producing 1.6 TB files and run stops due to low storage

Dear experts,
Kindly see the attached files which are .flair, .inp, .err, .log and .out.

The files is running succesfully for 1 or 2 cycles. Then it stops due to low storage space in the computer. I have checked the size of the file after running of 2 cycles is ~ 1.6 TB which is very impractical.
It seems that there is some error in the input files but I am not able to detect that.

Any help will be beneficial for me.

Thanking you in advance.
carbon_ion.flair (5.9 KB)
carbon_ion.inp (5.6 KB)
carbon_ion_04001.log (12.9 KB)
carbon_ion_04001.err (28.9 KB)
carbon_ion_01.out (3.0 KB)

The source files for the above are uoloaded here for your reference.
SOBP_carbon_1.dat (1.9 KB)
source_newgen.f (19.4 KB)
are uploaded here

input_files.zip (14.0 KB)
Dear experts,
Kindly see the attached files which are .flair, .inp, .err, .log and .out.

The files is running succesfully for 1 or 2 cycles. Then it stops due to low storage space in the computer. I have checked the size of the file after running of 2 cycles is ~ 1.6 TB which is very impractical.
It seems that there is some error in the input files but I am not able to detect that.

Any help will be beneficial for me.
[/quote]

Dear Arghya,

I can’t reproduce the issue, can you tell me which files grow unlimited?

Cheers,
David

Case 1: When I am running for monoenergetic carbon ions, it is running smoothly.

Case 2: When I am compiling the source.f file, and running the file with less number of histories ~ 1E5, it is running without any error but uncertainty is large. To, reduce the uncertainty, When I am making the histories ~ 1.6E9 (as in the case of attached input files), the error is occurring i.e after 2 cycles, run stops showing low storage space.

Dear Arghya,

there was a bug in the annular sampling in the source_newgen.f routine a few years back. Please update your routine to the latest version.

Cheers,
David

Thank you very much for your reply. So I need to take the latest source_newgen.f routine (as attached). Am I correct ?
The syntax is: call sample_annular_distribution( 0.0D0, 0.001D0, coordinate_x, coordinate_y )
This is for FLUKA version 4-3.0
Or, how to update the routine?
Any clue will be helpful to me.

Dear Arghya,

you need to take source_newgen.f from the latest FLUKA release, and copy over the changes you made. The syntax of the routine did not change.

Edit: Please, don’t forget to recompile your executable after changing the user routine.

Cheers,
David