Commit 88aad28b authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Turned off logging

parent 8a57342c
...@@ -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" ){
......
...@@ -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 )
......
...@@ -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 );
......
...@@ -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 );
......
...@@ -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 );
......
...@@ -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 );
......
...@@ -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 )
......
...@@ -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 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment