Merge branch 'master' of mmka:unres into multichain
[unres.git] / source / unres / src_MD-M / sc_move.F
index 5287de8..274767b 100644 (file)
@@ -15,7 +15,9 @@ crc      implicit none
 c     Includes
       implicit real*8 (a-h,o-z)
       include 'DIMENSIONS'
+#ifdef MPI
       include 'mpif.h'
+#endif
       include 'COMMON.GEO'
       include 'COMMON.VAR'
       include 'COMMON.HEADER'
@@ -211,7 +213,7 @@ c     Define what is meant by "neighbouring side-chain"
 
 c     Don't do glycine or ends
       i=itype(res_pick)
-      if (i.eq.10 .or. i.eq.21) return
+      if (i.eq.10 .or. i.eq.ntyp1) return
 
 c     Freeze everything (later will relax only selected side-chains)
       mask_r=.true.