← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4044: fixed bug in export.VTKExporter.exportInteractions (question #250922)

 

------------------------------------------------------------
revno: 4044
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Sun 2014-06-29 23:25:01 +0200
message:
  fixed bug in export.VTKExporter.exportInteractions (question #250922)
modified:
  py/export.py


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/export.py'
--- py/export.py	2014-06-06 13:40:28 +0000
+++ py/export.py	2014-06-29 21:25:01 +0000
@@ -572,6 +572,7 @@
 			elif isinstance(test,Vector3):
 				outFile.write("\nVECTORS %s double\n"%(name))
 				for ii,jj in intrs:
+					i = O.interactions[ii,jj]
 					v = eval(command)
 					outFile.write("%g %g %g\n"%(v[0],v[1],v[2]))
 			elif isinstance(test,(int,float)):