integer nres,nres0,nsup,nstart_sup,nend_sup,nstart_seq,ishift_pdb, & lim_odl, lim_dih,link_start_homo,link_end_homo, & idihconstr_start_homo,idihconstr_end_homo double precision c,cref,dc,xloc,xrot,dc_norm,t,r,prod,rt real*8 odl(max_template,maxdim),sigma_odl(max_template,maxdim), & dih(max_template,maxres),sigma_dih(max_template,maxres) integer ires_homo(maxdim),jres_homo(maxdim) common /chain/ c(3,maxres2+2),dc(3,maxres2),xloc(3,maxres), & xrot(3,maxres),dc_norm(3,maxres2),nres,nres0 common /rotmat/ t(3,3,maxres),r(3,3,maxres),prod(3,3,maxres), & rt(3,3,maxres) common /refstruct/ cref(3,maxres2+2),nsup,nstart_sup,nend_sup, & nstart_seq,ishift_pdb common /homrestr/ odl,dih,sigma_dih,sigma_odl, & lim_odl,lim_dih,ires_homo,jres_homo,link_start_homo, & link_end_homo,idihconstr_start_homo,idihconstr_end_homo