Changeset 31550cb for partem_p.f


Ignore:
Timestamp:
11/19/09 11:29:07 (14 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
5ae43a7
Parents:
0f06b4a
Message:

Extrema stored per replica not temperature.

Tracking of the minimum energy configuration and the configuration with the
maximum number of hydrogen bonds now takes place on a per replica basis.
Minima at a particular temperature are no longer tracked explicitly.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@21 26dc1dd8-5c4e-0410-9ffe-d298b4865968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • partem_p.f

    r0f06b4a r31550cb  
    186186     
    187187      BETA = pbe(inode(rep_id+1))
    188       e_min = e_minp(inode(rep_id+1))
    189       h_max = h_maxp(inode(rep_id+1))
    190       write (*,*) "E_min=",e_min," for ", intem(rep_id + 1)
     188      e_min = e_minp(rep_id+1)
     189      h_max = h_maxp(rep_id+1)
     190      write (*,*) "E_min=",e_min," for ", rep_id + 1
    191191      eol=energy()
    192192      if(.not.newsta.and.abs(yol(rep_id + 1) - eol).gt.0.1) then
     
    250250               e_min = eol
    251251               filebase = "c_emin_0000.pdb"
    252                call outpdb(0, fileNameMP(filebase, 8, 11, j))
     252               call outpdb(0, fileNameMP(filebase, 8, 11, i))
    253253               filebase = "c_emin_0000.var"
    254                call outvar(0, fileNameMP(filebase, 8, 11, j))
     254               call outvar(0, fileNameMP(filebase, 8, 11, i))
    255255               filebase = "c_emin_0000.dat"
    256                open(15, file=fileNameMP(filebase, 8, 11, j),
     256               open(15, file=fileNameMP(filebase, 8, 11, i),
    257257     &              status="unknown")
    258258!     write(15,'(i8,2i4,f6.2,2f8.2,5i8)') iold,i,j,pbe(i),
    259                write(15,*) iold,i,j,pbe(i),
     259               write(15,*) iold,j,i,beta,
    260260     &              eol, eyab, eysl, eyel, eyvw, eyhb, eyvr, eysmi,asa,
    261261     &              vdvol, rgy, nhel, nbet, mhb, imhb, nctot,ncnat
     
    269269               h_max = mhb + imhb
    270270               filebase = "c_hmax_0000.pdb"
    271                call outpdb(0,fileNameMP(filebase,8,11,j))
     271               call outpdb(0,fileNameMP(filebase,8,11,i))
    272272               filebase = "c_hmax_0000.var"
    273                call outvar(0,fileNameMP(filebase,8,11,j))
     273               call outvar(0,fileNameMP(filebase,8,11,i))
    274274               filebase = "c_hmax_0000.dat"
    275                open(15, file=fileNameMP(filebase, 8, 11, j),
     275               open(15, file=fileNameMP(filebase, 8, 11, i),
    276276     &              status="unknown")
    277277!     write(15,'(i8,2i4,f6.2,2f8.2,5i8)') iold,i,j,pbe(i),
    278                write(15,*) iold,i,j,pbe(i),
     278               write(15,*) iold,j,i,beta,
    279279     &              eol, eyab, eysl, eyel, eyvw, eyhb, eyvr, eysmi,asa,
    280280     &              vdvol, rgy, nhel, nbet, mhb, imhb, nctot,ncnat
     
    360360!  will be serious double counting and the values of acceptance printed
    361361!  will be simply wrong.
    362                   e_minpt(i)=e_minp(intem(i))
    363362               end do
    364363               do i=1, num_rep
    365                   e_minp(i) = e_minpt(i)
    366364                  j=intem(i)
    367365                  acy(i)=acy(i)+acy1(j)
     
    378376     &                    eyvrp(j),eysmip(j), asap(j), vdvolp(j),
    379377     &                    rgyrp(j),nhelp(j),nbetp(j),mhbp(j),
    380      &                 imhbp(j), nctotp(j),ncnatp(j), e_minp(i),
     378     &                 imhbp(j), nctotp(j),ncnatp(j), e_minp(j),
    381379     &                 eyabp(j),rmsdp(j)
    382380!                      call flush(14)
     
    482480            CALL MPI_BCAST(INODE,num_rep,MPI_INTEGER,0,MPI_COMM_WORLD,
    483481     &           IERR)
    484          CALL MPI_BCAST(E_MINP,num_rep,MPI_DOUBLE_PRECISION,0,
    485      &           MPI_COMM_WORLD,IERR)
    486             CALL MPI_BCAST(H_MAXP,num_rep,MPI_INTEGER,0,MPI_COMM_WORLD,
    487      &           IERR)
    488482! Synchronize random number generators for replica 0
    489483            if (rep_id.eq.0) then
     
    501495
    502496            BETA=PBE(INODE(rep_id+1))
    503             e_min = e_minp(inode(rep_id+1))
    504             h_max = h_maxp(inode(rep_id+1))
    505497            if (INODE(rep_id + 1).eq.1) dir = 1
    506498            if (INODE(rep_id + 1).eq.num_rep) dir = -1
Note: See TracChangeset for help on using the changeset viewer.