- Timestamp:
- 06/16/10 08:25:47 (14 years ago)
- Branches:
- master
- Children:
- 5fef0d7
- Parents:
- 9f146fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.f
r9f146fa r3fbbfbb 19 19 program main 20 20 21 use timer 21 22 include 'INCL.H' 22 23 include 'INCP.H' 23 double precision eps, temp, e, energy 24 double precision eps, temp, e, energy, enyshe_simple 24 25 25 integer maxloglevel, logfileunit,iabin, imin, maxit, nequi26 integer nsweep, nmes, ncalls, nacalls 26 integer iabin, imin, maxit, nequi 27 integer nsweep, nmes, ncalls, nacalls, i 27 28 28 29 common/updstats/ncalls(5),nacalls(5) … … 42 43 ! Set the maximum log level. The larger the number the more detailed 43 44 ! the log. 44 MAXLOGLEVEL = 1 45 MAXLOGLEVEL = 100 45 46 ! File unit to use for the log file. 46 47 LOGFILEUNIT = 27 … … 112 113 ! call outvar(0, ' ') 113 114 ! To do a canonical Monte Carlo simulation uncomment the lines below 114 115 nsweep = 50000116 117 118 119 120 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") 122 123 ! 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) 124 128 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 125 137 ! For simulated annealing uncomment the lines below 126 138 ! tmin = 200.0
Note:
See TracChangeset
for help on using the changeset viewer.