root / src / Io_module.f90 @ 3
Historique | Voir | Annoter | Télécharger (2,33 ko)
| 1 | 1 | pfleura2 | MODULE Io_Module |
|---|---|---|---|
| 2 | 1 | pfleura2 | ! This module contains all variables related to IO |
| 3 | 1 | pfleura2 | |
| 4 | 1 | pfleura2 | use VarTypes |
| 5 | 1 | pfleura2 | |
| 6 | 1 | pfleura2 | IMPLICIT NONE |
| 7 | 1 | pfleura2 | |
| 8 | 1 | pfleura2 | SAVE |
| 9 | 1 | pfleura2 | |
| 10 | 1 | pfleura2 | INTEGER(KINT) :: IOIN=11, IOOUT=12, IOCART=14 |
| 11 | 1 | pfleura2 | INTEGER(KINT), PARAMETER :: IOTMP=21,IOTMP2=22, IOTMP3=23 |
| 12 | 1 | pfleura2 | |
| 13 | 1 | pfleura2 | TYPE Input_Line |
| 14 | 1 | pfleura2 | CHARACTER(LCHARS) :: Line |
| 15 | 1 | pfleura2 | TYPE (Input_Line), POINTER :: Next |
| 16 | 1 | pfleura2 | END TYPE Input_Line |
| 17 | 1 | pfleura2 | |
| 18 | 1 | pfleura2 | CHARACTER(SCHARS) :: RunMode |
| 19 | 1 | pfleura2 | |
| 20 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 21 | 1 | pfleura2 | ! |
| 22 | 1 | pfleura2 | ! Some parameters for unit conversion |
| 23 | 1 | pfleura2 | ! |
| 24 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 25 | 1 | pfleura2 | |
| 26 | 1 | pfleura2 | REAL(KREAL), PARAMETER :: ev2au= 0.036749324445d0 |
| 27 | 1 | pfleura2 | |
| 28 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 29 | 1 | pfleura2 | ! |
| 30 | 1 | pfleura2 | ! Variables for Gaussian input |
| 31 | 1 | pfleura2 | ! |
| 32 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 33 | 1 | pfleura2 | TYPE (Input_line), POINTER :: Gauss_Root, Gauss_End, Gauss_Comment |
| 34 | 1 | pfleura2 | TYPE (Input_Line), POINTER :: Current, Previous |
| 35 | 1 | pfleura2 | |
| 36 | 1 | pfleura2 | CHARACTER(LCHARS) :: Gauss_Charge |
| 37 | 1 | pfleura2 | CHARACTER(LCHARS), ALLOCATABLE :: Gauss_paste(:) |
| 38 | 1 | pfleura2 | |
| 39 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 40 | 1 | pfleura2 | ! |
| 41 | 1 | pfleura2 | ! Variables for MOPAC input |
| 42 | 1 | pfleura2 | ! |
| 43 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 44 | 1 | pfleura2 | TYPE (Input_line), POINTER :: Mopac_Root, Mopac_End, Mopac_Comment |
| 45 | 1 | pfleura2 | TYPE (Input_Line), POINTER :: CurCom |
| 46 | 1 | pfleura2 | CHARACTER(LCHARS) :: Mopac_EndGeom |
| 47 | 1 | pfleura2 | |
| 48 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 49 | 1 | pfleura2 | ! |
| 50 | 1 | pfleura2 | ! Variables for VASP input/output |
| 51 | 1 | pfleura2 | ! |
| 52 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 53 | 1 | pfleura2 | CHARACTER(LCHARS) :: Vasp_Title, Vasp_Types, Vasp_comment, Vasp_direct |
| 54 | 1 | pfleura2 | REAL(KREAL) :: vasp_Param |
| 55 | 1 | pfleura2 | CHARACTER(4), ALLOCATABLE :: FFF(:,:) !(3,na) |
| 56 | 1 | pfleura2 | INTEGER(KINT) :: NbTypes |
| 57 | 1 | pfleura2 | INTEGER(KINT), PARAMETER :: MaxType=100 |
| 58 | 1 | pfleura2 | CHARACTER(2) :: Attypes(MaxType)=' ' |
| 59 | 1 | pfleura2 | ! WriteVasp controls the printing of the images coordinates in POSCAR files. |
| 60 | 1 | pfleura2 | LOGICAL :: WriteVasp |
| 61 | 1 | pfleura2 | |
| 62 | 1 | pfleura2 | |
| 63 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 64 | 1 | pfleura2 | ! |
| 65 | 1 | pfleura2 | ! For debug |
| 66 | 1 | pfleura2 | ! |
| 67 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 68 | 1 | pfleura2 | CHARACTER(132) :: DebugFile='Path.valid' |
| 69 | 1 | pfleura2 | |
| 70 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 71 | 1 | pfleura2 | ! |
| 72 | 1 | pfleura2 | ! For Printing |
| 73 | 1 | pfleura2 | ! |
| 74 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 75 | 1 | pfleura2 | CHARACTER(LCHARS) :: PathName |
| 76 | 1 | pfleura2 | |
| 77 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 78 | 1 | pfleura2 | ! |
| 79 | 1 | pfleura2 | ! For Energy+Gradient calculations |
| 80 | 1 | pfleura2 | ! |
| 81 | 1 | pfleura2 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 82 | 1 | pfleura2 | ! CalcName: Prefix for the files used for the energy and gradient calculations |
| 83 | 1 | pfleura2 | CHARACTER(LCHARS) :: CalcName |
| 84 | 1 | pfleura2 | |
| 85 | 1 | pfleura2 | ! ISuffix: Suffix for the input file |
| 86 | 1 | pfleura2 | CHARACTER(LCHARS) :: ISuffix |
| 87 | 1 | pfleura2 | ! OSuffix: suffix for the output file. |
| 88 | 1 | pfleura2 | CHARACTER(LCHARS) :: OSuffix |
| 89 | 1 | pfleura2 | |
| 90 | 1 | pfleura2 | |
| 91 | 1 | pfleura2 | END MODULE IO_MODULE |