Skip to content

Remove last occurence of logical from Fortran source files#16

Closed
mabruzzo wants to merge 26 commits into
brittonsmith:gen2024from
mabruzzo:remove-last-logical
Closed

Remove last occurence of logical from Fortran source files#16
mabruzzo wants to merge 26 commits into
brittonsmith:gen2024from
mabruzzo:remove-last-logical

Conversation

@mabruzzo

@mabruzzo mabruzzo commented Dec 26, 2024

Copy link
Copy Markdown

To be reviewed after #15 (there isn't any real need for this commit to build on that other one... this is mostly out of convenience/laziness -- LMK if you want me to decouple them)


Unlike other cases where we replaced logical with MASK_TYPE, I replaced it with integer*8 for the sake of consistency with the grackle-project/grackle#/160 PR (I plan to use the transcription of interpolators_g.F from that PR in the future).

@mabruzzo

Copy link
Copy Markdown
Author

I have confirmed that all tests successfully pass

@mabruzzo mabruzzo changed the base branch from gen2024 to master January 28, 2025 15:58
@mabruzzo mabruzzo changed the base branch from master to gen2024 January 28, 2025 15:58
@mabruzzo

mabruzzo commented Jan 28, 2025

Copy link
Copy Markdown
Author

I just refreshed the file-diff view to make it easier to review this PR, now that #15 has been merged (this is actually a really tiny PR!)

This creates problems when we specify the answer-dir as a relative path
because we commonly forget to change the directory back to the starting
one. This issue will become more prominent in the next commit.

- there wasn't any need to change directories in test_initialisation.py
- we could remove all logic relating to explicitly changing directories
  by passing the ``cwd`` kwarg to ``subprocess.run`` in
  test_get_grackle_version.py and test_models.py (while the directory is
  still changed by ``subprocess.run``, they always restore the original
  one afterwards)

More importantly, this is a good practice to have!
Previously, the test_code_examples would eagerly FAIL, if pytest
was invoked to run answer-tests in "compare-mode" and the answer-file
could not be found for the test_code_examples (whether or not we were
planning to skip the test_code_examples).

This commit relocates the FAILURE check until after the logic
determining whether we should skip the test_code_examples.
mabruzzo and others added 7 commits March 17, 2025 16:33
1. A bug is fixed in the Fortran Bindings
2. All references have been removed about the ``GRACKLE_DATA_DIR`` env
   variable. An upcoming PR (grackle-project#235) is going to overhaul this machinery,
   but it probably won't be merged the 3.4 release
….4Tweaks

Tweaks required for 3.4 release (Fortran Binding bugfix and a few removals)
@mabruzzo

mabruzzo commented Mar 20, 2025

Copy link
Copy Markdown
Author

Replaced by grackle-project#261

@mabruzzo mabruzzo closed this Mar 20, 2025
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.

2 participants