~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/optim/string/string_input.F

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
c
16
16
c   local variable
17
17
c
18
 
      character*255 field
 
18
      character*255 field,geom_name,test2
19
19
      real*8 tol, temp, stepsize
20
 
      integer nbeads, maxit, interpol
 
20
      integer nbeads, maxit, interpol,ind,i
 
21
      logical frze
 
22
 
 
23
      logical  neb_setgeom_xyzfilename
 
24
      external neb_setgeom_xyzfilename
 
25
      integer  neb_nbeads_xyzfilename
 
26
      external neb_nbeads_xyzfilename
 
27
      character*7 bead_index_name
 
28
      external    bead_index_name
 
29
 
21
30
c
22
31
c     ----- read values from input -----
23
32
c
76
85
         if (.not. rtdb_put(rtdb,'string:interpol',mt_int,1,
77
86
     $        interpol))
78
87
     $        call errquit('string_input: rtdb put failed',0, RTDB_ERR)
 
88
 
 
89
      else if (inp_compare(.false.,'freeze1', field)) then
 
90
         if (.not. inp_l(frze)) frze = .false.
 
91
         if (.not. rtdb_put(rtdb,'string:freeze1',mt_log,1,frze))
 
92
     $      call errquit('string_input: rtdb put failed',0, RTDB_ERR)
 
93
 
 
94
      else if (inp_compare(.false.,'freezen', field)) then
 
95
         if (.not. inp_l(frze)) frze = .false.
 
96
         if (.not. rtdb_put(rtdb,'string:freezen',mt_log,1,frze))
 
97
     $      call errquit('string_input: rtdb put failed',0, RTDB_ERR)
 
98
 
 
99
      else if (inp_compare(.false.,'hasmiddle', field)) then
 
100
         if (.not. inp_l(frze)) frze = .true.
 
101
         if (.not. rtdb_put(rtdb,'string:hasmiddle',mt_log,1,frze))
 
102
     $      call errquit('string_input: rtdb put failed',0, RTDB_ERR)
 
103
 
 
104
      else if (inp_compare(.false.,'impose', field)) then
 
105
         if (.not. inp_l(frze)) frze = .true.
 
106
         if (.not. rtdb_put(rtdb,'string:impose',mt_log,1,frze))
 
107
     $      call errquit('string_input: rtdb put failed',0, RTDB_ERR)
 
108
 
 
109
 
 
110
      else if (inp_compare(.false.,'print_shift', field)) then
 
111
         if(.not. inp_i(ind))
 
112
     >    call errquit('string_input: print_shift',911,
 
113
     >    INPUT_ERR)
 
114
         if (.not. rtdb_put(rtdb,'string:print_shift',mt_int,1,ind))
 
115
     >     call errquit('string_input: rtdb put failed',27,
 
116
     >     RTDB_ERR)
 
117
 
 
118
      else if (inp_compare(.false.,'nhist', field)) then
 
119
         if(.not. inp_i(ind))
 
120
     >    call errquit('string_input: nhist',911,
 
121
     >    INPUT_ERR)
 
122
         if (.not. rtdb_put(rtdb,'string:m',mt_int,1,ind))
 
123
     >     call errquit('string_input: rtdb put failed',27,
 
124
     >     RTDB_ERR)
 
125
 
 
126
c
 
127
c     reset
 
128
c     ----------------------------
 
129
      else if (inp_compare(.false.,'reset', field)) then
 
130
       if (.not. rtdb_put(rtdb,'bead_list:new',mt_log,1,.true.))
 
131
     >     call errquit('string_input: rtdb put failed',28,
 
132
     >     RTDB_ERR)
 
133
 
 
134
 
 
135
c
 
136
c    xyz_path
 
137
c     ----------------------------
 
138
      else if (inp_compare(.false.,'xyz_path', field)) then
 
139
         if (inp_a(test2)) then
 
140
 
 
141
            nbeads = neb_nbeads_xyzfilename(test2)
 
142
            if (.not. rtdb_put(rtdb,'string:nbeads',mt_int,1,nbeads))
 
143
     >        call errquit('string_input: rtdb put failed',29,
 
144
     >        RTDB_ERR)
 
145
 
 
146
            if (.not. rtdb_put(rtdb,'bead_list:size',mt_int,1,nbeads))
 
147
     >        call errquit('string_input: rtdb put failed',30,
 
148
     >        RTDB_ERR)
 
149
 
 
150
            do i=1,nbeads
 
151
               geom_name = 'bead'//bead_index_name(i)//':geom'
 
152
               if (.not.neb_setgeom_xyzfilename(rtdb,test2,i,geom_name))
 
153
     >           call errquit('string_input: rtdb put failed',31,
 
154
     >           RTDB_ERR)
 
155
            end do
 
156
 
 
157
            if (.not. rtdb_put(rtdb,'neb:custom_path',mt_log,1,.true.))
 
158
     >        call errquit('string_input: rtdb put failed',32,
 
159
     >        RTDB_ERR)
 
160
 
 
161
            if (.not. rtdb_put(rtdb,'bead_list:new',mt_log,1,.false.))
 
162
     >        call errquit('string_input: rtdb put failed',33,
 
163
     >        RTDB_ERR)
 
164
 
 
165
         end if
 
166
 
79
167
c
80
168
      else
81
169
         call errquit('string_input: unknown directive',0, INPUT_ERR)
85
173
c
86
174
      end
87
175
 
88
 
c $Id: string_input.F 21176 2011-10-10 06:35:49Z d3y133 $
 
176
c $Id: string_input.F 24235 2013-05-17 02:13:02Z bylaska $