1
c $Id: iofa.f,v 1.1 1999/02/21 00:09:49 emilio Exp $
3
subroutine iofa( na, fa )
5
c *******************************************************************
6
c Writes forces in eV/Ang
7
c Emilio Artacho, Feb. 1999
8
c ********** INPUT **************************************************
9
c integer na : Number atoms
10
c real*8 fa(3,na) : Forces on the atoms
11
c *******************************************************************
16
double precision fa(3,*)
17
external io_assign, io_close, paste
18
include 'fdf/fdfdefs.h'
21
character sname*30, fname*33
24
double precision Ang, eV
25
save frstme, fname, eV, Ang
27
c -------------------------------------------------------------------
30
Ang = 1.d0 / 0.529177d0
31
eV = 1.d0 / 13.60580d0
32
sname = fdf_string( 'SystemLabel', 'siesta' )
33
fname = paste( sname, '.FA' )
38
open( iu, file=fname, form='formatted', status='unknown' )
41
write(iu,'(i6,3f12.6)') (ia, (fa(ix,ia)*Ang/eV,ix=1,3), ia=1,na)