Commit 110676ec authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

compilation fix

parent 4e0da8ed
......@@ -211,8 +211,9 @@ public:
if (modelParameters_.magneticFieldDirection == "z") {
hmatrix += tmp*sz.getCRS();
} else if (modelParameters_.magneticFieldDirection == "x") {
hmatrix += 0.5*tmp*splus.getCRS();
hmatrix += 0.5*tmp*sminus.getCRS();
static const RealType zeroPointFive = 0.5;
hmatrix += zeroPointFive*tmp*splus.getCRS();
hmatrix += zeroPointFive*tmp*sminus.getCRS();
}
}
......
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