Collimator physics for MIC fix

This commit is contained in:
Uldis Locans
2016-11-16 18:12:17 +01:00
parent 027bdc01f5
commit 87cdf52f07
8 changed files with 75 additions and 53 deletions

View File

@ -129,7 +129,9 @@ int main(int argc, char *argv[]) {
//init random
base.callInitRandoms(numpart);
//**test collimator physics and sort***//
void *label_ptr, *localID_ptr, *rx_ptr, *ry_ptr, *rz_ptr, *px_ptr, *py_ptr, *pz_ptr, *param_ptr;
//allocate memory for particles
@ -210,8 +212,8 @@ int main(int argc, char *argv[]) {
base.freeMemory<double>(pz_ptr, numpart);
base.freeMemory<double>(param_ptr, 12);
/*
/*
std::cout << std::fixed << std::setprecision(4);
for (int i = 0; i < 10; i++) {
std::cout << p.label[i] << "\t" << p.rx[i]