1 SUBROUTINE SRTCLUST(ICUT,NCON,IB)
2 implicit real*8 (a-h,o-z)
5 include 'COMMON.CLUSTER'
7 include 'COMMON.IOUNITS'
8 double precision prob(maxgr)
10 c Compute free energies of clusters
13 emin=totfree(nconf(igr,1))
17 totfree_gr(igr)=totfree_gr(igr)+dexp(-totfree(ii)+emin)
19 c write (iout,*) "igr",igr," totfree",emin,
20 c & " totfree_gr",totfree_gr(igr)
21 totfree_gr(igr)=emin-dlog(totfree_gr(igr))
22 c write (iout,*) igr," efree",totfree_gr(igr)/beta_h(ib)
25 C SORT CONFORMATIONS IN GROUPS ACC. TO ENERGY
57 NCONF(IGR,I)=NCONF(JGR,I)
68 write (iout,'("Free energies and probabilities of clusters at",
69 & f6.1," K")') 1.0d0/(1.987d-3*beta_h(ib))
73 prob(i)=dexp(-(totfree_gr(i)-totfree_gr(1)))
74 sumprob=sumprob+prob(i)
77 prob(i)=prob(i)/sumprob
80 write (iout,'("clust efree prob sumprob")')
82 sumprob=sumprob+prob(i)
83 write (iout,'(i5,f8.1,2f8.5)') i,totfree_gr(i)/beta_h(ib),
89 82 IASS(NCONF(IGR,I))=IGR
93 iass_tot(i,icut)=iass(i)
94 c write (iout,*) icut,i,iass(i),iass_tot(i,icut)