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
7ee0076d
Commit
7ee0076d
authored
Jul 19, 2010
by
Peter Eastman
Browse files
Fixed incorrect fix for Windows compilation problems
parent
593d359c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
platforms/reference/src/SimTKReference/ReferenceCMAPTorsionIxn.cpp
.../reference/src/SimTKReference/ReferenceCMAPTorsionIxn.cpp
+3
-3
No files found.
platforms/reference/src/SimTKReference/ReferenceCMAPTorsionIxn.cpp
View file @
7ee0076d
...
...
@@ -113,7 +113,7 @@ void ReferenceCMAPTorsionIxn::calculateOneIxn(int index, RealOpenMM** atomCoordi
// Identify which patch this is in.
int
size
=
(
int
)
SQRT
(
double
(
coeff
[
map
].
size
())
)
;
int
size
=
(
int
)
SQRT
(
(
RealOpenMM
)
coeff
[
map
].
size
());
RealOpenMM
delta
=
2
*
M_PI
/
size
;
int
s
=
(
int
)
(
angleA
/
delta
);
int
t
=
(
int
)
(
angleB
/
delta
);
...
...
@@ -190,5 +190,5 @@ void ReferenceCMAPTorsionIxn::calculateOneIxn(int index, RealOpenMM** atomCoordi
int
ReferenceCMAPTorsionIxn
::
calculateBondIxn
(
int
*
atomIndices
,
RealOpenMM
**
atomCoordinates
,
RealOpenMM
*
parameters
,
RealOpenMM
**
forces
,
RealOpenMM
*
energyByBond
,
RealOpenMM
*
energyByAtom
)
const
{
return
0
;
// but it must return a value to avoid MSVC compile error
return
ReferenceForce
::
DefaultReturn
;
}
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