Skip to content

Commit

Permalink
Keep windows happy Refs #11833
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Jun 2, 2015
1 parent 8075fba commit 6f98fd2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ using namespace Mantid::Geometry;

namespace {
Mantid::Kernel::Logger g_log("VesuvioL1ThetaResolution");

class SquareRoot
{
public:
double operator()(double x) { return sqrt(x); }
};
}

// Register the algorithm into the AlgorithmFactory
Expand Down Expand Up @@ -433,7 +439,8 @@ MatrixWorkspace_sptr VesuvioL1ThetaResolution::processDistribution(MatrixWorkspa
const std::vector<double> y = ws->readY(i);
std::vector<double>& e = ws->dataE(i);

std::transform(y.begin(), y.end(), e.begin(), sqrt);
SquareRoot op;
std::transform(y.begin(), y.end(), e.begin(), op);
}

return ws;
Expand Down

0 comments on commit 6f98fd2

Please sign in to comment.