Commit 6269454b authored by peastman's avatar peastman
Browse files

Merge pull request #700 from peastman/master

testInstallation.py gives more information about errors
parents a8cd8456 96e6c4bc
...@@ -24,6 +24,7 @@ numPlatforms = Platform.getNumPlatforms() ...@@ -24,6 +24,7 @@ numPlatforms = Platform.getNumPlatforms()
print("There are", numPlatforms, "Platforms available:") print("There are", numPlatforms, "Platforms available:")
print() print()
forces = [None]*numPlatforms forces = [None]*numPlatforms
platformErrors = {}
for i in range(numPlatforms): for i in range(numPlatforms):
platform = Platform.getPlatform(i) platform = Platform.getPlatform(i)
print(i+1, platform.getName(), end=" ") print(i+1, platform.getName(), end=" ")
...@@ -36,6 +37,13 @@ for i in range(numPlatforms): ...@@ -36,6 +37,13 @@ for i in range(numPlatforms):
print("- Successfully computed forces") print("- Successfully computed forces")
except: except:
print("- Error computing forces with", platform.getName(), "platform") print("- Error computing forces with", platform.getName(), "platform")
platformErrors[platform.getName()] = sys.exc_info()[1]
# Give details of any errors.
for platform in platformErrors:
print()
print("%s platform error: %s" % (platform, platformErrors[platform]))
# See how well the platforms agree. # See how well the platforms agree.
......
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