Skip to content
Snippets Groups Projects
Commit 8281f020 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Merge remote-tracking branch 'upstream/develop' into develop

parents d1107782 a52f5c83
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ namespace {
// Used in experimental calculation of scattering matrix:
cvector_t OrthogonalToBaseVector(cvector_t base, const kvector_t vector)
{
if (base.mag2()==0.0) return cvector_t {};
cvector_t projection = (base.dot(vector)/base.mag2())*base;
return vector.complex() - projection;
}
......
......@@ -77,5 +77,6 @@ test_example("simulation/ex05_BeamAndDetector/SpecularSimulation" 2e-10)
test_example("simulation/ex06_Miscellaneous/CylindersInAverageLayer" 2e-10)
test_example("simulation/ex06_Miscellaneous/HalfSpheresInAverageTopLayer" 2e-10)
test_example("simulation/ex06_Miscellaneous/MagneticSpheres" 2e-10)
test_example("fitting/ex01_SampleParametersIntro/SampleParametersIntro" 2e-10)
File added
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