IAS-Astrophysics / athenak

Performance-portable version of the Athena++ astrophysical AMR-MHD code using Kokkos.
BSD 3-Clause "New" or "Revised" License
23 stars 12 forks source link

Special relativistic hydrodynamics - [merged] #412

Closed jmstone closed 1 month ago

jmstone commented 3 years ago

In GitLab by @emost on Feb 8, 2021, 16:00

_Merges relhydro -> master

Adds special relativistic hydrodynamics to the hydro module.

jmstone commented 3 years ago

In GitLab by @emost on Feb 26, 2021, 22:39

added 22 commits

Compare with previous version

jmstone commented 3 years ago

In GitLab by @emost on Feb 27, 2021, 11:24

added 1 commit

Compare with previous version

jmstone commented 3 years ago

In GitLab by @emost on Mar 4, 2021, 11:35

added 17 commits

Compare with previous version

jmstone commented 3 years ago

In GitLab by @emost on Mar 8, 2021, 20:39

added 1 commit

Compare with previous version

jmstone commented 3 years ago

In GitLab by @emost on Mar 8, 2021, 21:01

added 1 commit

Compare with previous version

jmstone commented 3 years ago

In GitLab by @jmstone216 on Mar 9, 2021, 13:27

Looks good! A few comments: (1) In the ConsToPrim function there is an inner loop of max_iterations which is set to 25. Why 25? (2) Also, does this vectorize? Perhaps it might be better add an inner vector loop over i in this par for, and check convergence only after each sweep in i? This might require testing on CPUs. (3) I notice the SoundSpeed_SR function in the EOS class is a little different than the one in Athena++. Is this form more robust? (why the changes)? (4) You did a good job in conforming to the current source code style. I am somewhat picky about style as I find sticking to one style makes the code a lot more readable. My only minor points suggestion: I like to keep the maximum line width no more than 90 characters so I don't get line wrap around in windows on my laptop.

Otherwise I approve and you can merge!

jmstone commented 3 years ago

In GitLab by @jmstone216 on Mar 9, 2021, 13:27

approved this merge request

jmstone commented 3 years ago

In GitLab by @emost on Mar 14, 2021, 19:54

added 1 commit

Compare with previous version

jmstone commented 3 years ago

In GitLab by @emost on Mar 14, 2021, 19:55

added 15 commits

Compare with previous version

jmstone commented 3 years ago

In GitLab by @jmstone216 on Mar 18, 2021, 08:21

mentioned in commit ca70eaa3ce8d28eeba1d951c2e971f1528b7ec39