From 3078ad8a9ec84dafb6768e5709f0afb41d531b95 Mon Sep 17 00:00:00 2001 From: Sebastiaan van der Tol <tol@astron.nl> Date: Thu, 13 Aug 2020 15:16:31 +0200 Subject: [PATCH] Disable rotation in element for now --- cpp/element.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cpp/element.cc b/cpp/element.cc index f3c119ae..50ce7295 100644 --- a/cpp/element.cc +++ b/cpp/element.cc @@ -13,15 +13,15 @@ matrix22c_t Element::LocalResponse(real_t time, real_t freq, id, freq, thetaphi[0], thetaphi[1], reinterpret_cast<std::complex<double>(&)[2][2]>(result)); - if (options.rotate) { - vector3r_t up = {0.0, 0.0, 1.0}; - vector3r_t e_phi = normalize(cross(up, direction)); - vector3r_t e_theta = cross(e_phi, direction); - matrix22r_t rotation; - rotation[0] = {dot(e_theta, options.north), dot(e_theta, options.east)}; - rotation[1] = {dot(e_phi, options.north), dot(e_phi, options.east)}; - result = result * rotation; - } +// if (options.rotate) { +// vector3r_t up = {0.0, 0.0, 1.0}; +// vector3r_t e_phi = normalize(cross(up, direction)); +// vector3r_t e_theta = cross(e_phi, direction); +// matrix22r_t rotation; +// rotation[0] = {dot(e_theta, options.north), dot(e_theta, options.east)}; +// rotation[1] = {dot(e_phi, options.north), dot(e_phi, options.east)}; +// result = result * rotation; +// } return result; } -- GitLab