Statistiques
| Révision :

root / src / freemv.f90 @ 2

Historique | Voir | Annoter | Télécharger (1,24 ko)

1 1 pfleura2
  Subroutine freemv(NFree,vfree)
2 1 pfleura2
3 1 pfleura2
  use Path_module, only : HUpdate,Hinv
4 1 pfleura2
  use Io_module, only : IoOut
5 1 pfleura2
6 1 pfleura2
  IMPLICIT NONE
7 1 pfleura2
8 1 pfleura2
  INTEGER, PARAMETER :: KINT=KIND(1)
9 1 pfleura2
  INTEGER, PARAMETER :: KREAL=KIND(1.0D0)
10 1 pfleura2
11 1 pfleura2
  INTEGER(KINT), INTENT(IN) :: Nfree
12 1 pfleura2
  REAL(KREAL), INTENT(OUT) :: Vfree(Nfree,Nfree)
13 1 pfleura2
14 1 pfleura2
! ======================================================================
15 1 pfleura2
!
16 1 pfleura2
! At the end, this should do:
17 1 pfleura2
! Construct displacement vectors that are free and which do not contain rigid motions.
18 1 pfleura2
! Output : vectors are orthonormal (in the non-mass-weighted metric)
19 1 pfleura2
!
20 1 pfleura2
! For now, it just returns an identity matrix (NFree,Nfree)
21 1 pfleura2
! v3.94
22 1 pfleura2
! We delete displacements that correspond to frozen atoms
23 1 pfleura2
!
24 1 pfleura2
! ======================================================================
25 1 pfleura2
  logical :: debug
26 1 pfleura2
  integer(KINT) :: I
27 1 pfleura2
28 1 pfleura2
  interface
29 1 pfleura2
     function valid(string) result (isValid)
30 1 pfleura2
       logical                  :: isValid
31 1 pfleura2
       character(*), intent(in) :: string
32 1 pfleura2
     end function valid
33 1 pfleura2
  end interface
34 1 pfleura2
35 1 pfleura2
  debug=valid('vfree')
36 1 pfleura2
37 1 pfleura2
  if (debug) WRITE(*,*) "================================= Entering Vfree ==============="
38 1 pfleura2
39 1 pfleura2
  Vfree=0.d0
40 1 pfleura2
  DO I=1,Nfree
41 1 pfleura2
     Vfree(I,I)=1.d0
42 1 pfleura2
  END DO
43 1 pfleura2
44 1 pfleura2
  if (debug) WRITE(*,*) "================================= Exiting Vfree ==============="
45 1 pfleura2
46 1 pfleura2
 END Subroutine freemv
47 1 pfleura2