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
88aad28b
Commit
88aad28b
authored
Sep 20, 2010
by
Mark Friedrichs
Browse files
Turned off logging
parent
8a57342c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
16 deletions
+14
-16
plugins/amoeba/platforms/reference/src/AmoebaReferenceKernelFactory.cpp
.../platforms/reference/src/AmoebaReferenceKernelFactory.cpp
+0
-1
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicAngleForce.cpp
...reference/tests/TestReferenceAmoebaHarmonicAngleForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicBondForce.cpp
.../reference/tests/TestReferenceAmoebaHarmonicBondForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicInPlaneAngleForce.cpp
...ce/tests/TestReferenceAmoebaHarmonicInPlaneAngleForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaOutOfPlaneBendForce.cpp
...eference/tests/TestReferenceAmoebaOutOfPlaneBendForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaPiTorsionForce.cpp
...rms/reference/tests/TestReferenceAmoebaPiTorsionForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaStretchBendForce.cpp
...s/reference/tests/TestReferenceAmoebaStretchBendForce.cpp
+2
-2
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaTorsionForce.cpp
...forms/reference/tests/TestReferenceAmoebaTorsionForce.cpp
+2
-3
No files found.
plugins/amoeba/platforms/reference/src/AmoebaReferenceKernelFactory.cpp
View file @
88aad28b
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
using
namespace
OpenMM
;
using
namespace
OpenMM
;
extern
"C"
void
OPENMM_AMOEBA_REFERENCE_EXPORT
registerKernelFactories
()
{
extern
"C"
void
OPENMM_AMOEBA_REFERENCE_EXPORT
registerKernelFactories
()
{
fprintf
(
stderr
,
"In registerKernelFactories AmoebaReferenceKernelFactory
\n
"
);
fflush
(
stderr
);
for
(
int
ii
=
0
;
ii
<
Platform
::
getNumPlatforms
();
ii
++
){
for
(
int
ii
=
0
;
ii
<
Platform
::
getNumPlatforms
();
ii
++
){
Platform
&
platform
=
Platform
::
getPlatform
(
ii
);
Platform
&
platform
=
Platform
::
getPlatform
(
ii
);
if
(
platform
.
getName
()
==
"Reference"
){
if
(
platform
.
getName
()
==
"Reference"
){
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicAngleForce.cpp
View file @
88aad28b
...
@@ -296,8 +296,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -296,8 +296,8 @@ int main( int numberOfArguments, char* argv[] ) {
std
::
cout
<<
"TestCudaAmoebaHarmonicAngleForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestCudaAmoebaHarmonicAngleForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
//FILE* log = fopen( "AmoebaHarmonicAngleForce.log", "w" );;
//FILE* log = fopen( "AmoebaHarmonicAngleForce.log", "w" );;
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
testOneAngle
(
log
);
testOneAngle
(
log
);
if
(
log
&&
log
!=
stderr
)
if
(
log
&&
log
!=
stderr
)
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicBondForce.cpp
View file @
88aad28b
...
@@ -204,8 +204,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -204,8 +204,8 @@ int main( int numberOfArguments, char* argv[] ) {
try
{
try
{
std
::
cout
<<
"TestReferenceAmoebaHarmonicBondForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaHarmonicBondForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//testOneBond( log );
//testOneBond( log );
testTwoBond
(
log
);
testTwoBond
(
log
);
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaHarmonicInPlaneAngleForce.cpp
View file @
88aad28b
...
@@ -372,8 +372,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -372,8 +372,8 @@ int main( int numberOfArguments, char* argv[] ) {
try
{
try
{
std
::
cout
<<
"TestReferenceAmoebaHarmonicInPlaneAngleForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaHarmonicInPlaneAngleForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//FILE* log = fopen( "AmoebaHarmonicInPlaneAngleForce.log", "w" );;
//FILE* log = fopen( "AmoebaHarmonicInPlaneAngleForce.log", "w" );;
testOneAngle
(
NULL
);
testOneAngle
(
NULL
);
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaOutOfPlaneBendForce.cpp
View file @
88aad28b
...
@@ -495,8 +495,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -495,8 +495,8 @@ int main( int numberOfArguments, char* argv[] ) {
std
::
cout
<<
"TestReferenceAmoebaOutOfPlaneBendForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaOutOfPlaneBendForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
//FILE* log = fopen( "AmoebaOutOfPlaneBendForce.log", "w" );;
//FILE* log = fopen( "AmoebaOutOfPlaneBendForce.log", "w" );;
testOneOutOfPlaneBend
(
log
);
testOneOutOfPlaneBend
(
log
);
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaPiTorsionForce.cpp
View file @
88aad28b
...
@@ -303,8 +303,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -303,8 +303,8 @@ int main( int numberOfArguments, char* argv[] ) {
try
{
try
{
std
::
cout
<<
"TestReferenceAmoebaPiTorsionForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaPiTorsionForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//FILE* log = fopen( "AmoebaPiTorsionForce1.log", "w" );;
//FILE* log = fopen( "AmoebaPiTorsionForce1.log", "w" );;
testOnePiTorsion
(
log
);
testOnePiTorsion
(
log
);
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaStretchBendForce.cpp
View file @
88aad28b
...
@@ -287,8 +287,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -287,8 +287,8 @@ int main( int numberOfArguments, char* argv[] ) {
std
::
cout
<<
"TestReferenceAmoebaStretchBendForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaStretchBendForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//FILE* log = fopen( "AmoebaStretchBendForce1.log", "w" );;
//FILE* log = fopen( "AmoebaStretchBendForce1.log", "w" );;
testOneStretchBend
(
log
);
testOneStretchBend
(
log
);
if
(
log
&&
log
!=
stderr
)
if
(
log
&&
log
!=
stderr
)
...
...
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaTorsionForce.cpp
View file @
88aad28b
...
@@ -156,7 +156,6 @@ static void computeAmoebaTorsionForce(int bondIndex, std::vector<Vec3>& positio
...
@@ -156,7 +156,6 @@ static void computeAmoebaTorsionForce(int bondIndex, std::vector<Vec3>& positio
for
(
int
ii
=
0
;
ii
<
3
;
ii
++
){
for
(
int
ii
=
0
;
ii
<
3
;
ii
++
){
dEdPhi
+=
torsions
[
ii
][
0
]
*
((
double
)
(
ii
+
1
))
*
(
cosine
[
ii
]
*
sin
(
torsions
[
ii
][
1
]
)
-
sine
[
ii
]
*
cos
(
torsions
[
ii
][
1
]
)
);
dEdPhi
+=
torsions
[
ii
][
0
]
*
((
double
)
(
ii
+
1
))
*
(
cosine
[
ii
]
*
sin
(
torsions
[
ii
][
1
]
)
-
sine
[
ii
]
*
cos
(
torsions
[
ii
][
1
]
)
);
}
}
fprintf
(
stderr
,
"Tst: dEdPhi=%15.7e
\n
"
,
dEdPhi
);
fflush
(
stderr
);
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
...
@@ -333,8 +332,8 @@ int main( int numberOfArguments, char* argv[] ) {
...
@@ -333,8 +332,8 @@ int main( int numberOfArguments, char* argv[] ) {
try
{
try
{
std
::
cout
<<
"TestReferenceAmoebaTorsionForce running test..."
<<
std
::
endl
;
std
::
cout
<<
"TestReferenceAmoebaTorsionForce running test..."
<<
std
::
endl
;
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
Platform
::
loadPluginsFromDirectory
(
Platform
::
getDefaultPluginsDirectory
()
);
FILE
*
log
=
stderr
;
//
FILE* log = stderr;
//
FILE* log = NULL;
FILE
*
log
=
NULL
;
//FILE* log = fopen( "AmoebaTorsionForce.log", "w" );;
//FILE* log = fopen( "AmoebaTorsionForce.log", "w" );;
testOneTorsion
(
log
);
testOneTorsion
(
log
);
if
(
log
&&
log
!=
stderr
)
if
(
log
&&
log
!=
stderr
)
...
...
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