mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
added evaluate Hessian capability for VENUS
This commit is contained in:
parent
47bedb0ba2
commit
4e15a94067
1 changed files with 35 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
C
|
||||
C $Id: geninterface.F,v 1.10 2004-04-30 18:12:23 yuri Exp $
|
||||
C $Id: geninterface.F,v 1.11 2005-01-31 19:41:22 yuri Exp $
|
||||
C
|
||||
C This is a first attempt at an interface code for Venus written in F77.
|
||||
C Interface code for Venus written in F77.
|
||||
C
|
||||
Subroutine initialize_qm(theory, basis, natom,
|
||||
$ coordinates, labels, charge, printName, stack, heap, global)
|
||||
|
|
@ -495,6 +495,39 @@ C
|
|||
return
|
||||
end
|
||||
|
||||
logical function evaluateHessian(coords,
|
||||
$ hessian)
|
||||
|
||||
implicit none
|
||||
|
||||
#include "mafdecls.fh"
|
||||
#include "rtdb.fh"
|
||||
#include "geninterface.fh"
|
||||
|
||||
double precision coords(*), hessian(*)
|
||||
|
||||
external hess_read
|
||||
external task_hessian
|
||||
external setCoordinates
|
||||
logical task_hessian
|
||||
logical setCoordinates
|
||||
|
||||
evaluateHessian = .false.
|
||||
|
||||
if (.not.setCoordinates(coords))
|
||||
$ call errquit('NWChem_TaskHessian: setCoordinates failed',
|
||||
$ 555,0)
|
||||
|
||||
if (.not.task_hessian(rtdb))
|
||||
$ call errquit('NWChem_TaskHessian:task_hessian failed',555,0)
|
||||
|
||||
call hess_read(numatoms,hessian)
|
||||
|
||||
evaluateHessian = .true.
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
subroutine net_init (myid, nnodes1)
|
||||
|
||||
implicit none
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue