Commit 70753e0c authored by Simon Spannagel's avatar Simon Spannagel
Browse files

InducedTransfer: only log issue once

parent 733f33b1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ void InducedTransferModule::run(Event* event) {

    // Send an error message if this even only contained one of the two carrier types
    if(!found_electrons || !found_holes) {
        LOG(ERROR) << "Did not find charge carriers of type \"" << (found_electrons ? "holes" : "electrons")
        LOG_ONCE(ERROR) << "Did not find charge carriers of type \"" << (found_electrons ? "holes" : "electrons")
                        << "\" in this event." << std::endl
                        << "This will cause wrong calculation of induced charge";
    }