From c791517e1d7a6fb8085528e956e2997a1ef0f6c9 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 5 Aug 2008 23:53:23 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2033 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- tools/restart2data.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/restart2data.cpp b/tools/restart2data.cpp index 8a42f78bfd..9770392673 100644 --- a/tools/restart2data.cpp +++ b/tools/restart2data.cpp @@ -2522,10 +2522,14 @@ void Data::write(FILE *fp, FILE *fp2) } } + // shape and dipole to data file + // convert shape from radius to diameter + if (shape) { fprintf(fp,"\nShapes\n\n"); for (int i = 1; i <= ntypes; i++) - fprintf(fp,"%d %g %g %g\n",i,shape[3*i+0],shape[3*i+1],shape[3*i+2]); + fprintf(fp,"%d %g %g %g\n",i, + 2.0*shape[3*i+0],2.0*shape[3*i+1],2.0*shape[3*i+2]); } if (dipole) {