From 99e63db0c143b07ca1ddb5f8db93487caf367225 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Mon, 2 Sep 2024 00:58:04 +0100 Subject: [PATCH] Update vpkt.cc --- vpkt.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vpkt.cc b/vpkt.cc index c29ab07af..c8adede42 100644 --- a/vpkt.cc +++ b/vpkt.cc @@ -171,7 +171,6 @@ auto rlc_emiss_vpkt(const Packet &pkt, const double t_current, const double t_ar vpkt.last_cross = BOUNDARY_NONE; bool end_packet = false; - double ldist = 0; double t_future = t_current; for (int opacindex = 0; opacindex < Nspectra; opacindex++) { @@ -292,7 +291,7 @@ auto rlc_emiss_vpkt(const Packet &pkt, const double t_current, const double t_ar assert_testmodeonly(nu_cmf_abort <= vpkt.nu_cmf); const double d_nu_on_d_l = (nu_cmf_abort - vpkt.nu_cmf) / sdist; - ldist = 0; + double ldist = 0; while (ldist < sdist) { const int lineindex = closest_transition(vpkt.nu_cmf, vpkt.next_trans);