Commit 4f05ea88 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Transient: remove conversions that just multiply with one

parent de1af424
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ void TransientPropagationModule::run(Event* event) {
            if(state == CarrierState::RECOMBINED) {
                recombined_charges_count += charge_per_step;
                if(output_plots_) {
                    recombination_time_histo_->Fill(static_cast<double>(Units::convert(time, "ns")), charge_per_step);
                    recombination_time_histo_->Fill(time, charge_per_step);
                }
            } else if(state == CarrierState::TRAPPED) {
                trapped_charges_count += charge_per_step;
@@ -529,7 +529,7 @@ TransientPropagationModule::propagate(Event* event,
        // Check if the charge carrier has been trapped:
        if(trapping_(type, uniform_distribution(event->getRandomEngine()), timestep_, std::sqrt(efield.Mag2()))) {
            if(output_plots_) {
                trapping_time_histo_->Fill(static_cast<double>(Units::convert(runge_kutta.getTime(), "ns")), charge);
                trapping_time_histo_->Fill(runge_kutta.getTime(), charge);
            }

            auto detrap_time = detrapping_(type, uniform_distribution(event->getRandomEngine()), std::sqrt(efield.Mag2()));