47 dir-> SetGuidance(
"MPI control commands");
51 verbose-> SetGuidance(
"Set verbose level.");
52 verbose-> SetParameterName(
"verbose",
false,
false);
53 verbose->
SetRange(
"verbose>=0 && verbose<=1");
57 status-> SetGuidance(
"Show mpi status.");
61 execute-> SetGuidance(
"Execute a macro file. (=/control/execute)");
62 execute-> SetParameterName(
"fileName",
false,
false);
66 beamOn-> SetGuidance(
"Start a parallel run w/ thread.");
69 p1-> SetDefaultValue(1);
70 p1-> SetParameterRange(
"numberOfEvent>=0");
71 beamOn-> SetParameter(p1);
74 p2-> SetDefaultValue(
true);
75 beamOn-> SetParameter(p2);
79 dotbeamOn-> SetGuidance(
"Start a parallel run w/o thread.");
82 p1-> SetDefaultValue(1);
83 p1-> SetParameterRange(
"numberOfEvent>=0");
84 dotbeamOn-> SetParameter(p1);
87 p2-> SetDefaultValue(
true);
88 dotbeamOn-> SetParameter(p2);
92 masterWeight-> SetGuidance(
"Set weight for master node.");
93 masterWeight-> SetParameterName(
"weight",
false,
false);
94 masterWeight-> SetRange(
"weight>=0. && weight<=1.");
98 showSeeds-> SetGuidance(
"Show seeds of MPI nodes.");
102 setMasterSeed-> SetGuidance(
"Set a master seed for the seed generator.");
103 setMasterSeed-> SetParameterName(
"seed",
false,
false);
107 setSeed-> SetGuidance(
"Set a seed for a specified node.");
110 p1-> SetParameterRange(
"node>=0");
111 setSeed-> SetParameter(p1);
114 setSeed-> SetParameter(p2);
127 delete setMasterSeed;
136 if (command == verbose) {
137 G4int lv= verbose-> GetNewIntValue(newValue);
138 g4MPI-> SetVerbose(lv);
140 }
else if (command == status){
141 g4MPI-> ShowStatus();
143 }
else if (command == execute){
145 g4MPI-> ExecuteMacroFile(UI-> FindMacroPath(newValue));
147 }
else if (command == beamOn){
148 std::istringstream is(newValue);
151 is >> nevent >> qdivide;
152 g4MPI-> BeamOn(nevent, qdivide);
154 }
else if (command == dotbeamOn){
155 std::istringstream is(newValue);
158 is >> nevent >> qdivide;
159 g4MPI-> BeamOn(nevent, qdivide);
161 }
else if (command == masterWeight){
163 g4MPI-> SetMasterWeight(weight);
165 }
else if (command == showSeeds){
168 }
else if (command == setMasterSeed){
169 std::istringstream is(newValue);
172 g4MPI-> GetSeedGenerator()-> SetMasterSeed(seed);
173 g4MPI-> DistributeSeeds();
175 }
else if (command == setSeed){
176 std::istringstream is(newValue);
180 g4MPI-> SetSeed(inode, seed);
191 if (command == verbose) {
192 cv= verbose-> ConvertToString(g4MPI->
GetVerbose());
193 }
else if (command == masterWeight) {