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

Add test to evolve packet on Kerr background #6297

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

SamanthaRath
Copy link

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@SamanthaRath
Copy link
Author

@ffoucart

Copy link
Contributor

@ffoucart ffoucart left a comment

Choose a reason for hiding this comment

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

Looks good to me, just add a few comments I think.

}
}
return x;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is from my own code but... could we add a comment here of the type

// We setup the inertial coordinates such that the element used for the evolution is centered on (6,0,0), and the jacobian matrix is the identity matrix


std::vector<Particles::MonteCarlo::Packet> packets{packet};
Particles::MonteCarlo::TemplatedLocalFunctions<2, 2> MonteCarloStruct;
// Getting N and CFL constant
Copy link
Contributor

Choose a reason for hiding this comment

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

I think "Getting N" is not needed here.

return x;
}

void test_evolve_kerr(const size_t mesh_size_1d) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add here a comment of the type
// Evolve a single Monte-Carlo packet along a geodesic of Kerr, and check that final position matches expectations.

ffoucart
ffoucart previously approved these changes Sep 25, 2024
@ffoucart
Copy link
Contributor

@nilsdeppe @kidder I reviewed this, not sure what is the process for others to have a look (I'm not a maintainer so the tests won't run just based on my review)

@ffoucart
Copy link
Contributor

@SamanthaRath Please look at the output of the test and fix as appropriate. For some of this, you'll want to compile your code in debug mode (some errors are just missing const and type conversions, but there is an array access out of bounds, which likely comes from some tensors being defined on the mesh without ghost zone when they need ghost zones)

@ffoucart
Copy link
Contributor

Note that this replaces #6008

@ffoucart ffoucart mentioned this pull request Oct 28, 2024
3 tasks
@SamanthaRath SamanthaRath force-pushed the AddKerrEvolutionTestMC branch from 504a885 to f9e1d1e Compare October 28, 2024 17:00
@ffoucart
Copy link
Contributor

@kidder @nilsdeppe Could we run the test on this? Samantha uploaded changes that should handle the errors we got after rebasing against the new ghost zone code.
[Let me know if in the future I can just click 'run test' myself... it says maintainers only...]

@kidder
Copy link
Member

kidder commented Oct 28, 2024

Okay, I've never seen this message before

@ffoucart
Copy link
Contributor

Alright, I'll ignore it then. I don't see why we shouldn't run the test...

variable types rectified with const
Also add ghost zones to MC evolution in Kerr test
@SamanthaRath SamanthaRath force-pushed the AddKerrEvolutionTestMC branch from f9e1d1e to b0d8e21 Compare October 30, 2024 18:03
Copy link
Contributor

@ffoucart ffoucart left a comment

Choose a reason for hiding this comment

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

Good for me now!

@ffoucart
Copy link
Contributor

@nilsdeppe @kidder Should be ready for someone else to look at it if desired.

@ffoucart
Copy link
Contributor

@nilsdeppe @kidder Ping on this (I reviewed the PR, but probably shouldn't commit... especially as I wrote part of the submitted code...)

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