add: support for multi process
This commit is contained in:
parent
c026f0d6c9
commit
3183f8e6d2
@ -1,5 +1,5 @@
|
||||
# 多线程设置
|
||||
/run/numberOfThreads 1
|
||||
/run/numberOfThreads 12
|
||||
|
||||
# verbose
|
||||
/control/verbose 2
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
G4double M = 931.5;
|
||||
G4double C1, C2, C3, C4, sum;
|
||||
std::ifstream modelFile("assets/model.txt");
|
||||
|
||||
PrimaryGeneratorAction::PrimaryGeneratorAction() {
|
||||
G4ParticleDefinition* ion = DefineParticle();
|
||||
@ -29,6 +28,7 @@ PrimaryGeneratorAction::~PrimaryGeneratorAction() { delete fParticleGun; }
|
||||
G4ParticleDefinition* PrimaryGeneratorAction::DefineParticle() {
|
||||
G4double Z, A;
|
||||
std::string tmp, line, name;
|
||||
std::ifstream modelFile("assets/model.txt");
|
||||
|
||||
while (std::getline(modelFile, line)) {
|
||||
std::stringstream ss(line);
|
||||
|
Loading…
Reference in New Issue
Block a user