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
641de894
Commit
641de894
authored
Feb 18, 2009
by
Mark Friedrichs
Browse files
Added code to get/set random number generator seed
parent
0b4066cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
openmmapi/include/LangevinIntegrator.h
openmmapi/include/LangevinIntegrator.h
+13
-0
No files found.
openmmapi/include/LangevinIntegrator.h
View file @
641de894
...
...
@@ -78,6 +78,18 @@ public:
void
setFriction
(
double
coeff
)
{
friction
=
coeff
;
}
/**
* Get the random number seed
*/
int
getRandomNumberSeed
(
void
)
const
{
return
randomNumberSeed
;
}
/**
* Set the random number seed
*/
void
setRandomNumberSeed
(
int
inputRandomNumberSeed
)
{
randomNumberSeed
=
inputRandomNumberSeed
;
}
/**
* Advance a simulation through time by taking a series of time steps.
*
...
...
@@ -97,6 +109,7 @@ protected:
std
::
vector
<
std
::
string
>
getKernelNames
();
private:
double
temperature
,
friction
;
int
randomNumberSeed
;
OpenMMContextImpl
*
context
;
Kernel
kernel
;
};
...
...
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