48 dir_-> SetGuidance(
"MPI control commands");
52 verbose_-> SetGuidance(
"Set verbose level.");
53 verbose_-> SetParameterName(
"verbose",
false,
false);
58 status_-> SetGuidance(
"Show mpi status.");
62 execute_-> SetGuidance(
"Execute a macro file. (=/control/execute)");
63 execute_-> SetParameterName(
"fileName",
false,
false);
67 beam_on_-> SetGuidance(
"Start a parallel run w/ thread.");
70 p1-> SetDefaultValue(1);
71 p1-> SetParameterRange(
"numberOfEvent>=0");
75 p2-> SetDefaultValue(
true);
80 dot_beam_on_-> SetGuidance(
"Start a parallel run w/o thread.");
83 p1-> SetDefaultValue(1);
84 p1-> SetParameterRange(
"numberOfEvent>=0");
88 p2-> SetDefaultValue(
true);
99 show_seeds_-> SetGuidance(
"Show seeds of MPI nodes.");
103 set_master_seed_-> SetGuidance(
"Set a master seed for the seed generator.");
108 set_seed_-> SetGuidance(
"Set a seed for a specified node.");
111 p1-> SetParameterRange(
"node>=0");
141 }
else if ( command ==
status_ ) {
146 g4mpi_-> ExecuteMacroFile(UI-> FindMacroPath(newValue));
149 std::istringstream is(newValue);
152 is >> nevent >> qdivide;
153 g4mpi_-> BeamOn(nevent, qdivide);
156 std::istringstream is(newValue);
159 is >> nevent >> qdivide;
160 g4mpi_-> BeamOn(nevent, qdivide);
164 g4mpi_-> SetMasterWeight(weight);
170 std::istringstream is(newValue);
173 g4mpi_-> GetSeedGenerator()-> SetMasterSeed(seed);
174 g4mpi_-> DistributeSeeds();
177 std::istringstream is(newValue);
G4UIcommand * dot_beam_on_
G4UIcmdWithAnInteger * set_master_seed_
G4double GetMasterWeight() const
G4UIcmdWithAString * execute_
G4UIcmdWithoutParameter * status_
static G4UImanager * GetUIpointer()
A base class for random number seed distribution.
void SetRange(const char *rs)
G4UIcmdWithAnInteger * verbose_
G4UIcmdWithoutParameter * show_seeds_
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
virtual G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithADouble * master_weight_