Skip to content

Commit

Permalink
Now will write spin for particle beam even if zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSagan committed Oct 10, 2024
1 parent 0a0d1e4 commit d73ab42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmad/multiparticle/beam_file_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ subroutine write_ascii_beam_file (file_name, beam, new_file, alive_only)
if (any(bunch%particle%dt_ref /= 0)) dt_ref0 = .false.
enddo

if (spin0) call remove_col('spin', colvec)
!!! if (spin0) call remove_col('spin', colvec) ! Too confusing to not write out the spin even if the spin is zero.
if (field0) call remove_col('field', colvec)
if (phase0) call remove_col('phase', colvec)
if (dir0) call remove_col('direction', colvec)
Expand Down

0 comments on commit d73ab42

Please sign in to comment.