"vscode:/vscode.git/clone" did not exist on "537912e44f084b773be5004a24aff5c94a36afd5"
Commit c0538e1f authored by Peter Eastman's avatar Peter Eastman
Browse files

Added a missing fabs()

parent 805bba93
......@@ -729,7 +729,7 @@ extern "C" __global__ void solveDIISMatrix(int iteration, const real* __restrict
real mean = 0;
for (int i = 0; i < numPrev; i++)
for (int j = 0; j < numPrev; j++)
mean += b[i+1][j+1];
mean += fabs(b[i+1][j+1]);
mean /= numPrev*numPrev;
b[0][0] = 0;
for (int i = 1; i < rank; i++)
......
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