Changeset 32289cd for partem_s.f


Ignore:
Timestamp:
11/19/09 11:29:41 (14 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
38d77eb
Parents:
6650a56
Message:

Explicitly declare variables.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • partem_s.f

    r6650a56 r32289cd  
    44!
    55! Copyright 2003-2005  Frank Eisenmenger, U.H.E. Hansmann,
    6 !                      Shura Hayryan, Chin-Ku 
     6!                      Shura Hayryan, Chin-Ku
    77! Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
    88!                      Jan H. Meinke, Sandipan Mohanty
     
    1010!
    1111! **************************************************************
    12      
     12
    1313      subroutine partem_s(num_rep, nequi, nswp, nmes, nsave, newsta,
    1414     &                     switch)
     
    2020!
    2121      include 'INCL.H'
     22     
     23      double precision gasc, dv, grnd, vr, addang, energ, energy, acz
     24      double precision ee, rgy, temp0, delta, ra
     25
     26      integer i, j, nml, k, nstart, iv, nsw, iswitch, k1, num_rep1, nu
     27      integer in, jn
     28
    2229      external can_weight
    2330! TODO Store global coordinates in pgbpr
     
    4451!     ipoi:   Points to replica ipoi(k) which is currently
    4552!             at inverse temperature pbe(k)
    46 !     eol:    energy of each replica 
     53!     eol:    energy of each replica
    4754!     acc:    accepatance rate of each replica
    4855!
     
    5562      allocate(temp(num_rep), pbe(num_rep), eol(num_rep))
    5663      allocate(acc(num_rep), ipoi(num_rep))
    57      
     64
    5865      if (.not.(allocated(coor_G).and.allocated(temp)
    5966     &          .and. allocated(pbe).and. allocated(eol)
     
    7784         ipoi(i) = 0
    7885      end do
    79        
     86
    8087
    8188!     READ IN TEMPERATURES
     
    9097
    9198      open(13,file='time.d',status='unknown')
    92      
     99
    93100      if(.not.newsta) then
    94101! READ START Values
     
    122129                  pgbpr(j, nml, i) = gbpr(j, nml)
    123130               end do
    124             end do           
    125          end do
    126      
     131            end do
     132         end do
     133
    127134!      Equilibrization for each replica (No replica exchange move)
    128135         do k=1,num_rep
     
    141148               CALL METROPOLIS(energ,acz,can_weight)
    142149            end do
    143             write(*,*) 'Start energy after equilibration for replica:', 
     150            write(*,*) 'Start energy after equilibration for replica:',
    144151     &                 k, energ
    145152            do i=1,nvr
     
    155162         end do
    156163      end if
    157            
     164
    158165! Now begins the simulation with Multiple Markov Chains
    159166      iswitch = 1
     
    176183            end do
    177184            CALL METROPOLIS(energ,acz,can_weight)
    178 ! 
     185!
    179186            if(mod(nsw,nmes).eq.0) then
    180187! Measure and store here all quantities you want to analyse later
     
    195202               end do
    196203            end do
    197        
     204
    198205            eol(k) = energ
    199206            acc(k) = acz
     
    214221            j=i+1
    215222            if(i.eq.num_rep) j=1
    216             in=ipoi(i)     
     223            in=ipoi(i)
    217224            jn=ipoi(j)
    218225            delta=-pbe(i)*eol(jn)-pbe(j)*eol(in)
Note: See TracChangeset for help on using the changeset viewer.