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
b9075abe
"vscode:/vscode.git/clone" did not exist on "bf3a4db65fc57f8bbb93726ae8e649922aa98372"
Commit
b9075abe
authored
Mar 26, 2010
by
Peter Eastman
Browse files
Throw an exception if the user includes a GBSAOBCForce but no NonbondedForce (bug 1083)
parent
26721ca2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+3
-0
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
b9075abe
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "CudaKernels.h"
#include "CudaKernels.h"
#include "openmm/LangevinIntegrator.h"
#include "openmm/LangevinIntegrator.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "openmm/OpenMMException.h"
#include "openmm/internal/ContextImpl.h"
#include "openmm/internal/ContextImpl.h"
#include "openmm/internal/NonbondedForceImpl.h"
#include "openmm/internal/NonbondedForceImpl.h"
#include "kernels/gputypes.h"
#include "kernels/gputypes.h"
...
@@ -759,6 +760,8 @@ void OPENMMCUDA_EXPORT OpenMM::cudaOpenMMInitializeIntegration(const System& sys
...
@@ -759,6 +760,8 @@ void OPENMMCUDA_EXPORT OpenMM::cudaOpenMMInitializeIntegration(const System& sys
if
(
!
data
.
hasNonbonded
)
{
if
(
!
data
.
hasNonbonded
)
{
gpuSetCoulombParameters
(
gpu
,
(
float
)
ONE_4PI_EPS0
,
vector
<
int
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
char
>
(),
vector
<
vector
<
int
>
>
(),
NO_CUTOFF
);
gpuSetCoulombParameters
(
gpu
,
(
float
)
ONE_4PI_EPS0
,
vector
<
int
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
char
>
(),
vector
<
vector
<
int
>
>
(),
NO_CUTOFF
);
gpuSetLJ14Parameters
(
gpu
,
(
float
)
ONE_4PI_EPS0
,
1.0
f
,
vector
<
int
>
(),
vector
<
int
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
());
gpuSetLJ14Parameters
(
gpu
,
(
float
)
ONE_4PI_EPS0
,
1.0
f
,
vector
<
int
>
(),
vector
<
int
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
(),
vector
<
float
>
());
if
(
gpu
->
bIncludeGBSA
||
gpu
->
bIncludeGBVI
)
throw
OpenMMException
(
"CudaPlatform requires GBSAOBCForce and GBVIForce to be used with a NonbondedForce"
);
}
}
// Set masses.
// Set masses.
...
...
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