X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc-HCD-5D%2Flagrangian_lesyng.F;h=f57a432b4b4cb59ed4b8a5fe01c34346675d5f15;hb=5836ecdab5a8b95f079bbf6e07374dee3fce8a26;hp=6a6967ae175a017258aee1c6972417d6a9500173;hpb=a05e8996b6fb955dc21aef7a85db21ee73d0a9d3;p=unres.git diff --git a/source/unres/src-HCD-5D/lagrangian_lesyng.F b/source/unres/src-HCD-5D/lagrangian_lesyng.F index 6a6967a..f57a432 100644 --- a/source/unres/src-HCD-5D/lagrangian_lesyng.F +++ b/source/unres/src-HCD-5D/lagrangian_lesyng.F @@ -38,7 +38,7 @@ c------------------------------------------------------------------------- integer i,j,ind double precision zapas(MAXRES6),muca_factor - logical lprn /.true./ + logical lprn /.false./ integer itime common /cipiszcze/ itime #ifdef FIVEDIAG @@ -58,7 +58,7 @@ c------------------------------------------------------------------------- d_a=0.0d0 if (lprn) then write (iout,*) "Potential forces backbone" - do i=nnt,nct + do i=1,nres write (iout,'(i5,3e15.5,5x,3e15.5)')i,(-gcart(j,i),j=1,3) enddo write (iout,*) "Potential forces sidechain" @@ -161,6 +161,8 @@ c write (iout,*) "Shifting accelerations" d_a(:,0)=d_a(:,1) d_a(:,1)=0.0d0 endif +#define CHUJ +#ifdef CHUJ do ichain=2,nchain c write (iout,*) "ichain",chain_border1(1,ichain)-1, c & chain_border1(1,ichain) @@ -175,6 +177,7 @@ c & chain_border(2,ichain-1) & d_a(:,chain_border1(1,ichain)-1)+d_a(:,chain_border(2,ichain-1)) d_a(:,chain_border(2,ichain-1))=0.0d0 enddo +#endif #else inct_prev=0 do j=1,3 @@ -187,20 +190,6 @@ c & chain_border(2,ichain-1) d_a(j,inct_prev)=d_a(j,innt)-aaux(j) enddo inct_prev=inct+1 -#ifdef DEBUG - do i=innt,inct - if (itype(i).eq.10 .or. itype(i).eq.ntyp1) then - do j=1,3 - d_a(j,i)=d_a(j,i+1)-d_a(j,i) - enddo - else - do j=1,3 - d_a(j,i+nres)=d_a(j,i+nres)-d_a(j,i) - d_a(j,i)=d_a(j,i+1)-d_a(j,i) - enddo - end if - enddo -#else do i=innt,inct if (itype(i).ne.10) then do j=1,3 @@ -216,17 +205,16 @@ c & chain_border(2,ichain-1) d_a(j,i)=d_a(j,i+1)-d_a(j,i) enddo enddo -#endif enddo #endif if (lprn) then write(iout,*) 'acceleration 3D FIVEDIAG in dC and dX' - do i=0,nct-1 + do i=0,nres write (iout,'(i3,3f10.5,3x,3f10.5)') i,(d_a(j,i),j=1,3) enddo do i=nnt,nct write (iout,'(i3,3f10.5,3x,3f10.5)') - & i+nres,(d_a(j,i+nres),j=1,3) + & i,(d_a(j,i+nres),j=1,3) enddo endif #else