fixed a bug when fitting, the (in most cases) unitialized trajectory box was used...
authorhess <hess>
Wed, 23 Jan 2002 13:24:11 +0000 (13:24 +0000)
committerhess <hess>
Wed, 23 Jan 2002 13:24:11 +0000 (13:24 +0000)
src/tools/trjconv.c

index 3041ec94b51d5e98d0f75b50b48cd6f5776a0e82..32d5a7f2ac21941f65a1a5d5b3a9ee3b12338c70 100644 (file)
@@ -471,7 +471,7 @@ int main(int argc,char *argv[])
       
       /* Restore reference structure and set to origin, 
          store original location (to put structure back) */
-      rm_pbc(&(top.idef),atoms->nr,fr.box,xp,xp);
+      rm_pbc(&(top.idef),atoms->nr,top_box,xp,xp);
       copy_rvec(xp[index[0]],x_shift);
       reset_x(ifit,ind_fit,atoms->nr,NULL,xp,w_rls);
       rvec_dec(x_shift,xp[index[0]]);