TestNormalModeLangevin.cpp 501 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "OpenMM.h"
#include <vector>
#include <string>

using namespace OpenMM;
using namespace std;

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

int main() 
{
    testLoadNMLPlugin();
    return 0;
}