11real(8) v1(3),v2(3),v3(3),v4(3),t1
12real(8) dxx,dyx,dyy,dzx,dzy,dzz
18open(50,file=
'crystal.xsf',form=
'FORMATTED')
20write(50,
'("CRYSTAL")')
22write(50,
'("PRIMVEC")')
27write(50,
'("PRIMCOORD")')
36write(*,
'("Info(geomplot):")')
37write(*,
'(" XCrysDen file written to crystal.xsf")')
47t1=sqrt(v3(1)**2+v3(2)**2+v3(3)**2)
50t1=sqrt(v2(1)**2+v2(2)**2+v2(3)**2)
52dxx=dot_product(
avec(:,1),v1(:))
53dyx=dot_product(
avec(:,2),v1(:))
54dyy=dot_product(
avec(:,2),v2(:))
55dzx=dot_product(
avec(:,3),v1(:))
56dzy=dot_product(
avec(:,3),v2(:))
57dzz=dot_product(
avec(:,3),v3(:))
58open(50,file=
'crystal.ascii',form=
'FORMATTED')
60write(50,
'(3G18.10)') dxx,dyx,dyy
61write(50,
'(3G18.10)') dzx,dzy,dzz
65 v4(1)=dot_product(
atposc(:,ia,is),v1(:))
66 v4(2)=dot_product(
atposc(:,ia,is),v2(:))
67 v4(3)=dot_product(
atposc(:,ia,is),v3(:))
68 write(50,
'(3G18.10," ",A)') v4,trim(
spsymb(is))
73write(*,
'("Info(geomplot):")')
74write(*,
'(" V_Sim file written to crystal.ascii")')
real(8), dimension(3, maxatoms, maxspecies) atposc
integer, dimension(maxspecies) natoms
real(8), parameter br_ang
real(8), dimension(3, 3) avec
character(64), dimension(maxspecies) spsymb