Skip to content
Snippets Groups Projects
Commit abeadce6 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

fix copy'n'paste index bug

[[Imported from SVN: r6313]]
parent 8b343d92
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,8 @@ void testDerivativesOfSquaredDistance(const UnitVector<dim>& a, const UnitVector
FieldVector<double,dim> bPlus = b.globalCoordinates();
FieldVector<double,dim> bMinus = b.globalCoordinates();
bPlus[i] += eps;
bMinus[i] -= eps;
bPlus[j] += eps;
bMinus[j] -= eps;
d1d2_fd[i][j] = (energy(aPlus,bPlus) + energy(aMinus,bMinus)
- energy(aPlus,bMinus) - energy(aMinus,bPlus)) / (4*eps*eps);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment