Skip to content

Commit

Permalink
remove the final dirft back of phase space distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
qianglbl committed Dec 12, 2024
1 parent ce3d7fe commit 007001a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Contrl/AccSimulator.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2447,16 +2447,16 @@ subroutine run_AccSimulator()
! final output.
call MPI_BARRIER(comm2d,ierr)
!drift back half time step
do ib = 1, Nbunch
call drifthalf_BeamBunch(Ebunch(ib),t,-dtless,betazini)
do ipt = 1, Nplocal(ib)
deltaz = blnLength/Scxlt - Ebunch(ib)%Pts1(5,ipt)
Ebunch(ib)%Pts1(1,ipt) = Ebunch(ib)%Pts1(1,ipt)+&
Ebunch(ib)%Pts1(2,ipt)/Ebunch(ib)%Pts1(6,ipt)*deltaz
Ebunch(ib)%Pts1(3,ipt) = Ebunch(ib)%Pts1(3,ipt)+&
Ebunch(ib)%Pts1(4,ipt)/Ebunch(ib)%Pts1(6,ipt)*deltaz
enddo
enddo
! do ib = 1, Nbunch
! call drifthalf_BeamBunch(Ebunch(ib),t,-dtless,betazini)
! do ipt = 1, Nplocal(ib)
! deltaz = blnLength/Scxlt - Ebunch(ib)%Pts1(5,ipt)
! Ebunch(ib)%Pts1(1,ipt) = Ebunch(ib)%Pts1(1,ipt)+&
! Ebunch(ib)%Pts1(2,ipt)/Ebunch(ib)%Pts1(6,ipt)*deltaz
! Ebunch(ib)%Pts1(3,ipt) = Ebunch(ib)%Pts1(3,ipt)+&
! Ebunch(ib)%Pts1(4,ipt)/Ebunch(ib)%Pts1(6,ipt)*deltaz
! enddo
! enddo
!output six 2-D phase projections.
!call phase2dold_Output(30,Ebunch,Np)
!output all particles in 6d phase space at given location blnLength.
Expand Down

0 comments on commit 007001a

Please sign in to comment.