📄 reords.f
字号:
****************************************************************************-------------------------------REORDER-----------------------------------*CCC This subroutine of the program CLUSTER is responsible for reorderingCCC the array CLSXYZ. Called from AVRSPH.CCC Uses a bubble search algorithm.CCC Brian Shoichet, February 1, 1990.*************************************************************************** subroutine reords(sphcnt) include 'cluster.h' integer sphcntccc sphcnt: sphere marker. integer j, kccc loop variables. real temp(7) logical sorted sorted=.false.200 if(.not.sorted)then sorted=.true. do 300 j=1,5-1 if(clsxyz(sphcnt,j,5).gt.clsxyz(sphcnt,j+1,5))then do 50 k=1,7 temp(k)=clsxyz(sphcnt,j,k) 50 continue do 75 k=1,7 clsxyz(sphcnt,j,k)=clsxyz(sphcnt,j+1,k) 75 continue do 100 k=1,7 clsxyz(sphcnt,j+1,k)=temp(k) 100 continue sorted=.false. endif300 continue goto 200 endif return end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -