Merge release-4-5-patches into release-4-6
[alexxy/gromacs.git] / src / gmxlib / tpxio.c
index 8d7d3f953da1e822dd2b4be9111681ed606c92f8..c640bb5dac989eefa2a9ec9c00a2396ce6aaae40 100644 (file)
@@ -2538,7 +2538,7 @@ gmx_bool read_tps_conf(const char *infile,char *title,t_topology *top,int *ePBC,
   }
   else {
     get_stx_coordnum(infile,&natoms);
-    init_t_atoms(&top->atoms,natoms,FALSE);
+    init_t_atoms(&top->atoms,natoms,(fn2ftp(infile) == efPDB));
     if (x == NULL)
     {
         snew(x,1);