-
Notifications
You must be signed in to change notification settings - Fork 191
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
Monte Carlo time stepping action #6198
Monte Carlo time stepping action #6198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, a few suggestions. You can squash them directly
#include "Time/Time.hpp" | ||
#include "Time/TimeStepId.hpp" | ||
|
||
#include "Parallel/Printf/Printf.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove? Leftover from debugging?
|
||
namespace Particles::MonteCarlo { | ||
|
||
// Mutator advancing neutrinos by a single step |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
triple slash for dox comment
gsl::not_null<std::vector<Packet>*> packets, | ||
gsl::not_null<std::mt19937*> random_number_generator, | ||
gsl::not_null<std::array<DataVector, NeutrinoSpecies>*> | ||
single_packet_energy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const gsl::not_null
explicit NeutrinoInteractionTable(CkMigrateMessage* msg) : PUP::able(msg) {} | ||
|
||
using PUP::able::register_constructor; | ||
void pup(PUP::er& p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void pup(PUP::er& p) override;
3ccd592
to
daebafe
Compare
daebafe
to
f98ab56
Compare
Ok, I had missed a few initially, but I think now all comments have been addressed... |
f98ab56
to
7c4eeb5
Compare
CI is timeout in Cylindrical BBH domain, which is unrelated. |
Proposed changes
Add an action to take a single MC time step, and a test of using this action within the mock run environment.
Only the last commit is actually relevant; all others are from PR #6138 , which is a prerequisite to this PR.
Upgrade instructions
None
Code review checklist
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.