TestNormalModeLangevin.cpp 666 Bytes
Newer Older
1
2
3
#include "OpenMM.h"
#include <vector>
#include <string>
4
#include <iostream>
5
6
7
8
9
10
11
12
13
14

using namespace OpenMM;
using namespace std;

void testLoadNMLPlugin() 
{
    Platform::loadPluginsFromDirectory(Platform::getDefaultPluginsDirectory());
    vector<string> kernelName;
    kernelName.push_back("IntegrateNMLStepKernel");
    // Was NormalModeLangevin plugin loaded?
15
    Platform& platform = Platform::findPlatform(kernelName); // throws if no platform with kernel
16
17
18
19
}

int main() 
{
20
21
22
23
24
25
26
27
28
29
30
    try 
    {
        testLoadNMLPlugin();
        cout << "tests passed" << endl;
        return 0;
    } 
    catch (...) 
    {
        cout << "FAILED" << endl;
        return 1;
    }
31
}