Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6b088a6a
Commit
6b088a6a
authored
Dec 01, 2009
by
Peter Eastman
Browse files
Renamed getPlatform() to getPlatformByName()
parent
ab31a17d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
plugins/normalModeLangevin/src/NormalModeLangevin.cpp
plugins/normalModeLangevin/src/NormalModeLangevin.cpp
+2
-2
No files found.
plugins/normalModeLangevin/src/NormalModeLangevin.cpp
View file @
6b088a6a
...
@@ -42,13 +42,13 @@ extern "C" void registerKernelFactories() {
...
@@ -42,13 +42,13 @@ extern "C" void registerKernelFactories() {
// Only register cuda kernels if cuda platform is found
// Only register cuda kernels if cuda platform is found
try
{
try
{
Platform
&
platform
=
Platform
::
getPlatform
(
"CudaPlatform"
);
Platform
&
platform
=
Platform
::
getPlatform
ByName
(
"CudaPlatform"
);
// platform.registerKernelFactory("CudaNMLKernelFactory", new CudaNMLKernelFactory());
// platform.registerKernelFactory("CudaNMLKernelFactory", new CudaNMLKernelFactory());
}
catch
(
std
::
exception
exc
)
{
// non fatal
}
catch
(
std
::
exception
exc
)
{
// non fatal
}
}
try
{
try
{
Platform
&
platform
=
Platform
::
getPlatform
(
"ReferencePlatform"
);
Platform
&
platform
=
Platform
::
getPlatform
ByName
(
"ReferencePlatform"
);
platform
.
registerKernelFactory
(
"ReferenceNMLKernelFactory"
,
new
ReferenceNMLKernelFactory
());
platform
.
registerKernelFactory
(
"ReferenceNMLKernelFactory"
,
new
ReferenceNMLKernelFactory
());
}
catch
(
std
::
exception
exc
)
{
// non fatal
}
catch
(
std
::
exception
exc
)
{
// non fatal
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment