From fd78f5dddee4f292c91bc2686be55f24cbd01c88 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Wed, 21 May 2025 14:03:54 +0200 Subject: [PATCH] Enforce repetition of first scale operations when SPHERE updates the order --- src/sphere/sphere.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp index b38d2c2..d123b0f 100644 --- a/src/sphere/sphere.cpp +++ b/src/sphere/sphere.cpp @@ -597,7 +597,7 @@ int sphere_jxi488_cycle( logger->log(message, LOG_INFO); sid->update_order(new_lm); is_first_scale = true; - jw = 1; + // jw = 1; l_max = new_lm; } } @@ -744,7 +744,7 @@ int sphere_jxi488_cycle( double ph = sa->ph; for (int jph484 = 0; jph484 < sa->nph; jph484++) { int jph = jph484 + 1; - bool goto182 = (sa->nk == 1) && (jxi > 1); + bool goto182 = (sa->nk == 1) && (!is_first_scale); if (!goto182) { upvmp(th, ph, 0, sid->cost, sid->sint, sid->cosp, sid->sinp, sid->u, sid->upmp, sid->unmp); } @@ -779,7 +779,7 @@ int sphere_jxi488_cycle( phs = ph + phsph; if (phs >= 360.0) phs -= 360.0; } - bool goto190 = (nks == 1) && ((jxi > 1) || (jth > 1) || (jph > 1)); + bool goto190 = (nks == 1) && ((!is_first_scale) || (jth > 1) || (jph > 1)); if (!goto190) { upvmp(ths, phs, icspnv, sid->costs, sid->sints, sid->cosps, sid->sinps, sid->us, sid->upsmp, sid->unsmp); if (gconf->isam >= 0) { -- GitLab