Skip to content

Commit

Permalink
Revert "Update update_packets.cc"
Browse files Browse the repository at this point in the history
This reverts commit 4b8b06d.
  • Loading branch information
lukeshingles committed Oct 28, 2024
1 parent c7591f0 commit 28c2eeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions update_packets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ void update_pellet(Packet &pkt, const int nts, const double t2) {
pkt.absorptiontype = -7;
stats::increment(stats::COUNTER_K_STAT_FROM_EARLIERDECAY);

// printout("already decayed packets and propagation by packet_prop\n");
pkt.prop_time = globals::tmin;
} else if constexpr (TESTMODE) {
printoutf("ERROR: Something wrong with decaying pellets. tdecay %g ts %g (ts + tw) %g\n", tdecay, ts, t2);
Expand Down Expand Up @@ -372,8 +373,12 @@ void update_packets(const int my_rank, const int nts, std::span<Packet> packets)
while (!timestepcomplete) {
const auto sys_time_start_pass = std::time(nullptr);

// printout("sorting packets...");

std::ranges::SORT_OR_STABLE_SORT(packets, std_compare_packets_bymodelgriddensity);

// printout("took %lds\n", std::time(nullptr) - sys_time_start_pass);

printout(" update_packets timestep %d pass %3d: started at %ld\n", nts, passnumber, sys_time_start_pass);

const int count_pktupdates = static_cast<int>(std::ranges::count_if(
Expand Down

0 comments on commit 28c2eeb

Please sign in to comment.