Skip to content
Snippets Groups Projects
Commit 98e42fb6 authored by Pyry Runko (Puck)'s avatar Pyry Runko (Puck)
Browse files

removed some lines, still some to remove

parent 031af803
No related branches found
No related tags found
No related merge requests found
......@@ -630,22 +630,16 @@ double IPGlasma::SumAmplitudes()
WilsonLine quark;
int thrownAway = 0;
int iWasHere = 0;
#pragma omp parallel for reduction(+:sum,thrownAway,iWasHere) collapse(4)
#pragma omp parallel for reduction(+:sum)
for(int i =0; i < L; i += 1){
for(int j =0; j < L; j += 1){
int q1[2] = {i,j};
quark = GetWilsonLine(WilsonLineCoordinate(i, j))
double r1 = DistanceToOrigin(q1);
//#pragma omp parallel for reduction(+:sum) collapse(2)
for(int k =0; k < L; k +=1){
// cout << "# Thread " << omp_get_thread_num() << " is processing (" << i << ", " << j << ", " << k <<")" << endl;
for(int l =0; l < L; l +=1){
cout << "# Hello from inside the l loop!" << endl;
//TODO: pointer instead of copy?
//TODO: faster to get these two layers above?
iWasHere += 1;
int q1[2] = {i,j};
//quark = GetWilsonLine(WilsonLineCoordinate(i, j));
int q2[2] = {k,l};
double r1 = DistanceToOrigin(q1);
double r2 = DistanceToOrigin(q2);
if (r1 > 1. && r2 > 1.){
// cout << "#!!Throwing away large dipole separation!" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment