#include "OpenMM.h" #include #include #include using namespace OpenMM; using namespace std; void testLoadNMLPlugin() { Platform::loadPluginsFromDirectory(Platform::getDefaultPluginsDirectory()); vector kernelName; kernelName.push_back("IntegrateNMLStepKernel"); // Was NormalModeLangevin plugin loaded? Platform& platform = Platform::findPlatform(kernelName); // throws if no platform with kernel } int main() { try { testLoadNMLPlugin(); cout << "tests passed" << endl; return 0; } catch (...) { cout << "FAILED" << endl; return 1; } }