Merge branch 'release-4-5-patches'
[alexxy/gromacs.git] / src / gromacs / gmxlib / pdbio.c
index 33342dd1b5c1328dce2a30b56714d45b5f4f2777..e82cb5bfe67f47cbc4f384e690b71498048fd80e 100644 (file)
@@ -260,7 +260,7 @@ void write_pdbfile_indexed(FILE *out,const char *title,
   else
     bOccup = FALSE;
 
-  fprintf(out,"MODEL %8d\n",model_nr>=0 ? model_nr : 1);
+  fprintf(out,"MODEL %8d\n",model_nr>0 ? model_nr : 1);
 
   lastchainresind   = -1;
   lastchainnum      = -1;