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
a8a36d75
Commit
a8a36d75
authored
Jun 09, 2010
by
Peter Eastman
Browse files
Added Platform::getOpenMMVersion().
parent
ba2503b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
olla/include/openmm/Platform.h
olla/include/openmm/Platform.h
+4
-0
olla/src/Platform.cpp
olla/src/Platform.cpp
+5
-0
No files found.
olla/include/openmm/Platform.h
View file @
a8a36d75
...
@@ -215,6 +215,10 @@ public:
...
@@ -215,6 +215,10 @@ public:
* @return the path to the default plugin directory
* @return the path to the default plugin directory
*/
*/
static
const
std
::
string
&
getDefaultPluginsDirectory
();
static
const
std
::
string
&
getDefaultPluginsDirectory
();
/**
* Get a string containing the version number of the OpenMM library.
*/
static
const
std
::
string
&
getOpenMMVersion
();
protected:
protected:
/**
/**
* Get the ContextImpl for a Context.
* Get the ContextImpl for a Context.
...
...
olla/src/Platform.cpp
View file @
a8a36d75
...
@@ -278,6 +278,11 @@ const string& Platform::getDefaultPluginsDirectory() {
...
@@ -278,6 +278,11 @@ const string& Platform::getDefaultPluginsDirectory() {
return
directory
;
return
directory
;
}
}
const
string
&
Platform
::
getOpenMMVersion
()
{
static
const
string
version
=
"2.0"
;
return
version
;
}
ContextImpl
&
Platform
::
getContextImpl
(
Context
&
context
)
const
{
ContextImpl
&
Platform
::
getContextImpl
(
Context
&
context
)
const
{
return
*
context
.
impl
;
return
*
context
.
impl
;
}
}
...
...
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