Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional vpacket logging WIP #433

Merged
merged 2 commits into from
Nov 9, 2015
Merged

Optional vpacket logging WIP #433

merged 2 commits into from
Nov 9, 2015

Conversation

orbitfold
Copy link
Contributor

No description provided.

@orbitfold
Copy link
Contributor Author

Try with this PR @aoifeboyle, I think I fixed your thing.

@aoifeboyle
Copy link
Contributor

Will do and will let you know. Thank you @orbitfold.

@aoifeboyle
Copy link
Contributor

@orbitfold Working now, thank you.

@orbitfold
Copy link
Contributor Author

Glad to hear it worked :)

orbitfold added a commit that referenced this pull request Nov 9, 2015
@orbitfold orbitfold merged commit a856108 into master Nov 9, 2015
@orbitfold orbitfold deleted the optional-vpacket-logging branch November 9, 2015 16:49
@unoebauer unoebauer mentioned this pull request Dec 1, 2015
@@ -423,13 +423,14 @@ montecarlo_one_packet (storage_model_t * storage, rpacket_t * packet,
rpacket_get_energy (packet) * doppler_factor_ratio);
rpacket_set_nu(&virt_packet,rpacket_get_nu (packet) * doppler_factor_ratio);
reabsorbed = montecarlo_one_packet_loop (storage, &virt_packet, 1, mt_state);
#ifdef WITH_VPACKET_LOGGING
if ((rpacket_get_nu(&virt_packet) < storage->spectrum_end_nu) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ifdef block is also activates/deactivates the setting of
storage->spectrum_virt_nu[virt_id_nu] in line 455. This is crucial part of calculating and storing the virtual spectrum. This part should live outside the ifdef vpacketlogging block. See #445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants