-
Notifications
You must be signed in to change notification settings - Fork 260
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
remove #ifdefs from phantom #55
Comments
danieljprice
added a commit
that referenced
this issue
Aug 27, 2020
danieljprice
added a commit
that referenced
this issue
Sep 11, 2020
danieljprice
added a commit
that referenced
this issue
Oct 1, 2020
danieljprice
added a commit
that referenced
this issue
Jul 28, 2021
danieljprice
added a commit
that referenced
this issue
Jul 28, 2021
danieljprice
added a commit
that referenced
this issue
Nov 28, 2021
danieljprice
added a commit
that referenced
this issue
Jun 6, 2022
…ling with MAXP= which is now obsolete (#55)
danieljprice
added a commit
that referenced
this issue
Aug 10, 2022
…get temperature instead of calling get_temperature; remove ifdefs in derivs (#55)
danieljprice
added a commit
to Fitz-Hu/phantom
that referenced
this issue
Sep 9, 2022
…y; simplify slope limiter; remove ifdefs (danieljprice#55)
s-neilson
pushed a commit
to s-neilson/phantom
that referenced
this issue
Mar 18, 2023
…ling with MAXP= which is now obsolete (danieljprice#55)
s-neilson
pushed a commit
to s-neilson/phantom
that referenced
this issue
Mar 18, 2023
…get temperature instead of calling get_temperature; remove ifdefs in derivs (danieljprice#55)
s-neilson
pushed a commit
to s-neilson/phantom
that referenced
this issue
Mar 18, 2023
…y; simplify slope limiter; remove ifdefs (danieljprice#55)
danieljprice
added a commit
that referenced
this issue
Mar 22, 2023
danieljprice
added a commit
that referenced
this issue
Mar 23, 2023
danieljprice
added a commit
that referenced
this issue
Mar 23, 2023
danieljprice
added a commit
that referenced
this issue
Mar 23, 2023
danieljprice
added a commit
that referenced
this issue
Mar 23, 2023
danieljprice
added a commit
that referenced
this issue
Mar 23, 2023
danieljprice
added a commit
that referenced
this issue
Mar 24, 2023
danieljprice
added a commit
that referenced
this issue
Mar 24, 2023
danieljprice
added a commit
that referenced
this issue
Mar 24, 2023
danieljprice
added a commit
that referenced
this issue
May 8, 2023
danieljprice
added a commit
that referenced
this issue
May 12, 2023
danieljprice
added a commit
that referenced
this issue
May 12, 2023
danieljprice
added a commit
that referenced
this issue
Jun 14, 2023
danieljprice
added a commit
that referenced
this issue
Jun 16, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 10, 2023
danieljprice
added a commit
that referenced
this issue
Jul 12, 2023
danieljprice
added a commit
that referenced
this issue
Jul 12, 2023
danieljprice
added a commit
that referenced
this issue
Jul 14, 2023
…ATION=yes/no and INJECT_PARTICLES=yes/no
Merged
danieljprice
added a commit
that referenced
this issue
Nov 27, 2023
danieljprice
added a commit
that referenced
this issue
Nov 27, 2023
danieljprice
added a commit
that referenced
this issue
Apr 9, 2024
danieljprice
added a commit
that referenced
this issue
Apr 9, 2024
danieljprice
added a commit
that referenced
this issue
Apr 9, 2024
danieljprice
added a commit
that referenced
this issue
Apr 9, 2024
…store changes which should not differ from master branch
danieljprice
added a commit
that referenced
this issue
Apr 10, 2024
…mulative error count; remove obsolete ifdef #55
danieljprice
added a commit
that referenced
this issue
Apr 18, 2024
Merged
Current status:
|
danieljprice
added a commit
that referenced
this issue
Jul 31, 2024
danieljprice
added a commit
that referenced
this issue
Dec 16, 2024
… all eos routines; added helper function to avoid modifying readwrite_infile; remove ifdefs #55
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#ifdefs look horrible in the code, and make testing all possible compile-time combinations very difficult. We should avoid introducing any new #ifdefs, preferencing use of the logical flags from the config module where possible, e.g. if (mhd), if (radiation) etc.
Many of these could also be made into runtime options, since they are mainly there to determine whether memory is allocated for certain arrays. This would need a bit more thought.
For now, we should try to keep as many files as .f90 as possible, rather than .F90, to disallow the use of ugly and unnecessary #ifdef statements. The only allowed use case for #ifdefs should be for linking with external libraries, e.g. MPI, or when the performance really matters (e.g. use of #ifdef PERIODIC in dens, force or kdtree)
The text was updated successfully, but these errors were encountered: