Commit dcee8145 authored by peastman's avatar peastman
Browse files

Prevent test case from crashing if the CPU is not supported

parent 2413fd82
......@@ -124,6 +124,10 @@ void testPME() {
int main(int argc, char* argv[]) {
try {
if (!CpuCalcPmeReciprocalForceKernel::isProcessorSupported()) {
cout << "CPU is not supported. Exiting." << endl;
return 0;
}
testPME();
}
catch(const exception& e) {
......
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