Skip to content
Snippets Groups Projects
Commit db42d8f0 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Throw in IFormFactor::evaluatePol

parent 24bb7494
No related branches found
No related tags found
No related merge requests found
...@@ -55,4 +55,3 @@ WavevectorInfo FormFactorDecoratorRotation::rotate_wavevectors( ...@@ -55,4 +55,3 @@ WavevectorInfo FormFactorDecoratorRotation::rotate_wavevectors(
double wavelength = wavevectors.getWavelength(); double wavelength = wavevectors.getWavelength();
return WavevectorInfo(rotated_ki, rotated_kf, wavelength); return WavevectorInfo(rotated_ki, rotated_kf, wavelength);
} }
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
IFormFactor::~IFormFactor() {} IFormFactor::~IFormFactor() {}
Eigen::Matrix2cd IFormFactor::evaluatePol(const WavevectorInfo& wavevectors) const Eigen::Matrix2cd IFormFactor::evaluatePol(const WavevectorInfo&) const
{ {
return evaluate(wavevectors) * Eigen::Matrix2cd::Identity(); // Throws to prevent unanticipated behaviour
throw Exceptions::NotImplementedException(
"IFormFactor::evaluatePol: is not implemented by default");
} }
double IFormFactor::getVolume() const double IFormFactor::getVolume() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment