[cig-commits] r19901 - short/3D/PyLith/benchmarks/trunk/static/performance/solvertest

brad at geodynamics.org brad at geodynamics.org
Thu Mar 29 09:15:53 PDT 2012


Author: brad
Date: 2012-03-29 09:15:53 -0700 (Thu, 29 Mar 2012)
New Revision: 19901

Modified:
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py
Log:
Fixed validation of input.

Modified: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py	2012-03-29 16:14:59 UTC (rev 19900)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py	2012-03-29 16:15:53 UTC (rev 19901)
@@ -16,7 +16,7 @@
 
 if not cell in ["hex8", "tet4"]:
     raise ValueError("Cell type (%s) must be 'hex8' or 'tet4'." % cell)
-if (nprocs % 2) != 0:
+if nprocs != 1 and (nprocs % 2) != 0:
     raise ValueError("Number of processors (%d) must be a power of 2." % nprocs)
 
 



More information about the CIG-COMMITS mailing list