Bug for counting n_dipole
This commit is contained in:
@@ -34,7 +34,7 @@ inline bool Negative_Terminator::check_walls(const Particle &movePart) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (z_m >= z_WGTS_end_m && E_eV <= dipole_cutoffE_eV) {
|
if (z_m >= z_WGTS_end_m && E_eV <= dipole_cutoffE_eV) {
|
||||||
stats.n_rw += 1;
|
stats.n_dipole += 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (r_m >= r_WGTS_m) {
|
if (r_m >= r_WGTS_m) {
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ int main(int argc, char *argv[]) {
|
|||||||
cout<<"Number CPUs: "<<size<<"\n"<<endl;
|
cout<<"Number CPUs: "<<size<<"\n"<<endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
std::cout << "Process " << getpid() << " is " << rank
|
std::cout << "Process " << getpid() << " is " << rank
|
||||||
<< " of " << size << " processes" << std::endl;
|
<< " of " << size << " processes" << std::endl;
|
||||||
if (rank == 0) sleep(600);
|
if (rank == 0) sleep(600);
|
||||||
*/
|
|
||||||
|
|
||||||
Simulation Sim;
|
Simulation Sim;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user