Ignore:
Timestamp:
Sep 30, 2014, 11:05:33 AM (10 years ago)
Author:
zhangj
Message:

Added comments...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ICOSIM/CPP/trunk/source/crystal_dan_FINAL_VERSION_CHvsVR.f

    r16 r17  
    453453         
    454454c          write(*,*) "y = ", y
    455            write(*,*) "before enter VR: x = ", x, "  xp = ",xp
    456            write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
     455c           write(*,*) "before enter VR: x = ", x, "  xp = ",xp
     456c           write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
    457457           
    458458          xp=xp+0.45*(xp/xpcrit+1)*Ang_avr
     
    465465     +      xp ,yp,PC)
    466466     
    467           write(*,*) "after enter VR: x = ", x, "  xp = ",xp
    468           write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
     467c          write(*,*) "after enter VR: x = ", x, "  xp = ",xp
     468c          write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
    469469         
    470470          x = x + 0.5*s_length * xp
     
    501501!     +          DLRi(IS),xp ,yp,PC)
    502502
    503             write(*,*) "before enter VR: x = ", x, "  xp = ",xp
    504             write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
     503c            write(*,*) "before enter VR: x = ", x, "  xp = ",xp
     504c            write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
    505505           
    506506            CALL CALC_ION_LOSS(IS,PC,s_length-Srefl,DESt)
    507507           
    508             write(*,*) "before enter VR: x = ", x, "  xp = ",xp
    509             write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
    510             write(*,*) "IS = ", IS, " NAM = ", NAM
    511             write(*,*)  "s_length-Srefl = ",s_length-Srefl
    512             write(*,*) "DESt = ", DESt, " DLYi(IS) = ", DLYi(IS)
    513             write(*,*) "DLRi(IS) = ", DLRi(IS)
     508c            write(*,*) "before enter VR: x = ", x, "  xp = ",xp
     509c            write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
     510c            write(*,*) "IS = ", IS, " NAM = ", NAM
     511c            write(*,*)  "s_length-Srefl = ",s_length-Srefl
     512c            write(*,*) "DESt = ", DESt, " DLYi(IS) = ", DLYi(IS)
     513c            write(*,*) "DLRi(IS) = ", DLRi(IS)
    514514           
    515515            CALL MOVE_AM_(IS,NAM,s_length-Srefl,DESt,DLYi(IS),
    516516     +          DLRi(IS),xp ,yp,PC)
    517517     
    518             write(*,*) "after enter VR: x = ", x, "  xp = ",xp
    519             write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
     518c            write(*,*) "after enter VR: x = ", x, "  xp = ",xp
     519c            write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC
    520520           
    521521            x = x + 0.5 * xp * (s_length - Srefl)
     
    618618c      endif
    619619c     
    620       WRITE(*,*)'Crystal process: ',PROC
     620c      WRITE(*,*)'Crystal process: ',PROC
    621621c      write(*,*)'xp_final :', xp
    622622c      WRITE(*,*)'Crystal process: ',PROC,'Chann Angle',Ch_angle/1000,   +
     
    838838
    839839     
    840       write(*,*) "In Move_AM(): "
     840c      write(*,*) "In Move_AM(): "
    841841
    842842
    843843      xp=xp*1000
    844844      yp=yp*1000
    845       write(*,*)'xp initial:', xp, 'yp initial', yp
     845c      write(*,*)'xp initial:', xp, 'yp initial', yp
    846846C. DEI - dE/dx stoping energy
    847847      PC    = PC - DEI*DZ    ! energy lost because of ionization process[GeV]
     
    849849C. DYA - rms of coloumb scattering
    850850      DYA = (13.6/PC)*SQRT(DZ/DLr)             !MCS (mrad)
    851       write(*,*)'dya= ',dya
     851c      write(*,*)'dya= ',dya
    852852     
    853853      ran_x = RAN_GAUSS(1.)
    854       write(*,*) "ran_x = ", ran_x
     854c      write(*,*) "ran_x = ", ran_x
    855855     
    856856      ran_y = RAN_GAUSS(1.)
    857       write(*,*) "ran_y = ", ran_y
     857c      write(*,*) "ran_y = ", ran_y
    858858     
    859859      kxmcs = DYA*ran_x
     
    867867     
    868868c       write(*,*) "ran_x = ", ran_x, "ran_y = ", ran_y
    869       write(*,*) "kxmcs = ", kxmcs, "kymcs = ", kymcs
    870       write(*,*)'xp + kxmcs:', XP, 'yp + kxmcs', YP
     869c      write(*,*) "kxmcs = ", kxmcs, "kymcs = ", kymcs
     870c      write(*,*)'xp + kxmcs:', XP, 'yp + kxmcs', YP
    871871     
    872872cc     XP    = XP+DYA*RAN_GAUSS(1.)
     
    938938      endif
    939939
    940       write(*,*) "ichoix = ", ichoix
    941        write(*,*)'xp final:', xp, 'yp final', yp
     940c      write(*,*) "ichoix = ", ichoix
     941c       write(*,*)'xp final:', xp, 'yp final', yp
    942942       
    943943!---------- calculate the related kick -----------
     
    980980
    981981
    982       write(*,*) "tx = ", tx, " tz = ", tz
     982c      write(*,*) "tx = ", tx, " tz = ", tz
    983983     
    984984      XP = XP + tx
     
    990990      yp=yp/1000
    991991
    992       write(*,*)'xp final:', xp, 'yp final', yp
     992c      write(*,*)'xp final:', xp, 'yp final', yp
    993993!-----------------------------------------------
    994994! print out the energy loss and process experienced
Note: See TracChangeset for help on using the changeset viewer.