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
8ecf9e35
Commit
8ecf9e35
authored
Feb 14, 2012
by
Peter Eastman
Browse files
Created architecture for multiple time step integrators and completed reference implementation
parent
d817b46b
Changes
87
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
11 deletions
+15
-11
plugins/amoeba/openmmapi/src/AmoebaWcaDispersionForceImpl.cpp
...ins/amoeba/openmmapi/src/AmoebaWcaDispersionForceImpl.cpp
+3
-2
plugins/freeEnergy/openmmapi/include/openmm/internal/GBSAOBCSoftcoreForceImpl.h
...nmmapi/include/openmm/internal/GBSAOBCSoftcoreForceImpl.h
+1
-1
plugins/freeEnergy/openmmapi/include/openmm/internal/GBVISoftcoreForceImpl.h
...openmmapi/include/openmm/internal/GBVISoftcoreForceImpl.h
+1
-1
plugins/freeEnergy/openmmapi/include/openmm/internal/NonbondedSoftcoreForceImpl.h
...mapi/include/openmm/internal/NonbondedSoftcoreForceImpl.h
+1
-1
plugins/freeEnergy/openmmapi/src/GBSAOBCSoftcoreForceImpl.cpp
...ins/freeEnergy/openmmapi/src/GBSAOBCSoftcoreForceImpl.cpp
+3
-2
plugins/freeEnergy/openmmapi/src/GBVISoftcoreForceImpl.cpp
plugins/freeEnergy/openmmapi/src/GBVISoftcoreForceImpl.cpp
+3
-2
plugins/freeEnergy/openmmapi/src/NonbondedSoftcoreForceImpl.cpp
...s/freeEnergy/openmmapi/src/NonbondedSoftcoreForceImpl.cpp
+3
-2
No files found.
plugins/amoeba/openmmapi/src/AmoebaWcaDispersionForceImpl.cpp
View file @
8ecf9e35
...
...
@@ -56,7 +56,8 @@ void AmoebaWcaDispersionForceImpl::initialize(ContextImpl& context) {
dynamic_cast
<
CalcAmoebaWcaDispersionForceKernel
&>
(
kernel
.
getImpl
()).
initialize
(
context
.
getSystem
(),
owner
);
}
double
AmoebaWcaDispersionForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
double
AmoebaWcaDispersionForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
)
{
if
((
groups
&
(
1
<<
owner
.
getForceGroup
()))
!=
0
)
return
dynamic_cast
<
CalcAmoebaWcaDispersionForceKernel
&>
(
kernel
.
getImpl
()).
execute
(
context
,
includeForces
,
includeEnergy
);
}
void
AmoebaWcaDispersionForceImpl
::
getMaximumDispersionEnergy
(
const
AmoebaWcaDispersionForce
&
force
,
int
particleIndex
,
double
&
maxDispersionEnergy
)
{
...
...
plugins/freeEnergy/openmmapi/include/openmm/internal/GBSAOBCSoftcoreForceImpl.h
View file @
8ecf9e35
...
...
@@ -53,7 +53,7 @@ public:
void
updateContextState
(
ContextImpl
&
context
)
{
// This force field doesn't update the state directly.
}
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
);
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
);
std
::
map
<
std
::
string
,
double
>
getDefaultParameters
()
{
return
std
::
map
<
std
::
string
,
double
>
();
// This force field doesn't define any parameters.
}
...
...
plugins/freeEnergy/openmmapi/include/openmm/internal/GBVISoftcoreForceImpl.h
View file @
8ecf9e35
...
...
@@ -62,7 +62,7 @@ public:
void
updateContextState
(
ContextImpl
&
context
)
{
// This force field doesn't update the state directly.
}
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
);
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
);
std
::
map
<
std
::
string
,
double
>
getDefaultParameters
()
{
return
std
::
map
<
std
::
string
,
double
>
();
// This force field doesn't define any parameters.
}
...
...
plugins/freeEnergy/openmmapi/include/openmm/internal/NonbondedSoftcoreForceImpl.h
View file @
8ecf9e35
...
...
@@ -56,7 +56,7 @@ public:
void
updateContextState
(
ContextImpl
&
context
)
{
// This force field doesn't update the state directly.
}
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
);
double
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
);
std
::
map
<
std
::
string
,
double
>
getDefaultParameters
()
{
return
std
::
map
<
std
::
string
,
double
>
();
// This force field doesn't define any parameters.
}
...
...
plugins/freeEnergy/openmmapi/src/GBSAOBCSoftcoreForceImpl.cpp
View file @
8ecf9e35
...
...
@@ -48,7 +48,8 @@ void GBSAOBCSoftcoreForceImpl::initialize(ContextImpl& context) {
dynamic_cast
<
CalcGBSAOBCSoftcoreForceKernel
&>
(
kernel
.
getImpl
()).
initialize
(
context
.
getSystem
(),
owner
);
}
double
GBSAOBCSoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
double
GBSAOBCSoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
)
{
if
((
groups
&
(
1
<<
owner
.
getForceGroup
()))
!=
0
)
return
dynamic_cast
<
CalcGBSAOBCSoftcoreForceKernel
&>
(
kernel
.
getImpl
()).
execute
(
context
,
includeForces
,
includeEnergy
);
}
...
...
plugins/freeEnergy/openmmapi/src/GBVISoftcoreForceImpl.cpp
View file @
8ecf9e35
...
...
@@ -261,7 +261,8 @@ void GBVISoftcoreForceImpl::findScaledRadii( int numberOfParticles, const std::v
}
double
GBVISoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
double
GBVISoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
)
{
if
((
groups
&
(
1
<<
owner
.
getForceGroup
()))
!=
0
)
return
dynamic_cast
<
CalcGBVISoftcoreForceKernel
&>
(
kernel
.
getImpl
()).
execute
(
context
,
includeForces
,
includeEnergy
);
}
...
...
plugins/freeEnergy/openmmapi/src/NonbondedSoftcoreForceImpl.cpp
View file @
8ecf9e35
...
...
@@ -87,7 +87,8 @@ void NonbondedSoftcoreForceImpl::initialize(ContextImpl& context) {
dynamic_cast
<
CalcNonbondedSoftcoreForceKernel
&>
(
kernel
.
getImpl
()).
initialize
(
context
.
getSystem
(),
owner
);
}
double
NonbondedSoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
double
NonbondedSoftcoreForceImpl
::
calcForcesAndEnergy
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
,
int
groups
)
{
if
((
groups
&
(
1
<<
owner
.
getForceGroup
()))
!=
0
)
return
dynamic_cast
<
CalcNonbondedSoftcoreForceKernel
&>
(
kernel
.
getImpl
()).
execute
(
context
,
includeForces
,
includeEnergy
);
}
...
...
Prev
1
2
3
4
5
Next
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