Commit cecc3353 by Francois Gygi

Initialize x_name, y_name, z_name with a blank to cover the case where a

force is zero during the whole run.


git-svn-id: http://qboxcode.org/svn/qb/trunk@1851 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 188daecd
...@@ -60,6 +60,9 @@ class QboxOutputHandler(xml.sax.handler.ContentHandler): ...@@ -60,6 +60,9 @@ class QboxOutputHandler(xml.sax.handler.ContentHandler):
fxmax = 0.0 fxmax = 0.0
fymax = 0.0 fymax = 0.0
fzmax = 0.0 fzmax = 0.0
x_name = ' '
y_name = ' '
z_name = ' '
for i in range(len(self.f)): for i in range(len(self.f)):
fx = self.f[i][0] fx = self.f[i][0]
if ( fx*fx > fxmax*fxmax ): if ( fx*fx > fxmax*fxmax ):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment