mirror of https://gitlab.com/QEF/q-e.git
The inverse BFGS hessian is saved (prefix.hess) when convergence is achieved.
It could be useful to have a very rough estimate of the force constants. C.S. git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@434 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
1603f66312
commit
667fd18812
|
@ -592,6 +592,16 @@ MODULE bfgs_module
|
|||
iteration
|
||||
WRITE( stdout, '(/,5X,"Final energy: ",F14.10," ryd"/)' ) energy
|
||||
!
|
||||
WRITE( stdout, '(/,5X,"Saving the approssimate hessian")' )
|
||||
!
|
||||
OPEN( UNIT = iunbfgs, FILE = TRIM( scratch )//TRIM( prefix )//'.hess', &
|
||||
STATUS = 'UNKNOWN', ACTION = 'WRITE' )
|
||||
!
|
||||
WRITE( iunbfgs, * ) SHAPE( inverse_hessian )
|
||||
WRITE( iunbfgs, * ) inverse_hessian
|
||||
!
|
||||
CLOSE( UNIT = iunbfgs )
|
||||
!
|
||||
OPEN( UNIT = iunbfgs, &
|
||||
FILE = TRIM( scratch )//TRIM( prefix )//'.bfgs' )
|
||||
CLOSE( UNIT = iunbfgs, STATUS = 'DELETE' )
|
||||
|
|
Loading…
Reference in New Issue