Fix persistent mode photon lines bug
This commit is contained in:
parent
788b0cd04c
commit
75d7853a74
@ -1031,6 +1031,7 @@ static void create_gain_photon(int pp)//photons from PHOT going through GLOW
|
|||||||
parts[i].vy = parts[pp].vy;
|
parts[i].vy = parts[pp].vy;
|
||||||
parts[i].temp = parts[pmap[ny][nx] >> 8].temp;
|
parts[i].temp = parts[pmap[ny][nx] >> 8].temp;
|
||||||
parts[i].tmp = 0;
|
parts[i].tmp = 0;
|
||||||
|
parts[i].pavg[0] = parts[i].pavg[1] = 0.0f;
|
||||||
photons[ny][nx] = PT_PHOT|(i<<8);
|
photons[ny][nx] = PT_PHOT|(i<<8);
|
||||||
|
|
||||||
temp_bin = (int)((parts[i].temp-273.0f)*0.25f);
|
temp_bin = (int)((parts[i].temp-273.0f)*0.25f);
|
||||||
@ -1067,6 +1068,7 @@ static void create_cherenkov_photon(int pp)//photons from NEUT going through GLA
|
|||||||
parts[i].y = parts[pp].y;
|
parts[i].y = parts[pp].y;
|
||||||
parts[i].temp = parts[pmap[ny][nx] >> 8].temp;
|
parts[i].temp = parts[pmap[ny][nx] >> 8].temp;
|
||||||
parts[i].tmp = 0;
|
parts[i].tmp = 0;
|
||||||
|
parts[i].pavg[0] = parts[i].pavg[1] = 0.0f;
|
||||||
photons[ny][nx] = PT_PHOT|(i<<8);
|
photons[ny][nx] = PT_PHOT|(i<<8);
|
||||||
|
|
||||||
if (lr) {
|
if (lr) {
|
||||||
|
Reference in New Issue
Block a user