root / src / Read_geom.f90 @ 3
Historique | Voir | Annoter | Télécharger (9,87 ko)
| 1 | 1 | pfleura2 | SUBROUTINE Read_Geom(input) |
|---|---|---|---|
| 2 | 1 | pfleura2 | |
| 3 | 1 | pfleura2 | Use Path_module |
| 4 | 1 | pfleura2 | Use Io_module |
| 5 | 1 | pfleura2 | |
| 6 | 1 | pfleura2 | IMPLICIT NONE |
| 7 | 1 | pfleura2 | |
| 8 | 1 | pfleura2 | |
| 9 | 1 | pfleura2 | CHARACTER(32), INTENT(IN) :: input |
| 10 | 1 | pfleura2 | CHARACTER(132) :: LineTmp,Line |
| 11 | 1 | pfleura2 | |
| 12 | 1 | pfleura2 | INTEGER(KINT), ALLOCATABLE :: NbAtType(:) !na |
| 13 | 1 | pfleura2 | INTEGER(KINT) :: NbType, NbTypeUser |
| 14 | 1 | pfleura2 | INTEGER(KINT) :: I, J, Iat,NAtP,Idx,JStart |
| 15 | 1 | pfleura2 | INTEGER(KINT) :: IGeom |
| 16 | 1 | pfleura2 | REAL(KREAL) :: Xt,Yt,Zt |
| 17 | 1 | pfleura2 | LOGICAL :: Debug, TChk |
| 18 | 1 | pfleura2 | CHARACTER(4), ALLOCATABLE :: FFFt(:,:) ! 3,Na |
| 19 | 1 | pfleura2 | LOGICAL, ALLOCATABLE :: FFFl(:,:) ! 3,Na |
| 20 | 1 | pfleura2 | |
| 21 | 1 | pfleura2 | !!! for VASP inputs |
| 22 | 1 | pfleura2 | ! latx_loc used to check that the lattice parameters are the same for all geometries |
| 23 | 1 | pfleura2 | REAL(KREAL) :: lata_loc(3), latb_loc(3), latc_loc(3) |
| 24 | 1 | pfleura2 | ! VaspPar_loc is the local value of the vasp parametre |
| 25 | 1 | pfleura2 | REAL(KREAL) :: VaspPar_loc |
| 26 | 1 | pfleura2 | ! Vdir_loc is used to convert the read geometry to Cartesian. |
| 27 | 1 | pfleura2 | ! V_direct is set by the first geometry. |
| 28 | 1 | pfleura2 | CHARACTER(LCHARS) :: Vdir_loc |
| 29 | 1 | pfleura2 | |
| 30 | 1 | pfleura2 | |
| 31 | 1 | pfleura2 | INTERFACE |
| 32 | 1 | pfleura2 | function valid(string) result (isValid) |
| 33 | 1 | pfleura2 | CHARACTER(*), intent(in) :: string |
| 34 | 1 | pfleura2 | logical :: isValid |
| 35 | 1 | pfleura2 | END function VALID |
| 36 | 1 | pfleura2 | END INTERFACE |
| 37 | 1 | pfleura2 | |
| 38 | 1 | pfleura2 | debug=valid('Read_geom')
|
| 39 | 1 | pfleura2 | if (debug) Call Header("Entering Read_Geom")
|
| 40 | 1 | pfleura2 | if (debug) WRITE(*,*) "Input:",Trim(Input) |
| 41 | 1 | pfleura2 | if (debug) WRITE(*,*) "NgeomI:",NGeomI |
| 42 | 1 | pfleura2 | |
| 43 | 1 | pfleura2 | SELECT CASE(Input) |
| 44 | 1 | pfleura2 | CASE ('XYZ','CART')
|
| 45 | 1 | pfleura2 | DO I=1,NGeomI |
| 46 | 1 | pfleura2 | IF (DEBUG) WRITE(*,*) "Reading Geom :",I |
| 47 | 1 | pfleura2 | READ(IOIN,*) NAtp |
| 48 | 1 | pfleura2 | if (NAtp.NE.Nat) THEN |
| 49 | 1 | pfleura2 | IF (I==1) THEN |
| 50 | 1 | pfleura2 | WRITE(IOOUT,*) 'WARNING Number of atoms not consistent between NAMELIST &path and First geom' |
| 51 | 1 | pfleura2 | WRITE(IOOUT,*) "Using:",Natp |
| 52 | 1 | pfleura2 | DEALLOCATE(XyzGeomI, AtName) |
| 53 | 1 | pfleura2 | Nat=Natp |
| 54 | 1 | pfleura2 | ALLOCATE(XyzGeomI(NGeomI,3,Nat), AtName(NAt)) |
| 55 | 1 | pfleura2 | ELSE |
| 56 | 1 | pfleura2 | WRITE(IOOUT,*) 'Number of atoms not consistent between geometries. STOP' |
| 57 | 1 | pfleura2 | STOP |
| 58 | 1 | pfleura2 | END IF |
| 59 | 1 | pfleura2 | END IF |
| 60 | 1 | pfleura2 | READ(IOIN,'(A)') Line |
| 61 | 1 | pfleura2 | DO J=1,NAt |
| 62 | 1 | pfleura2 | READ(IOIN,*) AtName(J),XyzGeomI(I,1:3,J) |
| 63 | 1 | pfleura2 | END DO |
| 64 | 1 | pfleura2 | If (Debug) THEN |
| 65 | 1 | pfleura2 | WRITE(*,*) "Geom ",I |
| 66 | 1 | pfleura2 | DO J=1,NAt |
| 67 | 1 | pfleura2 | WRITE(*,'(1X,A2,3(1X,F15.6))') AtName(J),XyzGeomI(I,1:3,J) |
| 68 | 1 | pfleura2 | END DO |
| 69 | 1 | pfleura2 | END IF |
| 70 | 1 | pfleura2 | END DO |
| 71 | 1 | pfleura2 | CASE ('TURBOMOLE')
|
| 72 | 1 | pfleura2 | DO I=1,NGeomI |
| 73 | 1 | pfleura2 | IF (DEBUG) WRITE(*,*) "Reading Geom :",I |
| 74 | 1 | pfleura2 | JStart=1 |
| 75 | 1 | pfleura2 | ! read the $coord line, or $user-defined, or $end |
| 76 | 1 | pfleura2 | Line='$ok' |
| 77 | 1 | pfleura2 | DO WHILE (Line(1:1).EQ."$") |
| 78 | 1 | pfleura2 | READ(IOIN,'(A)') Line |
| 79 | 1 | pfleura2 | Line=AdjustL(Line) |
| 80 | 1 | pfleura2 | END DO |
| 81 | 1 | pfleura2 | J=1 |
| 82 | 1 | pfleura2 | READ(Line,*) XyzGeomI(I,1:3,J),AtName(J) |
| 83 | 1 | pfleura2 | DO J=2,NAt |
| 84 | 1 | pfleura2 | READ(IOIN,*) XyzGeomI(I,1:3,J),AtName(J) |
| 85 | 1 | pfleura2 | END DO |
| 86 | 1 | pfleura2 | XyzGeomI(I,:,:)= XyzGeomI(I,:,:)*a0 |
| 87 | 1 | pfleura2 | If (Debug) THEN |
| 88 | 1 | pfleura2 | WRITE(*,*) "Geom ",I |
| 89 | 1 | pfleura2 | DO J=1,NAt |
| 90 | 1 | pfleura2 | WRITE(*,'(1X,A2,3(1X,F15.6))') AtName(J),XyzGeomI(I,1:3,J) |
| 91 | 1 | pfleura2 | END DO |
| 92 | 1 | pfleura2 | END IF |
| 93 | 1 | pfleura2 | END DO |
| 94 | 1 | pfleura2 | CASE ('VASP')
|
| 95 | 1 | pfleura2 | ALLOCATE(FFF(3,nat),FFFl(3,Nat),FFFt(3,Nat)) |
| 96 | 1 | pfleura2 | ! First geometry is a bit special for VASP as we have to set |
| 97 | 1 | pfleura2 | ! many things |
| 98 | 1 | pfleura2 | IGeom=1 |
| 99 | 1 | pfleura2 | IF (DEBUG) WRITE(*,*) "Reading Geom :",IGeom |
| 100 | 1 | pfleura2 | READ(IOIN,'(A)') Vasp_Title |
| 101 | 1 | pfleura2 | READ(IOIN,*) Vasp_param |
| 102 | 1 | pfleura2 | |
| 103 | 1 | pfleura2 | READ(IOIN,*) Lat_a |
| 104 | 1 | pfleura2 | READ(IOIN,*) Lat_b |
| 105 | 1 | pfleura2 | READ(IOIN,*) Lat_c |
| 106 | 1 | pfleura2 | |
| 107 | 1 | pfleura2 | Lat_a=Lat_a*Vasp_param |
| 108 | 1 | pfleura2 | Lat_b=Lat_b*Vasp_param |
| 109 | 1 | pfleura2 | Lat_c=Lat_c*Vasp_param |
| 110 | 1 | pfleura2 | |
| 111 | 1 | pfleura2 | ALLOCATE(NbAtType(nat)) |
| 112 | 1 | pfleura2 | READ(IOIN,'(A)') Vasp_types |
| 113 | 1 | pfleura2 | ! First, how many different types ? |
| 114 | 1 | pfleura2 | NbAtType=0 |
| 115 | 1 | pfleura2 | READ(Vasp_types,*,END=999) NbAtType |
| 116 | 1 | pfleura2 | 999 CONTINUE |
| 117 | 1 | pfleura2 | NbType=0 |
| 118 | 1 | pfleura2 | NatP=0 |
| 119 | 1 | pfleura2 | DO WHILE (NbAtType(NbType+1).NE.0) |
| 120 | 1 | pfleura2 | NbType=NbType+1 |
| 121 | 1 | pfleura2 | Natp=Natp+NbAtType(NbType) |
| 122 | 1 | pfleura2 | END DO |
| 123 | 1 | pfleura2 | |
| 124 | 1 | pfleura2 | |
| 125 | 1 | pfleura2 | if (NAtp.NE.Nat) THEN |
| 126 | 1 | pfleura2 | WRITE(IOOUT,*) 'WARNING Number of atoms not consistent between NAMELIST &path and First geom' |
| 127 | 1 | pfleura2 | WRITE(IOOUT,*) "Using:",Natp |
| 128 | 1 | pfleura2 | DEALLOCATE(XyzGeomI, AtName) |
| 129 | 1 | pfleura2 | Nat=Natp |
| 130 | 1 | pfleura2 | ALLOCATE(XyzGeomI(NGeomI,3,Nat), AtName(NAt)) |
| 131 | 1 | pfleura2 | END if |
| 132 | 1 | pfleura2 | |
| 133 | 1 | pfleura2 | ! Do we know the atom types ? |
| 134 | 1 | pfleura2 | IF (AtTypes(1).EQ.' ') THEN |
| 135 | 1 | pfleura2 | ! user has not provided atom types... we have to find them by ourselves |
| 136 | 1 | pfleura2 | ! by looking into the POTCAR file... |
| 137 | 1 | pfleura2 | INQUIRE(File="POTCAR", EXIST=Tchk) |
| 138 | 1 | pfleura2 | IF (.NOT.Tchk) THEN |
| 139 | 1 | pfleura2 | WRITE(*,*) "ERROR! No AtTypes provided, and POTCAR file not found" |
| 140 | 1 | pfleura2 | STOP |
| 141 | 1 | pfleura2 | END IF |
| 142 | 1 | pfleura2 | OPEN(IOTMP,File="POTCAR") |
| 143 | 1 | pfleura2 | DO I=1,NbType |
| 144 | 1 | pfleura2 | Line='Empty' |
| 145 | 1 | pfleura2 | DO WHILE (Line(1:5).NE.'TITEL') |
| 146 | 1 | pfleura2 | READ(IOTMP,'(A)') Line |
| 147 | 1 | pfleura2 | Line=AdjustL(Line) |
| 148 | 1 | pfleura2 | END DO |
| 149 | 1 | pfleura2 | Line=adjustl(Line(9:)) |
| 150 | 1 | pfleura2 | Idx=index(Line," ") |
| 151 | 1 | pfleura2 | Line=adjustl(Line(Idx+1:)) |
| 152 | 1 | pfleura2 | AtTypes(I)=Line(1:2) |
| 153 | 1 | pfleura2 | END DO |
| 154 | 1 | pfleura2 | if (debug) WRITE(*,'(A,100(1X,A2))') "ReadG:VASP AtTypes",AtTypes(1:NbType) |
| 155 | 1 | pfleura2 | CLOSE(IOTMP) |
| 156 | 1 | pfleura2 | |
| 157 | 1 | pfleura2 | ELSE !AtTypes(1).EQ.' ' |
| 158 | 1 | pfleura2 | ! user has provided atom types |
| 159 | 1 | pfleura2 | NbTypeUser=0 |
| 160 | 1 | pfleura2 | DO WHILE (AtTypes(NbTypeUser+1).NE.' ') |
| 161 | 1 | pfleura2 | NbTypeUser=NbTypeUser+1 |
| 162 | 1 | pfleura2 | END DO |
| 163 | 1 | pfleura2 | IF (NbType.NE.NbTypeUser) THEN |
| 164 | 1 | pfleura2 | WRITE(*,*) "ERROR Read_Geom : NbType in POSCAR do not match AtTypes" |
| 165 | 1 | pfleura2 | STOP |
| 166 | 1 | pfleura2 | END IF |
| 167 | 1 | pfleura2 | END IF |
| 168 | 1 | pfleura2 | |
| 169 | 1 | pfleura2 | IAt=1 |
| 170 | 1 | pfleura2 | DO I=1,NbType |
| 171 | 1 | pfleura2 | DO J=1,NbAtType(I) |
| 172 | 1 | pfleura2 | AtName(Iat)=AtTypes(I) |
| 173 | 1 | pfleura2 | Iat=Iat+1 |
| 174 | 1 | pfleura2 | END DO |
| 175 | 1 | pfleura2 | END DO |
| 176 | 1 | pfleura2 | DEALLOCATE(NbAtType) |
| 177 | 1 | pfleura2 | |
| 178 | 1 | pfleura2 | NbTypes=NbType |
| 179 | 1 | pfleura2 | |
| 180 | 1 | pfleura2 | READ(IOIN,'(A)') Vasp_comment |
| 181 | 1 | pfleura2 | READ(IOIN,'(A)') Vasp_direct |
| 182 | 1 | pfleura2 | |
| 183 | 1 | pfleura2 | V_direct=adjustl(Vasp_direct) |
| 184 | 1 | pfleura2 | Call upcase(V_direct) |
| 185 | 1 | pfleura2 | |
| 186 | 1 | pfleura2 | if (debug) WRITE(*,*) "V_direct=",Trim(V_Direct) |
| 187 | 1 | pfleura2 | |
| 188 | 1 | pfleura2 | DO I=1,Nat |
| 189 | 1 | pfleura2 | READ(IOIN,*) XyzGeomI(IGeom,1:3,I),FFF(1:3,I) |
| 190 | 1 | pfleura2 | DO J=1,3 |
| 191 | 1 | pfleura2 | FFF(J,I)=AdjustL(FFF(J,I)) |
| 192 | 1 | pfleura2 | FFFl(j,i)=(FFF(j,i)(1:1).EQ.'T').OR.(FFF(j,i)(1:1).EQ.'t') |
| 193 | 1 | pfleura2 | END DO |
| 194 | 1 | pfleura2 | |
| 195 | 1 | pfleura2 | END DO |
| 196 | 1 | pfleura2 | IF (V_direct(1:6).EQ.'DIRECT') THEN |
| 197 | 1 | pfleura2 | DO I=1,Nat |
| 198 | 1 | pfleura2 | Xt=XyzGeomI(IGeom,1,I) |
| 199 | 1 | pfleura2 | Yt=XyzGeomI(IGeom,2,I) |
| 200 | 1 | pfleura2 | Zt=XyzGeomI(IGeom,3,I) |
| 201 | 1 | pfleura2 | XyzGeomI(IGeom,1,I)=Xt*lat_a(1)+Yt*lat_b(1)+Zt*lat_c(1) |
| 202 | 1 | pfleura2 | XyzGeomI(IGeom,2,I)=Xt*lat_a(2)+Yt*lat_b(2)+Zt*lat_c(2) |
| 203 | 1 | pfleura2 | XyzGeomI(IGeom,3,I)=Xt*lat_a(3)+Yt*lat_b(3)+Zt*lat_c(3) |
| 204 | 1 | pfleura2 | END DO |
| 205 | 1 | pfleura2 | |
| 206 | 1 | pfleura2 | END IF |
| 207 | 1 | pfleura2 | |
| 208 | 1 | pfleura2 | ALLOCATE(X0_vasp(Nat),Y0_vasp(Nat),Z0_vasp(Nat)) |
| 209 | 1 | pfleura2 | X0_vasp=XyzGeomI(IGeom,1,:) |
| 210 | 1 | pfleura2 | Y0_vasp=XyzGeomI(IGeom,2,:) |
| 211 | 1 | pfleura2 | Z0_vasp=XyzGeomI(IGeom,3,:) |
| 212 | 1 | pfleura2 | |
| 213 | 1 | pfleura2 | if (debug) THEN |
| 214 | 1 | pfleura2 | WRITE(*,*) Nat |
| 215 | 1 | pfleura2 | WRITE(*,*) "Geom ",IGeom,"/",NGeomI |
| 216 | 1 | pfleura2 | DO I=1,Nat |
| 217 | 1 | pfleura2 | WRITE(*,'(1X,A2,3(1X,F15.6))') AtName(I),XyzGeomI(IGeom,1:3,I) |
| 218 | 1 | pfleura2 | END DO |
| 219 | 1 | pfleura2 | END IF |
| 220 | 1 | pfleura2 | |
| 221 | 1 | pfleura2 | |
| 222 | 1 | pfleura2 | DO IGeom=2,NGeomI |
| 223 | 1 | pfleura2 | !!! PFL 16th March 2008 -> |
| 224 | 1 | pfleura2 | ! Users might want to use different conditions for different geometries |
| 225 | 1 | pfleura2 | ! i.e. to mix Cartesian and Direct :-p |
| 226 | 1 | pfleura2 | ! thus we check for each geom which condition is used. |
| 227 | 1 | pfleura2 | ! |
| 228 | 1 | pfleura2 | |
| 229 | 1 | pfleura2 | ! Title |
| 230 | 1 | pfleura2 | READ(IOIN,*) LineTmp |
| 231 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "1 LineTmp:",Trim(LineTmp) |
| 232 | 1 | pfleura2 | ! Vasp_Param |
| 233 | 1 | pfleura2 | READ(IOIN,*) VaspPar_loc |
| 234 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "2 LineTmp:",Trim(LineTmp) |
| 235 | 1 | pfleura2 | ! Lattice parameters |
| 236 | 1 | pfleura2 | READ(IOIN,*) Lata_loc |
| 237 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "3 LineTmp:",Trim(LineTmp) |
| 238 | 1 | pfleura2 | READ(IOIN,*) latb_loc |
| 239 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "4 LineTmp:",Trim(LineTmp) |
| 240 | 1 | pfleura2 | READ(IOIN,*) Latc_loc |
| 241 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "5 LineTmp:",Trim(LineTmp) |
| 242 | 1 | pfleura2 | ! Attypes |
| 243 | 1 | pfleura2 | READ(IOIN,*) LineTmp |
| 244 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "6 LineTmp:",Trim(LineTmp) |
| 245 | 1 | pfleura2 | ! Comment |
| 246 | 1 | pfleura2 | READ(IOIN,*) LineTmp,line |
| 247 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "7 LineTmp:",Trim(LineTmp),Trim(Line) |
| 248 | 1 | pfleura2 | ! V_direct |
| 249 | 1 | pfleura2 | READ(IOIN,*) Vdir_loc |
| 250 | 1 | pfleura2 | Vdir_loc=adjustl(Vdir_loc) |
| 251 | 1 | pfleura2 | Call upcase(Vdir_loc) |
| 252 | 1 | pfleura2 | ! if (debug) WRITE(*,*) "8 LineTmp:",Trim(LineTmp) |
| 253 | 1 | pfleura2 | |
| 254 | 1 | pfleura2 | Lata_loc=Lata_loc*VaspPar_loc-Lat_a |
| 255 | 1 | pfleura2 | if (dot_product(lata_loc,Lata_loc).GE.1e-6) THEN |
| 256 | 1 | pfleura2 | WRITE(*,*) "Lattice parameter a is different between geometries 1 and ",IGeom |
| 257 | 1 | pfleura2 | WRITE(IOOUT,*) "Lattice parameter a is different between geometries 1 and ",IGeom |
| 258 | 1 | pfleura2 | STOP |
| 259 | 1 | pfleura2 | END IF |
| 260 | 1 | pfleura2 | |
| 261 | 1 | pfleura2 | Latb_loc=Latb_loc*VaspPar_loc-Lat_b |
| 262 | 1 | pfleura2 | if (dot_product(latb_loc,Latb_loc).GE.1e-6) THEN |
| 263 | 1 | pfleura2 | WRITE(*,*) "Lattice parameter b is different between geometries 1 and ",IGeom |
| 264 | 1 | pfleura2 | WRITE(IOOUT,*) "Lattice parameter b is different between geometries 1 and ",IGeom |
| 265 | 1 | pfleura2 | STOP |
| 266 | 1 | pfleura2 | END IF |
| 267 | 1 | pfleura2 | |
| 268 | 1 | pfleura2 | Latc_loc=Latc_loc*VaspPar_loc-Lat_c |
| 269 | 1 | pfleura2 | if (dot_product(latc_loc,Latc_loc).GE.1e-6) THEN |
| 270 | 1 | pfleura2 | WRITE(*,*) "Lattice parameter c is different between geometries 1 and ",IGeom |
| 271 | 1 | pfleura2 | WRITE(IOOUT,*) "Lattice parameter c is different between geometries 1 and ",IGeom |
| 272 | 1 | pfleura2 | STOP |
| 273 | 1 | pfleura2 | END IF |
| 274 | 1 | pfleura2 | |
| 275 | 1 | pfleura2 | DO I=1,Nat |
| 276 | 1 | pfleura2 | READ(IOIN,*) XyzGeomI(IGeom,1:3,I),FFFt(1:3,I) |
| 277 | 1 | pfleura2 | DO J=1,3 |
| 278 | 1 | pfleura2 | ! A frozen atom in any geom is considered frozen in all geom |
| 279 | 1 | pfleura2 | FFFt(j,I)=AdjustL(FFFt(j,i)) |
| 280 | 1 | pfleura2 | FFFl(j,i)=FFFl(j,i).AND.(FFFt(j,i).EQ.'T') |
| 281 | 1 | pfleura2 | END DO |
| 282 | 1 | pfleura2 | END DO |
| 283 | 1 | pfleura2 | |
| 284 | 1 | pfleura2 | IF (Vdir_loc(1:6).EQ.'DIRECT') THEN |
| 285 | 1 | pfleura2 | DO I=1,Nat |
| 286 | 1 | pfleura2 | Xt=XyzGeomI(IGeom,1,I) |
| 287 | 1 | pfleura2 | Yt=XyzGeomI(IGeom,2,I) |
| 288 | 1 | pfleura2 | Zt=XyzGeomI(IGeom,3,I) |
| 289 | 1 | pfleura2 | XyzGeomI(IGeom,1,I)=Xt*lat_a(1)+Yt*lat_b(1)+Zt*lat_c(1) |
| 290 | 1 | pfleura2 | XyzGeomI(IGeom,2,I)=Xt*lat_a(2)+Yt*lat_b(2)+Zt*lat_c(2) |
| 291 | 1 | pfleura2 | XyzGeomI(IGeom,3,I)=Xt*lat_a(3)+Yt*lat_b(3)+Zt*lat_c(3) |
| 292 | 1 | pfleura2 | END DO |
| 293 | 1 | pfleura2 | END IF |
| 294 | 1 | pfleura2 | |
| 295 | 1 | pfleura2 | if (debug) THEN |
| 296 | 1 | pfleura2 | WRITE(*,*) Nat |
| 297 | 1 | pfleura2 | WRITE(*,*) "Geom ",IGeom,"/",NGeomI |
| 298 | 1 | pfleura2 | DO I=1,Nat |
| 299 | 1 | pfleura2 | WRITE(*,'(1X,A2,3(1X,F15.6))') AtName(I),XyzGeomI(IGeom,1:3,I) |
| 300 | 1 | pfleura2 | END DO |
| 301 | 1 | pfleura2 | END IF |
| 302 | 1 | pfleura2 | |
| 303 | 1 | pfleura2 | END DO |
| 304 | 1 | pfleura2 | |
| 305 | 1 | pfleura2 | ! PFL 23 Nov 2008 -> |
| 306 | 1 | pfleura2 | ! This is done in Path.f90 |
| 307 | 1 | pfleura2 | ! ! We put FFrozen in place |
| 308 | 1 | pfleura2 | ! Idx=1 |
| 309 | 1 | pfleura2 | ! DO I=1,Nat |
| 310 | 1 | pfleura2 | ! TChk=.FALSE. |
| 311 | 1 | pfleura2 | ! DO J=1,3 |
| 312 | 1 | pfleura2 | ! TChk=Tchk.OR.(.NOT.FFFl(j,i)) |
| 313 | 1 | pfleura2 | ! END DO |
| 314 | 1 | pfleura2 | ! IF (TChk) THEN |
| 315 | 1 | pfleura2 | ! Frozen(Idx)=I |
| 316 | 1 | pfleura2 | ! Idx=Idx+1 |
| 317 | 1 | pfleura2 | ! END IF |
| 318 | 1 | pfleura2 | ! END DO |
| 319 | 1 | pfleura2 | ! Frozen(Idx)=0 |
| 320 | 1 | pfleura2 | ! We put FFF in place because FFFl is a logical flag |
| 321 | 1 | pfleura2 | DO I=1,Nat |
| 322 | 1 | pfleura2 | DO J=1,3 |
| 323 | 1 | pfleura2 | if (FFFl(j,i)) FFF(j,i)="T" |
| 324 | 1 | pfleura2 | END DO |
| 325 | 1 | pfleura2 | END DO |
| 326 | 1 | pfleura2 | |
| 327 | 1 | pfleura2 | !<- PFL 23 Nov 2008 |
| 328 | 1 | pfleura2 | |
| 329 | 1 | pfleura2 | Deallocate(FFFl,FFFt) |
| 330 | 1 | pfleura2 | |
| 331 | 1 | pfleura2 | CASE Default |
| 332 | 1 | pfleura2 | WRITe(*,*) 'Input=',trim(Input),' UNKNOWN. Stop' |
| 333 | 1 | pfleura2 | STOP |
| 334 | 1 | pfleura2 | |
| 335 | 1 | pfleura2 | END SELECT |
| 336 | 1 | pfleura2 | |
| 337 | 1 | pfleura2 | |
| 338 | 1 | pfleura2 | if (debug) Call Header("Exiting Read_Geom")
|
| 339 | 1 | pfleura2 | |
| 340 | 1 | pfleura2 | END SUBROUTINE Read_Geom |