problem with non-unique temporary path during MPI-run with inline C eps-function

Bug #447309 reported by Emmanuel Lambert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-meep
Fix Released
Undecided
Unassigned

Bug Description

When using inline C function for the EPS, there can be a problem during MPI-runs (multiple cores) because the temporary path generated by SciPy is not 100% unique. See: http://projects.scipy.org/scipy/ticket/1016
A warkaorund for this bug in scipy-weave is to add the following code to python_meep.py :

import os, socket, tempfile, random
mypid=os.getpid()
myhostname = socket.gethostname()
myrandom = random.randint(0,128000)
tempfile.tempdir = tempfile.gettempdir()+'/%s-%s-%i' %(myhostname,mypid,myrandom)

Bugfix was implemented and tested locally and will be committed to Launchpad soon.

Revision history for this message
Emmanuel Lambert (emmanuel-lambert) wrote :

this bug was resolved in revision 18 of branch lp:~emmanuel-lambert/python-meep/intec

Changed in python-meep:
status: New → Fix Committed
Changed in python-meep:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.