bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
12 stars 15 forks source link

ibs_ring issue #1212

Open Saadi-mughal opened 2 weeks ago

Saadi-mughal commented 2 weeks ago

Hello, i am getting some file issue while executing ibs_ring module. find my lattice file and other files in attachment

.

Thanks and regards Saad

issue_folder.zip

DavidSagan commented 1 week ago

@Saadi-mughal

I do not have a file issue. Rather I get:

 Preparing lattice...
[INFO] bmad_parser:
    Parsing lattice file(s). This might take a minute or so...
[INFO] bmad_parser:
    Created new digested file
[MESSAGE | 2024-OCT-01 23:44:20] bmad_parser:
    Lattice parse time(min): 0.00
 Lattice preparation complete...
 Beam parameters from radiation calculation:
    emit_a (m*rad)  :   6.790680511504695E-016
    emit_b (m*rad)  :   1.044187722674586E-016
    sigmaE_E (rel.) :   2.605616278916118E-009
    sigma_z (m)     :   1.000000000000000E+030

 User-adjusted beam parameters at zero current:
    emit_a (m*rad)  :   1.000000000000000E-006
    emit_b (m*rad)  :   1.000000000000000E-006
    sigmaE_E (rel.) :   2.605616278916118E-009
    sigma_z (m)     :   1.000000000000000E+030

 Beam parameters at full current with PWD, but without IBS:
    emit_a (m*rad)  :   1.000000000000000E-006
    emit_b (m*rad)  :   1.000000000000000E-006
    sigmaE_E (rel.) :   2.605616278916118E-009
    sigma_z (m)     :   1.000000000000000E+030

 Beam parameters at full current with PWD and IBS:
    emit_a (m*rad)  :   1.000000000000000E-006
    emit_b (m*rad)  :   1.000000000000000E-006
    sigmaE_E (rel.) :   2.605616273193099E-009
    sigma_z (m)     :   9.999999978035832E+029

[FATAL | 2024-OCT-01 23:44:20] transfer_matrix_calc:
    ELEMENT INDEXES OUT OF BOUNDS: 479, 151

 !-------------------------------------------------
 ERR_EXIT: WILL BOMB PROGRAM TO GIVE TRACEBACK...

This is a valid error. Can you test on a different system to see if you can reproduce your error?

Saadi-mughal commented 1 week ago

Hi, i am still getting same issue, i also attached ss of terminal output. Lattice file is also slightly different now and works for other simulations.

Regards Saad issue_folder.zip

DavidSagan commented 1 week ago

@Saadi-mughal The terminal output is strange. It shows a directory Prototype that does not exist in the standard bmad-ecosystem directory tree. I assume you are doing something non-standard here. Try doing a standard compile and see what happens. It is advised for standard operations to not modify the bmad-ecosystem directory tree.