"platforms/vscode:/vscode.git/clone" did not exist on "32e08b87cf161a48c9b3f2138b18009a054c2369"
Commit 12dbd216 authored by peastman's avatar peastman
Browse files

Merge pull request #743 from peastman/master

Prevent running tests on unsupported CPUs
parents bcef4de7 59484a6f
......@@ -461,6 +461,10 @@ void testExclusions() {
int main() {
try {
if (!CpuPlatform::isProcessorSupported()) {
cout << "CPU is not supported. Exiting." << endl;
return 0;
}
testOBC(GBSAOBCForce::NoCutoff, CustomGBForce::NoCutoff);
testOBC(GBSAOBCForce::CutoffNonPeriodic, CustomGBForce::CutoffNonPeriodic);
testOBC(GBSAOBCForce::CutoffPeriodic, CustomGBForce::CutoffPeriodic);
......
......@@ -673,6 +673,10 @@ void testCentralParticleModeLargeSystem() {
int main() {
try {
if (!CpuPlatform::isProcessorSupported()) {
cout << "CPU is not supported. Exiting." << endl;
return 0;
}
testNoCutoff();
testCutoff();
testPeriodic();
......
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