ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/utilities/dumpConverter
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/utilities/dumpConverter (file contents):
Revision 2967 by chrisfen, Thu Jul 27 21:02:54 2006 UTC vs.
Revision 2984 by gezelter, Wed Aug 30 21:04:04 2006 UTC

# Line 19 | Line 19 | __version__ = "$Revision: 1.3 $"
19   """
20  
21   __author__ = "Dan Gezelter (gezelter@nd.edu)"
22 < __version__ = "$Revision: 1.3 $"
23 < __date__ = "$Date: 2006-07-27 21:02:54 $"
22 > __version__ = "$Revision: 1.4 $"
23 > __date__ = "$Date: 2006-08-30 21:04:04 $"
24   __copyright__ = "Copyright (c) 2006 by the University of Notre Dame"
25   __license__ = "OOPSE"
26  
# Line 133 | Line 133 | def convertFiles(mdFileName, configFileName, outputFil
133                  else:
134                      sdFormat = 'pvqjft'
135              if (sdFormat == 'pv'):
136 <                outputFile.write("%d\t%s\t%18.10g\t%18.10g\t%18.10g\t%14.10g\t%14.10g\t%14.10g\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz))
136 >                outputFile.write("%10d %7s %18.10g %18.10g %18.10g %14e %13e %13e\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz))
137              elif (sdFormat == 'pvf'):
138 <                outputFile.write("%d\t%s\t%18.10g\t%18.10g\t%18.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, fx, fy, fz))
138 >                outputFile.write("%10d %7s %18.10g %18.10g %18.10g %13e %13e %13e %13e %13e %13e\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, fx, fy, fz))
139              elif (sdFormat == 'pvqj'):
140 <                outputFile.write("%d\t%s\t%18.10g\t%18.10g\t%18.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, qw, qx, qy, qz, jx, jy, jz))
140 >                outputFile.write("%10d %7s %18.10g %18.10g %18.10g %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, qw, qx, qy, qz, jx, jy, jz))
141              elif (sdFormat == 'pvqjft'):
142 <                outputFile.write("%d\t%s\t%18.10g\t%18.10g\t%18.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\t%14.10g\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, qw, qx, qy, qz, jx, jy, jz, fx, fy, fz, tx, ty, tz))
142 >                outputFile.write("%d %s %18.10g %18.10g %18.10g %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e %13e\n" % (whichSD-1, sdFormat, x, y, z, vx, vy, vz, qw, qx, qy, qz, jx, jy, jz, fx, fy, fz, tx, ty, tz))
143          if (whichSD == nStuntDoubles):
144              outputFile.write("    </StuntDoubles>\n")
145              outputFile.write("  </Snapshot>\n")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines