cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
60 stars 32 forks source link

Making static gravity more user friendly with custom gravity field flags #340

Closed evazlimen closed 8 months ago

evazlimen commented 9 months ago

I have separated out the various hard coded static gravity fields with a switch statement that is determined by parameter file input. This way a user doesn't have to comment and uncomment things in the source code just to run a test.

evazlimen commented 9 months ago

I changed the initialization of custom_grav and set it up for the VL integrator. I formatted with clang-17, not sure if I just have to wait for PR #330 to go through for the formatting check to pass?

evaneschneider commented 9 months ago

Awesome, yep -- we're doing a hack day over here so have a few PRs in the queue waiting on 310 and rebasing, but once #330 330 goes through the clang 17 formatting should work.

evaneschneider commented 9 months ago

FYI, I've pulled in the clang-17 PR, so this one should be good to go once it's updated.