"openmmapi/src/RMSDForceImpl.cpp" did not exist on "3d750e8517a73f39fce1de63a5f36d26f6a3d38c"
Commit 80a1d9e0 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Sign reversed on WcaDispersionForce forces; removed logging from MultipoleForce

parent dcf76e73
...@@ -945,6 +945,7 @@ void AmoebaReferenceMultipoleForce::calculateNoCutoffInducedDipoles( std::vector ...@@ -945,6 +945,7 @@ void AmoebaReferenceMultipoleForce::calculateNoCutoffInducedDipoles( std::vector
static const RealOpenMM one = 1.0; static const RealOpenMM one = 1.0;
static const RealOpenMM two = 2.0; static const RealOpenMM two = 2.0;
static const int debug = 0;
FILE* log = stderr; FILE* log = stderr;
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
...@@ -992,7 +993,7 @@ void AmoebaReferenceMultipoleForce::calculateNoCutoffInducedDipoles( std::vector ...@@ -992,7 +993,7 @@ void AmoebaReferenceMultipoleForce::calculateNoCutoffInducedDipoles( std::vector
RealOpenMM epsilon = epsilonDirect > epsilonPolar ? epsilonDirect : epsilonPolar; RealOpenMM epsilon = epsilonDirect > epsilonPolar ? epsilonDirect : epsilonPolar;
epsilon = _polarSOR*_debye*SQRT( epsilon/( static_cast<RealOpenMM>(numParticles) ) ); epsilon = _polarSOR*_debye*SQRT( epsilon/( static_cast<RealOpenMM>(numParticles) ) );
fprintf( stderr, "MIb %3u eps=%15.7e %15.7e %15.7e\n", iteration, epsilonDirect, epsilonPolar, epsilon ); //fprintf( stderr, "MIb %3u eps=%15.7e %15.7e %15.7e\n", iteration, epsilonDirect, epsilonPolar, epsilon );
if( epsilon < getMutualInducedDipoleTargetEpsilon() ){ if( epsilon < getMutualInducedDipoleTargetEpsilon() ){
setMutualInducedDipoleConverged( true ); setMutualInducedDipoleConverged( true );
...@@ -1008,7 +1009,7 @@ fprintf( stderr, "MIb %3u eps=%15.7e %15.7e %15.7e\n", iteration, epsilonDirect, ...@@ -1008,7 +1009,7 @@ fprintf( stderr, "MIb %3u eps=%15.7e %15.7e %15.7e\n", iteration, epsilonDirect,
setMutualInducedDipoleIterations( iteration ); setMutualInducedDipoleIterations( iteration );
#ifdef AMOEBA_DEBUG #ifdef AMOEBA_DEBUG
if( log ){ if( debug && log ){
std::stringstream header; std::stringstream header;
header << "MutualInducedDipoles:"; header << "MutualInducedDipoles:";
header << " converged=" << getMutualInducedDipoleConverged(); header << " converged=" << getMutualInducedDipoleConverged();
...@@ -2029,6 +2030,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const ...@@ -2029,6 +2030,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const
static const RealOpenMM one = 1.0; static const RealOpenMM one = 1.0;
static const RealOpenMM two = 2.0; static const RealOpenMM two = 2.0;
static const int debug = 0;
FILE* log = stderr; FILE* log = stderr;
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
...@@ -2059,7 +2061,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const ...@@ -2059,7 +2061,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const
} }
#ifdef AMOEBA_DEBUG #ifdef AMOEBA_DEBUG
if( log ){ if( debug && log ){
std::string header = "Reference: labFrameQuadrupole and labFrameDipole\n"; std::string header = "Reference: labFrameQuadrupole and labFrameDipole\n";
unsigned int printFlag = (1 << PARTICLE_DIPOLE) | (1 << PARTICLE_QUADRUPOLE); unsigned int printFlag = (1 << PARTICLE_DIPOLE) | (1 << PARTICLE_QUADRUPOLE);
int maxPrint = 10; int maxPrint = 10;
...@@ -2089,7 +2091,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const ...@@ -2089,7 +2091,7 @@ RealOpenMM AmoebaReferenceMultipoleForce::calculateNoCutoffForceAndEnergy( const
} }
#ifdef AMOEBA_DEBUG #ifdef AMOEBA_DEBUG
if( log ){ if( debug && log ){
std::string header = "Reference: fixed fields\n"; std::string header = "Reference: fixed fields\n";
unsigned int printFlag = (1<<PARTICLE_FIELD) | (1<<PARTICLE_FIELD_POLAR); unsigned int printFlag = (1<<PARTICLE_FIELD) | (1<<PARTICLE_FIELD_POLAR);
int maxPrint = 10; int maxPrint = 10;
......
...@@ -328,13 +328,13 @@ RealOpenMM AmoebaReferenceWcaDispersionForce::calculateForceAndEnergy( int numPa ...@@ -328,13 +328,13 @@ RealOpenMM AmoebaReferenceWcaDispersionForce::calculateForceAndEnergy( int numPa
particlePositions[ii], particlePositions[jj], particlePositions[ii], particlePositions[jj],
intermediateValues, force ); intermediateValues, force );
forces[ii][0] -= force[0]; forces[ii][0] += force[0];
forces[ii][1] -= force[1]; forces[ii][1] += force[1];
forces[ii][2] -= force[2]; forces[ii][2] += force[2];
forces[jj][0] += force[0]; forces[jj][0] -= force[0];
forces[jj][1] += force[1]; forces[jj][1] -= force[1];
forces[jj][2] += force[2]; forces[jj][2] -= force[2];
} }
} }
......
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