Skip to content

Commit

Permalink
added if geo.reverb check when dumping delay info, fixes #152
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmatthews committed Jun 16, 2015
1 parent d2a237c commit 7cbde3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion source/extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ the same resonance again */
{
stuff_v(pstart.x, pp->x); // Restore photon to initial position (necessary for reweighting schemes)
pp->path = pstart.path;
delay_dump_single(pp, 1); // Dump photon now weight has been modified

if (geo.reverb > REV_NONE) // only want to dump photon if the reverb structures are set up
delay_dump_single(pp, 1); // Dump photon now weight has been modified
}


Expand Down
4 changes: 2 additions & 2 deletions source/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ main (argc, argv)
}

/* SWM - Setup for path tracking */
if(geo.reverb > 0)
if(geo.reverb > REV_NONE)
{
reverb_init(wmain, nangles, freqmin, freqmax);
delay_dump_prep(files.root, restart_stat, rank_global);
Expand Down Expand Up @@ -1502,7 +1502,7 @@ main (argc, argv)
geo.pcycle, timer ());

/* SWM0215: Delay dump photons from this cycle */
if(geo.reverb > 0) delay_dump(p, NPHOT, 0); // SWM - Dump delay tracks from this iteration
if(geo.reverb > REV_NONE) delay_dump(p, NPHOT, 0); // SWM - Dump delay tracks from this iteration

/* JM1304: moved geo.pcycle++ after xsignal to record cycles correctly. First cycle is cycle 0. */

Expand Down
2 changes: 1 addition & 1 deletion source/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ int get_compton_torus_params ()
int
get_meta_params (void)
{
geo.reverb = 0;
geo.reverb = REV_NONE;
rdint("reverb.type", &geo.reverb);
if (geo.reverb == REV_WIND)
{
Expand Down

0 comments on commit 7cbde3a

Please sign in to comment.