Merge branch 'UCGM' of mmka.chem.univ.gda.pl:unres4 into UCGM
[unres4.git] / source / wham / conform_compar.F90
index 1720af2..cffdb48 100644 (file)
@@ -25,7 +25,7 @@
 !-----------------------------------------------------------------------------
 ! conf_compar.F
 !-----------------------------------------------------------------------------
-      subroutine conf_compar(jcon,lprn,print_class)
+      subroutine conf_compar(jcon)
 !      implicit real*8 (a-h,o-z)
       use energy_data, only:icont,ncont,nnt,nct,maxcont!,&
 !                      nsccont_frag_ref,isccont_frag_ref
                  nc_match,ncon_match,iclass_rms,ishifft_rms,ishiff,ishif
       integer :: k,kk,iclass_con,iscor,ik,ishifft_con,idig,iex,im
 !      print *,"Enter conf_compar",jcon
-      call angnorm12(rmsang)
+       lprn=.false.
+       print_class=.false.
+        write (iout,*) "before anything"
+        call flush(iout)
+
+!      call angnorm12(rmsang)
 ! Level 1: check secondary and supersecondary structure
-      call elecont(lprn,ncont,icont,nnt,nct)
+!      call elecont(lprn,ncont,icont,nnt,nct)
       if (lprn) then
         write (iout,*) "elecont finished"
         call flush(iout)
           it1=itype(i1,1)
           it2=itype(i2,1)
           if (mnum.eq.0) mnum=1
+          if ((it1.eq.0).or.(it2.eq.0)) then 
+          it1=1
+          it2=1
+          endif
           print *,"CONTACT",i1,i2,mnum,it1,it2
           write (iout,'(i3,2x,a,i4,2x,a,i4,5f8.3,3f10.5)') &
            i,restyp(it1,mnum),i1,restyp(it2,mnum),i2,cscore(i),&
         ymedi=yi+0.5*dyi
         zmedi=zi+0.5*dzi
         do 4 j=i+2,ien-1
-          ind=ind+1
+!          ind=ind+1
           iteli=itel(i)
           itelj=itel(j)
           if (j.eq.i+2 .and. itelj.eq.2) iteli=2