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
ab31a17d
Commit
ab31a17d
authored
Dec 01, 2009
by
Peter Eastman
Browse files
Renamed getPlatform() to getPlatformByName()
parent
32946009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
olla/include/openmm/Platform.h
olla/include/openmm/Platform.h
+1
-1
olla/src/Platform.cpp
olla/src/Platform.cpp
+1
-1
No files found.
olla/include/openmm/Platform.h
View file @
ab31a17d
...
@@ -175,7 +175,7 @@ public:
...
@@ -175,7 +175,7 @@ public:
* Get the registered Platform with a particular name. If no Platform with that name has been
* Get the registered Platform with a particular name. If no Platform with that name has been
* registered, this throws an exception.
* registered, this throws an exception.
*/
*/
static
Platform
&
getPlatform
(
const
std
::
string
&
name
);
static
Platform
&
getPlatform
ByName
(
const
std
::
string
&
name
);
/**
/**
* Find a Platform which can be used to perform a calculation.
* Find a Platform which can be used to perform a calculation.
*
*
...
...
olla/src/Platform.cpp
View file @
ab31a17d
...
@@ -178,7 +178,7 @@ Platform& Platform::getPlatform(int index) {
...
@@ -178,7 +178,7 @@ Platform& Platform::getPlatform(int index) {
return
*
getPlatforms
()[
index
];
return
*
getPlatforms
()[
index
];
}
}
Platform
&
Platform
::
getPlatform
(
const
string
&
name
)
{
Platform
&
Platform
::
getPlatform
ByName
(
const
string
&
name
)
{
for
(
int
i
=
0
;
i
<
getNumPlatforms
();
i
++
)
for
(
int
i
=
0
;
i
<
getNumPlatforms
();
i
++
)
if
(
getPlatform
(
i
).
getName
()
==
name
)
if
(
getPlatform
(
i
).
getName
()
==
name
)
return
getPlatform
(
i
);
return
getPlatform
(
i
);
...
...
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