6 subroutine curlrvf(rvfmt,rvfir,curlmt,curlir)
11 real(8),
intent(in) :: rvfmt(npmtmax,natmtot,3),rvfir(ngtot,3)
12 real(8),
intent(out) :: curlmt(npmtmax,natmtot,3),curlir(ngtot,3)
14 integer is,ias,np,i,nthd
16 real(8),
allocatable :: grfmt(:,:,:,:),grfir(:,:,:)
17 allocate(grfmt(npmtmax,natmtot,3,3),grfir(ngtot,3,3))
25 call gradrf(rvfmt(:,:,i),rvfir(:,i),grfmt(:,:,:,i),grfir(:,:,i))
34 curlmt(1:np,ias,1)=grfmt(1:np,ias,2,3)-grfmt(1:np,ias,3,2)
35 curlmt(1:np,ias,2)=grfmt(1:np,ias,3,1)-grfmt(1:np,ias,1,3)
36 curlmt(1:np,ias,3)=grfmt(1:np,ias,1,2)-grfmt(1:np,ias,2,1)
39 curlir(1:ngtot,1)=grfir(1:ngtot,2,3)-grfir(1:ngtot,3,2)
40 curlir(1:ngtot,2)=grfir(1:ngtot,3,1)-grfir(1:ngtot,1,3)
41 curlir(1:ngtot,3)=grfir(1:ngtot,1,2)-grfir(1:ngtot,2,1)
45 deallocate(grfmt,grfir)
integer, dimension(maxspecies) npmt
subroutine gradrf(rfmt, rfir, grfmt, grfir)
subroutine curlrvf(rvfmt, rvfir, curlmt, curlir)
integer, dimension(maxatoms *maxspecies) idxis
subroutine holdthd(nloop, nthd)