[cig-commits] r5352 - in cs/pythia/trunk: . mpi
leif at geodynamics.org
leif at geodynamics.org
Mon Nov 27 16:18:29 PST 2006
Author: leif
Date: 2006-11-27 16:18:29 -0800 (Mon, 27 Nov 2006)
New Revision: 5352
Modified:
cs/pythia/trunk/mpi/Launcher.py
cs/pythia/trunk/setup.cfg
Log:
Pythia v0.8.1.0b6: Fix for "string index out of range" with MPICH2's
mpiexec. Class Launcher was appending an empty argument (the "extra"
property). The original CACR code called system(); at some point I
changed it to spawnvp(), and this introduced the bug. (Arguably,
'mpiexec' should handle this more gracefully.)
Modified: cs/pythia/trunk/mpi/Launcher.py
===================================================================
--- cs/pythia/trunk/mpi/Launcher.py 2006-11-27 23:09:42 UTC (rev 5351)
+++ cs/pythia/trunk/mpi/Launcher.py 2006-11-28 00:18:29 UTC (rev 5352)
@@ -74,7 +74,9 @@
def _appendMpiRunArgs(self, args):
- args.append(self.extra)
+ extra = self.extra
+ if extra:
+ args.extend(extra.split(' '))
args.extend(['-np', '%d' % self.nodes])
# use only the specific nodes specified explicitly
Modified: cs/pythia/trunk/setup.cfg
===================================================================
--- cs/pythia/trunk/setup.cfg 2006-11-27 23:09:42 UTC (rev 5351)
+++ cs/pythia/trunk/setup.cfg 2006-11-28 00:18:29 UTC (rev 5352)
@@ -1,4 +1,4 @@
[egg_info]
-tag_build = b5
+tag_build = b6
#tag_svn_revision = 1
More information about the cig-commits
mailing list