1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

hard coded phase flip in panphasia

This commit is contained in:
Oliver Hahn 2020-08-23 22:07:59 +02:00
parent f3382d32fe
commit 4b534fe306

View file

@ -117,7 +117,7 @@ public:
if (i == nres_ / 2 || j == nres_ / 2 || k == nres_ / 2) continue;
if (i == 0 && j == 0 && k == 0) continue;
ampl = -std::sqrt(-std::log(ampl));
ampl = std::sqrt(-std::log(ampl));
ccomplex_t zrand(ampl*std::cos(phase),ampl*std::sin(phase));
if (k > 0) {
@ -143,7 +143,7 @@ public:
}
} else if (i < nres_ / 2) {
if(i_in_range) g.kelem(ip,j,k) = zrand;
if (ii_in_range) g.kelem(iip,jj,k) = std::conj(zrand);
if(ii_in_range) g.kelem(iip,jj,k) = std::conj(zrand);
}
}
}