From c59c185fa46e434498039d2b6e8ad628fe6cd309 Mon Sep 17 00:00:00 2001 From: David Sagan Date: Thu, 10 Oct 2024 19:46:12 +0200 Subject: [PATCH] Now will write spin for particle beam even if zero. (#1228) --- bmad/multiparticle/beam_file_io.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bmad/multiparticle/beam_file_io.f90 b/bmad/multiparticle/beam_file_io.f90 index d3899be756..ac48092644 100644 --- a/bmad/multiparticle/beam_file_io.f90 +++ b/bmad/multiparticle/beam_file_io.f90 @@ -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)