X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fwham%2Fsrc%2Fcxread.F;h=7c7ae50f1ea824c0b09dc47992c723f76740960f;hb=aa4540154949fdfc9ab63442eb6fea09d6c589ad;hp=0e6c52e7fa67c6b01454b5b0de9699f95bb3cc82;hpb=c2b5c2a1de9cca14f60446937085424047097953;p=unres.git diff --git a/source/wham/src/cxread.F b/source/wham/src/cxread.F index 0e6c52e..7c7ae50 100644 --- a/source/wham/src/cxread.F +++ b/source/wham/src/cxread.F @@ -5,6 +5,7 @@ include 'DIMENSIONS.FREE' integer MaxTraj parameter (MaxTraj=2050) + include 'COMMON.CONTROL' include 'COMMON.CHAIN' include 'COMMON.INTERACT' include 'COMMON.NAMES' @@ -71,15 +72,18 @@ c print *,"bumbum" #endif do j=1,nss if (dyn_ss) then - call xdrfint_(ixdrf, idssb(j)+nres, iret) - call xdrfint_(ixdrf, jdssb(j)+nres, iret) + call xdrfint_(ixdrf, idssb(j), iret) + call xdrfint_(ixdrf, jdssb(j), iret) + idssb(j)=idssb(j)-nres + jdssb(j)=jdssb(j)-nres else call xdrfint_(ixdrf, ihpb(j), iret) call xdrfint_(ixdrf, jhpb(j), iret) endif enddo call xdrfint_(ixdrf, nprop, iret) - if (umbrella(iparm) .or. read_iset(iparm) .or. hamil_rep) + if (umbrella(iparm) .or. homol_nset.gt.1 .or. read_iset(iparm) + & .or. hamil_rep) & call xdrfint(ixdrf, iset, iret) do i=1,nprop call xdrffloat_(ixdrf, rprop(i), iret) @@ -102,8 +106,11 @@ c print *,"bumbum" #endif do j=1,nss if (dyn_ss) then - call xdrfint(ixdrf, idssb(j)+nres, iret) - call xdrfint(ixdrf, jdssb(j)+nres, iret) + call xdrfint(ixdrf, idssb(j), iret) + call xdrfint(ixdrf, jdssb(j), iret) +cc idssb(j)=idssb(j)-nres +cc jdssb(j)=jdssb(j)-nres +cc write(iout,*) idssb(j),jdssb(j) else call xdrfint(ixdrf, ihpb(j), iret) call xdrfint(ixdrf, jhpb(j), iret) @@ -119,7 +126,8 @@ c write (iout,*) "nprop",nprop nprop_prev=nprop endif call flush(iout) - if (umbrella(iparm) .or. read_iset(iparm) .or. hamil_rep) + if (umbrella(iparm) .or. homol_nset.gt.1 .or. read_iset(iparm) + & .or. hamil_rep) & call xdrfint(ixdrf, iset, iret) do i=1,nprop call xdrffloat(ixdrf, rprop(i), iret) @@ -249,7 +257,7 @@ c write (iout,*) "Opening file ", c & bprotfile_temp(:ilen(bprotfile_temp)) islice1=islice endif - if (umbrella(iparm)) then + if (umbrella(iparm) .or. homol_nset.gt.1) then write(ientout,rec=ll(islice)) & ((xoord(l,k),l=1,3),k=1,nres), & ((xoord(l,k),l=1,3),k=nres+1,nres+nct-nnt+1), @@ -272,6 +280,8 @@ c & bprotfile_temp(:ilen(bprotfile_temp)) & iR,iib,iparm endif #ifdef DEBUG + write (iout,*) " constr_homology",constr_homology, + & " ll",ll(islice)," iset",iset call int_from_cart1(.false.) write (iout,*) "Writing conformation, record",ll(islice) write (iout,*) "Cartesian coordinates"