Skip to content

Commit

Permalink
RMGSteppingAction: only output parameters on master
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Nov 27, 2024
1 parent 7be1448 commit 6277447
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RMGSteppingAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "G4GenericMessenger.hh"
#include "G4Ions.hh"
#include "G4Step.hh"
#include "G4Threading.hh"

#include "RMGEventAction.hh"
#include "RMGLog.hh"
Expand Down Expand Up @@ -59,7 +60,7 @@ void RMGSteppingAction::UserSteppingAction(const G4Step* step) {
void RMGSteppingAction::SetDaughterKillLifetime(double max_lifetime) {

fDaughterKillLifetime = max_lifetime;
if (fDaughterKillLifetime > 0) {
if (fDaughterKillLifetime > 0 && G4Threading::IsMasterThread()) {
RMGLog::OutFormat(RMGLog::summary,
"Enabled killing of daughter nuclei with a lifetime longer than {} us.",
fDaughterKillLifetime / CLHEP::us);
Expand Down

0 comments on commit 6277447

Please sign in to comment.