"csrc/sm90/vscode:/vscode.git/clone" did not exist on "082094b793fcc7452977d0a71a00e266a2e3061e"
Commit 9d0684dd authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed some compilation and Valgrind warnings

parent dad22074
......@@ -237,7 +237,7 @@ int ReferenceLJCoulombIxn::calculateEwaldIxn( int numberOfAtoms, RealOpenMM** at
static const RealOpenMM six = 6.0;
static const RealOpenMM twelve = 12.0;
int kmax = std::max(numRx, std::max(numRy,numRz));
int kmax = (ewald ? std::max(numRx, std::max(numRy,numRz)) : 0);
RealOpenMM factorEwald = -1 / (4*alphaEwald*alphaEwald);
RealOpenMM SQRT_PI = sqrt(PI);
RealOpenMM TWO_PI = 2.0 * PI;
......
......@@ -3,7 +3,7 @@
#if !defined(MEXP)
#ifdef __GNUC__
#warning "MEXP is not defined. I assume MEXP is 19937."
// #warning "MEXP is not defined. I assume MEXP is 19937."
#endif
#define MEXP 19937
#endif
......
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