Changeset 3fbbfbb for main.f


Ignore:
Timestamp:
06/16/10 08:25:47 (14 years ago)
Author:
Jan Meinke <j.meinke@…>
Branches:
master
Children:
5fef0d7
Parents:
9f146fa
Message:

Move to doxygen comments and smmp_p.

Doxygen comments in Fortran are !> ... !! ... !<. I'm planning move the API documentation from the
lyx file into the code. This should make it easier to get documentation for all the common block
variables as well.

Use import smmp_p to indicate the parallel version of the Python bindings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.f

    r9f146fa r3fbbfbb  
    1919      program main
    2020
     21      use timer
    2122      include 'INCL.H'
    2223      include 'INCP.H'
    23       double precision eps, temp, e, energy
     24      double precision eps, temp, e, energy, enyshe_simple
    2425
    25       integer maxloglevel, logfileunit, iabin, imin, maxit, nequi
    26       integer nsweep, nmes, ncalls, nacalls
     26      integer iabin, imin, maxit, nequi
     27      integer nsweep, nmes, ncalls, nacalls, i
    2728
    2829      common/updstats/ncalls(5),nacalls(5)
     
    4243!     Set the maximum log level. The larger the number the more detailed
    4344!     the log.
    44       MAXLOGLEVEL = 1
     45      MAXLOGLEVEL = 100
    4546!     File unit to use for the log file.
    4647      LOGFILEUNIT = 27
     
    112113!      call outvar(0, ' ')
    113114!     To do a canonical Monte Carlo simulation uncomment the lines below
    114        nequi = 100
    115        nsweep = 50000
    116        nmes = 10
    117        temp = 300.0
    118        lrand = .true.
    119        E = energy()
    120        write (logString, *) E, eyel,eyvw,eyhb,eyvr
    121        call outpdb(1, "polyA.pdb")
     115      nequi = 100
     116      nsweep = 500
     117      nmes = 10
     118      temp = 300.0
     119      lrand = .true.
     120      E = energy()
     121      write (logString, *) E, eyel,eyvw,eyhb,eyvr
     122      call outpdb(1, "polyrQ.pdb")
    122123!      Canonical Monte Carlo
    123        call canon(nequi, nsweep, nmes, temp, lrand)
     124      call init_timer()
     125      call start_timer(1)
     126      call canon(nequi, nsweep, nmes, temp, lrand)
     127      call stop_timer(1)
    124128
     129      E = 0
     130!      call start_timer(1)
     131!      do i =1, nsweep
     132!         E = E + enyshe_simple()
     133!      end do
     134!      call stop_timer(1)
     135      call evaluate(1)
     136      print *,timingData(1)%average, "s.", E
    125137!      For simulated annealing uncomment the lines below
    126138!      tmin = 200.0
Note: See TracChangeset for help on using the changeset viewer.