Message: MultiThreading and SteppingVerbose Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question MultiThreading and SteppingVerbose 

Forum: Multithreading
Date: 25 Sep, 2014
From: Mehmet Oktay <Mehmet Oktay>

Hello,

I am trying to run my code in multit-hread mode. It compiles and runs. However,
when the G4MTRunManager is activated e.g.

    G4MTRunManager* runManager = new G4MTRunManager

it sets the SteppingVerbose to its default. I want to use my own SteppingVerbose. I cannot instantiate it after the run manager. Any ideas ? Main steps of my code is below. Thank you.

===========================================================

#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
#include "G4RunManager.hh"
#endif

int main(...){
...
G4VSteppingVerbose* verbosity = new MySteppingVerbose;
G4VSteppingVerbose::SetInstance(verbosity);

#ifdef G4MULTITHREADED
  G4MTRunManager* runManager = new G4MTRunManager;
  runManager->SetNumberOfThreads(12);
#else
  G4RunManager* runManager = new G4RunManager;
#endif
runManager->SetUserInitialization(new MyDetectorConstruction());
...
=======================================

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: MultiThreading and SteppingVerbose   (Andrea Dotti - 25 Sep, 2014)
(_ Ok: Re: MultiThreading and SteppingVerbose   (Mehmet Oktay - 25 Sep, 2014)
 Add Message Add Message
to: "MultiThreading and SteppingVerbose"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews