root / src / Extrapol_baker.f90 @ 2
Historique | Voir | Annoter | Télécharger (10,59 ko)
| 1 | 1 | pfleura2 | SUBROUTINE Extrapol_baker(s,dist,x0,y0,z0,xgeom,Coef,XgeomF) |
|---|---|---|---|
| 2 | 1 | pfleura2 | |
| 3 | 1 | pfleura2 | ! This subroutine constructs the path, andabscissa if dist<>Infinity, it samples |
| 4 | 1 | pfleura2 | ! the path to obtain geometries. |
| 5 | 1 | pfleura2 | ! Basically, you call it twice: i) dist=infinity, it will calculate the length of the path |
| 6 | 1 | pfleura2 | ! ii) dist finite, it will give you the images you want along the path. |
| 7 | 1 | pfleura2 | ! |
| 8 | 1 | pfleura2 | ! For now, it gives equidistant geometries. |
| 9 | 1 | pfleura2 | ! |
| 10 | 1 | pfleura2 | ! A reference geometry for the alignment: X0(Nat),Y0(Nat),Z0(Nat) |
| 11 | 1 | pfleura2 | |
| 12 | 1 | pfleura2 | use Path_module, only : IntCoordI, NMaxPtPath, XyzGeomF, IntCoordF, & |
| 13 | 1 | pfleura2 | IntTangent, Renum, Nom, Order, MassAt, SGeom, Nat, NGeomI, & |
| 14 | 1 | pfleura2 | NGeomF, Atome, NCoord, OrderInv, XyzGeomI,BTransInvF, & |
| 15 | 1 | pfleura2 | XPrimitive,XPrimitiveF, NPrim, & |
| 16 | 1 | pfleura2 | BTransInv_local,UMatF,UMat_local,FirstTimePathCreate,Pi |
| 17 | 1 | pfleura2 | ! IntCoordI(NGeomI,3*Nat-6), Coef(NGeomI,NCoord), NMaxPtPath=1000 (default value) |
| 18 | 1 | pfleura2 | ! More appropriate: IntCoordI(NGeomI,NCoord) |
| 19 | 1 | pfleura2 | use Io_module |
| 20 | 1 | pfleura2 | IMPLICIT NONE |
| 21 | 1 | pfleura2 | |
| 22 | 1 | pfleura2 | REAL(KREAL), INTENT(OUT) :: s |
| 23 | 1 | pfleura2 | ! A reference geometry for the alignment: |
| 24 | 1 | pfleura2 | REAL(KREAL), INTENT(IN) :: dist,X0(Nat),Y0(Nat),Z0(Nat) |
| 25 | 1 | pfleura2 | ! Xgeom(NGeomI): abscissa of all initial geometries. |
| 26 | 1 | pfleura2 | ! Coef(NGeomI,NCoord): spline coefficients. |
| 27 | 1 | pfleura2 | REAL(KREAL), INTENT(IN) :: Xgeom(NGeomI),Coef(NGeomI,NCoord) |
| 28 | 1 | pfleura2 | ! Number of the cycles for the optimization: |
| 29 | 1 | pfleura2 | ! XGeomF(NGeomF): Final geometries. |
| 30 | 1 | pfleura2 | REAL(KREAL), INTENT(OUT) :: XGeomF(NGeomF) |
| 31 | 1 | pfleura2 | |
| 32 | 2 | pfleura2 | INTEGER(KINT) :: IdxGeom, I, J, K |
| 33 | 1 | pfleura2 | REAL(KREAL) :: Rmsd,MRot(3,3), ds, u, v |
| 34 | 1 | pfleura2 | |
| 35 | 1 | pfleura2 | REAL(KREAL), ALLOCATABLE :: XyzTmp(:,:), XyzTmp2(:,:), DerInt(:) ! (Nat,3) |
| 36 | 1 | pfleura2 | REAL(KREAL), ALLOCATABLE :: Xyz_k(:,:) ! (Nat,3) |
| 37 | 1 | pfleura2 | REAL(KREAL), ALLOCATABLE :: IntCoord_interpol(:) ! (3*Nat-6) |
| 38 | 1 | pfleura2 | REAL(KREAL), ALLOCATABLE :: IntCoord_k(:) ! (3*Nat-6) |
| 39 | 1 | pfleura2 | REAL(KREAL), ALLOCATABLE :: XPrimRef(:),XPrim(:) ! NPrim |
| 40 | 1 | pfleura2 | |
| 41 | 1 | pfleura2 | LOGICAL :: debug, print,printspline |
| 42 | 1 | pfleura2 | LOGICAL, EXTERNAL :: valid |
| 43 | 1 | pfleura2 | |
| 44 | 1 | pfleura2 | INTEGER(KINT) :: NSpline |
| 45 | 1 | pfleura2 | |
| 46 | 1 | pfleura2 | |
| 47 | 1 | pfleura2 | ! We will calculate the length of the path, in MW coordinates... |
| 48 | 1 | pfleura2 | ! this is done in a stupid way: we interpolate the Baker coordinates values, |
| 49 | 1 | pfleura2 | ! convert them into cartesian, weight the cartesian |
| 50 | 1 | pfleura2 | ! and calculate the evolution of the distance ! |
| 51 | 1 | pfleura2 | ! We have to follow the same procedure for every geometry, |
| 52 | 1 | pfleura2 | ! so even for the first one, we have to convert it from internal Baker |
| 53 | 1 | pfleura2 | ! coordinates to cartesian ! |
| 54 | 1 | pfleura2 | |
| 55 | 1 | pfleura2 | debug=valid("Extrapol_baker")
|
| 56 | 1 | pfleura2 | print=valid("printgeom")
|
| 57 | 1 | pfleura2 | printspline=(valid("printspline").AND.(dist<=1e30))
|
| 58 | 1 | pfleura2 | |
| 59 | 1 | pfleura2 | if (debug) WRITE(*,*) "================= Entering Extrapol_baker ====================" |
| 60 | 1 | pfleura2 | if (debug) WRITE(*,*) "DBG Extrapol_baker dist=",Dist |
| 61 | 1 | pfleura2 | NSpline=int(NMaxPtPath/100) |
| 62 | 1 | pfleura2 | !IF (printspline) THEN |
| 63 | 1 | pfleura2 | ! WRITE(TmpChar,'(I5)') Iopt |
| 64 | 1 | pfleura2 | ! FileSpline=Trim(adjustL(PathName)) // '_spline.' // AdjustL(TRIM(TmpChar)) |
| 65 | 1 | pfleura2 | !OPEN(IOTMP,FILE=FileSpline) |
| 66 | 1 | pfleura2 | ! END IF |
| 67 | 1 | pfleura2 | |
| 68 | 1 | pfleura2 | ALLOCATE(XyzTmp(Nat,3),XyzTmp2(Nat,3),IntCoord_interpol(NCoord),DerInt(NCoord)) |
| 69 | 1 | pfleura2 | ALLOCATE(IntCoord_k(NCoord),Xyz_k(Nat,3)) |
| 70 | 1 | pfleura2 | ALLOCATE(XPrimRef(NPrim),XPrim(NPrim)) |
| 71 | 1 | pfleura2 | |
| 72 | 1 | pfleura2 | ! XyzGeomI(:,:,:) ! (NGeomI,3,Nat) |
| 73 | 1 | pfleura2 | ! IntCoordI(:,:) ! (NGeomI,3*Nat-6) |
| 74 | 1 | pfleura2 | |
| 75 | 1 | pfleura2 | !XyzGeomF(1,:,:)=Reshape(XyzTmp2(:,:),(/3,Nat/),ORDER=(/2,1/)) |
| 76 | 1 | pfleura2 | XyzGeomF(1,:,:)=XyzGeomI(1,:,:) ! 1st index is geometry-index. |
| 77 | 1 | pfleura2 | IntCoordF(1,:)=IntCoordI(1,:) |
| 78 | 1 | pfleura2 | |
| 79 | 1 | pfleura2 | ! We calculate the first derivatives |
| 80 | 1 | pfleura2 | u=0.d0 |
| 81 | 1 | pfleura2 | DO I=1,NCoord |
| 82 | 1 | pfleura2 | ! Given the arrays xgeom(1:NGeomI) and IntCoordI(1:NGeomI,Idx) of length |
| 83 | 1 | pfleura2 | ! NGeomI, which tabulate a function |
| 84 | 1 | pfleura2 | ! (with the xgeom's in order), and given the array Coef(1:NGeomI,Idx), |
| 85 | 1 | pfleura2 | ! which is the output from spline, and given a value of u, |
| 86 | 1 | pfleura2 | ! this routine returns a cubic-spline interpolated value v. |
| 87 | 1 | pfleura2 | ! and the derivative DerInt(Idx). |
| 88 | 1 | pfleura2 | call splintder(u,v,DerInt(I),NGeomI,xgeom(1),IntCoordI(1,I),Coef(1,I)) |
| 89 | 1 | pfleura2 | END DO |
| 90 | 1 | pfleura2 | IntTangent(1,:)=DerInt |
| 91 | 1 | pfleura2 | |
| 92 | 1 | pfleura2 | IF (print.AND.(Dist.LE.1e20)) THEN |
| 93 | 1 | pfleura2 | WRITE(IOOUT,'(1X,I5)') Nat |
| 94 | 1 | pfleura2 | WRITE(IOOUT,*) "# Cartesian Coordinates for geom",1 |
| 95 | 1 | pfleura2 | DO I=1,Nat |
| 96 | 1 | pfleura2 | If (Renum) THEN |
| 97 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(I)), & |
| 98 | 1 | pfleura2 | (XyzTmp2(Order(I),J),J=1,3) |
| 99 | 1 | pfleura2 | ELSE |
| 100 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(OrderInv(I))), & |
| 101 | 1 | pfleura2 | (XyzTmp2(I,J),J=1,3) |
| 102 | 1 | pfleura2 | END IF |
| 103 | 1 | pfleura2 | END DO |
| 104 | 1 | pfleura2 | END IF ! matches IF (print.AND.(Dist.LE.1e20)) THEN |
| 105 | 1 | pfleura2 | |
| 106 | 1 | pfleura2 | XyzTmp(:,1) = XyzGeomI(1,1,:) ! 1st index is geometry-index. |
| 107 | 1 | pfleura2 | XyzTmp(:,2) = XyzGeomI(1,2,:) |
| 108 | 1 | pfleura2 | XyzTmp(:,3) = XyzGeomI(1,3,:) |
| 109 | 1 | pfleura2 | |
| 110 | 1 | pfleura2 | s=0.d0 |
| 111 | 1 | pfleura2 | IntCoord_k=IntCoordF(1,:) |
| 112 | 1 | pfleura2 | Xyz_k(:,1) = XyzGeomI(1,1,:) ! 1st index is geometry-index. |
| 113 | 1 | pfleura2 | Xyz_k(:,2) = XyzGeomI(1,2,:) |
| 114 | 1 | pfleura2 | Xyz_k(:,3) = XyzGeomI(1,3,:) |
| 115 | 1 | pfleura2 | IdxGeom=1 |
| 116 | 1 | pfleura2 | XPrimRef=XPrimitive(1,:) |
| 117 | 1 | pfleura2 | XPrimitiveF(1,:)=XPrimitive(1,:) |
| 118 | 1 | pfleura2 | DO K=1,NMaxPtPath |
| 119 | 1 | pfleura2 | u=real(K)/NMaxPtPath*(NGeomI-1.) |
| 120 | 1 | pfleura2 | |
| 121 | 1 | pfleura2 | ! We generate the interpolated internal coordinates in v. |
| 122 | 1 | pfleura2 | ! Given the arrays Xgeom(1:NGeomI) (Xgeom(NGeomI): abscissa of all initial geometries) |
| 123 | 1 | pfleura2 | ! and IntCoordI(1:NGeomI,I) of length NGeomI, which tabulate a function (with the |
| 124 | 1 | pfleura2 | ! Xgeom's in order), and given the array Coef(1:NGeomI,Idx), which is the output from |
| 125 | 1 | pfleura2 | ! spline, and given a value of u, this routine returns a cubic-spline interpolated |
| 126 | 1 | pfleura2 | ! value v and the derivative DerInt(I). |
| 127 | 1 | pfleura2 | |
| 128 | 1 | pfleura2 | ! this loop is to be confirmed: |
| 129 | 1 | pfleura2 | ! IntCoordI(NGeomI,3*Nat-6) |
| 130 | 1 | pfleura2 | DO I=1,NCoord |
| 131 | 1 | pfleura2 | call splintder(u,v,DerInt(I),NGeomI,Xgeom(1),IntCoordI(1,I),Coef(1,I)) |
| 132 | 1 | pfleura2 | IntCoord_interpol(I)=v |
| 133 | 1 | pfleura2 | END DO |
| 134 | 1 | pfleura2 | IF(.NOT.FirstTimePathCreate) Then |
| 135 | 1 | pfleura2 | WRITE(*,*) "DBG Extrapol_baker Umat_local=UMatF" |
| 136 | 1 | pfleura2 | DO I=1,NCoord ! these variables are used in ConvertBakerInternal_cart() |
| 137 | 1 | pfleura2 | BTransInv_local(I,:) = BTransInvF(IdxGeom,I,:) |
| 138 | 1 | pfleura2 | UMat_local(:,I) = UMatF(IdxGeom,:,I) |
| 139 | 1 | pfleura2 | END DO |
| 140 | 1 | pfleura2 | END IF |
| 141 | 1 | pfleura2 | ! We convert it into Cartesian coordinates: |
| 142 | 1 | pfleura2 | if (debug) WRITE(*,*) "DBG Extrapol_baker, call ConvertBakerInt_car for k=",k |
| 143 | 1 | pfleura2 | Call ConvertBakerInternal_cart(IntCoord_k,IntCoord_interpol,Xyz_k(1,1), & |
| 144 | 1 | pfleura2 | Xyz_k(1,2),Xyz_k(1,3),XyzTMP2(1,1),XyzTMP2(1,2),XyzTMP2(1,3),XPrim,XPrimRef) |
| 145 | 1 | pfleura2 | XPrimRef=Xprim |
| 146 | 1 | pfleura2 | IF(.NOT.FirstTimePathCreate) Then |
| 147 | 1 | pfleura2 | DO I=1,NCoord ! these variables are used in ConvertBakerInternal_cart() |
| 148 | 1 | pfleura2 | BTransInvF(IdxGeom,I,:) = BTransInv_local(I,:) |
| 149 | 1 | pfleura2 | END DO |
| 150 | 1 | pfleura2 | END IF |
| 151 | 1 | pfleura2 | |
| 152 | 1 | pfleura2 | if (debug) THEN |
| 153 | 1 | pfleura2 | WRITE(*,*) "DBG Extrapol_baker, XyzTmp2 before RMSD" |
| 154 | 1 | pfleura2 | DO I=1,Nat |
| 155 | 1 | pfleura2 | IF (Renum) THEN |
| 156 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(I)), & |
| 157 | 1 | pfleura2 | (XyzTmp2(Order(I),J),J=1,3) |
| 158 | 1 | pfleura2 | ELSE |
| 159 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(OrderInv(I))), & |
| 160 | 1 | pfleura2 | (XyzTmp2(I,J),J=1,3) |
| 161 | 1 | pfleura2 | END IF |
| 162 | 1 | pfleura2 | END DO |
| 163 | 1 | pfleura2 | END IF |
| 164 | 1 | pfleura2 | |
| 165 | 1 | pfleura2 | |
| 166 | 1 | pfleura2 | call CalcRmsd(Nat,XyzTmp(1:Nat,1),XyzTmp(1:Nat,2),XyzTmp(1:Nat,3), & |
| 167 | 1 | pfleura2 | XyzTmp2(1:Nat,1),XyzTmp2(1:Nat,2),XyzTmp2(1:Nat,3), & |
| 168 | 1 | pfleura2 | MRot,rmsd,.TRUE.,.TRUE.) |
| 169 | 1 | pfleura2 | |
| 170 | 1 | pfleura2 | |
| 171 | 1 | pfleura2 | if (debug) THEN |
| 172 | 1 | pfleura2 | WRITE(*,*) "DBG Extrapol_baker, XyzTmp2 after RMSD" |
| 173 | 1 | pfleura2 | DO I=1,Nat |
| 174 | 1 | pfleura2 | IF (Renum) THEN |
| 175 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(I)), & |
| 176 | 1 | pfleura2 | (XyzTmp2(Order(I),J),J=1,3) |
| 177 | 1 | pfleura2 | ELSE |
| 178 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(OrderInv(I))), & |
| 179 | 1 | pfleura2 | (XyzTmp2(I,J),J=1,3) |
| 180 | 1 | pfleura2 | END IF |
| 181 | 1 | pfleura2 | END DO |
| 182 | 1 | pfleura2 | END IF |
| 183 | 1 | pfleura2 | |
| 184 | 1 | pfleura2 | |
| 185 | 1 | pfleura2 | IntCoord_k=IntCoord_interpol |
| 186 | 1 | pfleura2 | Xyz_k(:,1)=XyzTMP2(:,1) |
| 187 | 1 | pfleura2 | Xyz_k(:,2)=XyzTMP2(:,2) |
| 188 | 1 | pfleura2 | Xyz_k(:,3)=XyzTMP2(:,3) |
| 189 | 1 | pfleura2 | |
| 190 | 1 | pfleura2 | ds=0. |
| 191 | 1 | pfleura2 | DO I=1,Nat |
| 192 | 1 | pfleura2 | DO J=1,3 |
| 193 | 1 | pfleura2 | ds=ds+MassAt(I)*(XYZTMp2(I,J)-XYZTmp(I,J))**2 |
| 194 | 1 | pfleura2 | XYZTmp(I,J)=XyzTMP2(I,J) |
| 195 | 1 | pfleura2 | END DO |
| 196 | 1 | pfleura2 | END DO |
| 197 | 1 | pfleura2 | |
| 198 | 1 | pfleura2 | s=s+sqrt(ds) |
| 199 | 1 | pfleura2 | |
| 200 | 1 | pfleura2 | IF (s>=dist) THEN |
| 201 | 1 | pfleura2 | if (debug) THEN |
| 202 | 1 | pfleura2 | WRITE(*,*) "DBG Extrapol_baker s,IdxGeom,dist",s,IdxGeom,dist |
| 203 | 1 | pfleura2 | WRITE(*,'(50(1X,F12.8))') IntCoord_interpol |
| 204 | 1 | pfleura2 | WRITE(*,*) "DBG Extrapol_baker Angles in deg ?" |
| 205 | 1 | pfleura2 | WRITE(*,'(50(1X,F12.8))') IntCoord_interpol*180./pi |
| 206 | 1 | pfleura2 | END IF |
| 207 | 1 | pfleura2 | s=s-dist |
| 208 | 1 | pfleura2 | IdxGeom=IdxGeom+1 |
| 209 | 1 | pfleura2 | XprimitiveF(IdxGeom,:)=Xprim(:) |
| 210 | 1 | pfleura2 | UMatF(IdxGeom,:,:)=UMat_local(:,:) |
| 211 | 1 | pfleura2 | SGeom(IdxGeom)=s+IdxGeom*dist !SGeom(NGeomF) |
| 212 | 1 | pfleura2 | XgeomF(IdxGeom)=u |
| 213 | 1 | pfleura2 | XyzGeomF(IdxGeom,:,:)=Reshape(XyzTmp2(:,:),(/3,Nat/),ORDER=(/2,1/)) |
| 214 | 1 | pfleura2 | |
| 215 | 1 | pfleura2 | ! IntCoordF(NGeomF,NCoord): Final Internal coordinates for number of final |
| 216 | 1 | pfleura2 | ! geometries. NCoord is the number of coordinates (NCoord) of each geometry. |
| 217 | 1 | pfleura2 | IntCoordF(IdxGeom,:)=IntCoord_interpol(:) |
| 218 | 1 | pfleura2 | IntTangent(IdxGeom,:)=DerInt |
| 219 | 1 | pfleura2 | |
| 220 | 1 | pfleura2 | IF (print) THEN |
| 221 | 1 | pfleura2 | WRITE(IOOUT,'(1X,I5)') Nat |
| 222 | 1 | pfleura2 | WRITE(IOOUT,*) "# Cartesian coord for Geometry ",IdxGeom,K |
| 223 | 1 | pfleura2 | ! PFL 17/July/2006: only if we have more than 4 atoms. |
| 224 | 1 | pfleura2 | IF (Nat.GE.4) THEN |
| 225 | 1 | pfleura2 | Call CalcRmsd(Nat,x0,y0,z0, & |
| 226 | 1 | pfleura2 | xyzTmp2(1,1),xyzTmp2(1,2),xyzTMP2(1,3), & |
| 227 | 1 | pfleura2 | MRot,rmsd,.TRUE.,.TRUE.) |
| 228 | 1 | pfleura2 | END IF |
| 229 | 1 | pfleura2 | |
| 230 | 1 | pfleura2 | DO I=1,Nat |
| 231 | 1 | pfleura2 | IF (Renum) THEN |
| 232 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(I)), & |
| 233 | 1 | pfleura2 | (XyzTmp2(Order(I),J),J=1,3) |
| 234 | 1 | pfleura2 | ELSE |
| 235 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(OrderInv(I))), & |
| 236 | 1 | pfleura2 | (XyzTmp2(I,J),J=1,3) |
| 237 | 1 | pfleura2 | END IF |
| 238 | 1 | pfleura2 | END DO |
| 239 | 1 | pfleura2 | END IF !matches IF (print) THEN |
| 240 | 1 | pfleura2 | END IF ! matches IF (s>=dist) THEN |
| 241 | 1 | pfleura2 | END DO ! matches DO K=1,NMaxPtPath |
| 242 | 1 | pfleura2 | |
| 243 | 1 | pfleura2 | |
| 244 | 1 | pfleura2 | if (s>=0.9*dist) THEN |
| 245 | 1 | pfleura2 | s=s-dist |
| 246 | 1 | pfleura2 | IdxGeom=IdxGeom+1 |
| 247 | 1 | pfleura2 | SGeom(IdxGeom)=s+IdxGeom*dist |
| 248 | 1 | pfleura2 | XgeomF(IdxGeom)=min(u,NGeomI-1.d0) |
| 249 | 1 | pfleura2 | XyzGeomF(IdxGeom,:,:)=Reshape(XyzTmp2(:,:),(/3,Nat/),ORDER=(/2,1/)) |
| 250 | 1 | pfleura2 | ! XyzGeomF(IdxGeom,:,:)=XyzTmp2(:,:) |
| 251 | 1 | pfleura2 | |
| 252 | 1 | pfleura2 | IntCoordF(IdxGeom,:)=IntCoord_interpol(:) |
| 253 | 1 | pfleura2 | XprimitiveF(IdxGeom,:)=Xprim(:) |
| 254 | 1 | pfleura2 | UMatF(IdxGeom,:,:)=UMat_local(:,:) |
| 255 | 1 | pfleura2 | IntTangent(IdxGeom,:)=DerInt |
| 256 | 1 | pfleura2 | |
| 257 | 1 | pfleura2 | if (print) THEN |
| 258 | 1 | pfleura2 | WRITE(IOOUT,'(1X,I5)') Nat |
| 259 | 1 | pfleura2 | WRITE(IOOUT,*) "# Cartesian coord for Geometry ",IdxGeom,K |
| 260 | 1 | pfleura2 | ! PFL 17/July/2006: only if we have more than 4 atoms. |
| 261 | 1 | pfleura2 | IF (Nat.GE.4) THEN |
| 262 | 1 | pfleura2 | Call CalcRmsd(Nat,x0,y0,z0, & |
| 263 | 1 | pfleura2 | xyzTmp2(1,1),xyzTmp2(1,2),xyzTMP2(1,3), & |
| 264 | 1 | pfleura2 | MRot,rmsd,.TRUE.,.TRUE.) |
| 265 | 1 | pfleura2 | END IF |
| 266 | 1 | pfleura2 | |
| 267 | 1 | pfleura2 | DO I=1,Nat |
| 268 | 1 | pfleura2 | IF (Renum) THEN |
| 269 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(I)), & |
| 270 | 1 | pfleura2 | (XyzTmp2(Order(I),J),J=1,3) |
| 271 | 1 | pfleura2 | ELSE |
| 272 | 1 | pfleura2 | WRITE(IOOUT,'(1X,A2,3(1X,F15.6))') Nom(Atome(OrderInv(I))), & |
| 273 | 1 | pfleura2 | (XyzTmp2(I,J),J=1,3) |
| 274 | 1 | pfleura2 | END IF |
| 275 | 1 | pfleura2 | END DO |
| 276 | 1 | pfleura2 | END IF ! matches if (print) THEN |
| 277 | 1 | pfleura2 | END IF ! matches if (s>=0.9*dist) THEN |
| 278 | 1 | pfleura2 | |
| 279 | 1 | pfleura2 | if (debug) WRITE(*,*) 's final =',s |
| 280 | 1 | pfleura2 | if (debug) THEN |
| 281 | 1 | pfleura2 | WRITE(*,*) "XPrimitiveF" |
| 282 | 1 | pfleura2 | DO I=1,NGeomF |
| 283 | 1 | pfleura2 | WRITE(*,'(1X,I5," : ",50(1X,F10.6))') I,XPrimitiveF(I,:) |
| 284 | 1 | pfleura2 | END DO |
| 285 | 1 | pfleura2 | END IF |
| 286 | 1 | pfleura2 | |
| 287 | 1 | pfleura2 | DEALLOCATE(XyzTmp,XyzTmp2,IntCoord_interpol,IntCoord_k,Xyz_k) |
| 288 | 1 | pfleura2 | |
| 289 | 1 | pfleura2 | if (printspline) CLOSE(IOTMP) |
| 290 | 1 | pfleura2 | if (debug) WRITE(*,*) "================= Extrapol_baker Over =====================" |
| 291 | 1 | pfleura2 | |
| 292 | 1 | pfleura2 | END SUBROUTINE EXTRAPOL_BAKER |