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 additional logic in arch/preamble for finding WRF source directory #73

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

mgduda
Copy link
Collaborator

@mgduda mgduda commented Oct 2, 2018

Add additional logic in arch/preamble for finding the WRF source directory

The make logic in arch/preamble for setting the WRF_DIR variable to the location
of the compiled WRF source code previously looked either for a directory named
../WRF or a directory named ../WRFV3. In anticipation of users downloading
the WRF code as a GitHub archive file, which will unpack to a name like
WRF-4.0.1, we need more sophisticated logic for finding this directory.

This commit adds checks for the WRF code in ../WRF-4.0.1 and ../WRF-4.0.
In future we will likely need a more general solution (e.g., to handle the
eventual WRF 4.1 release), but as an immediate fix, checking for the WRF
4.0 or 4.0.1 releases should be sufficient.

The make logic in arch/preamble for setting the WRF_DIR variable to the location
of the compiled WRF source code previously looked either for a directory named
../WRF or a directory named ../WRFV3. In anticipation of users downloading
the WRF code as a GitHub archive file, which will unpack to a name like
WRF-4.0.1, we need more sophisticated logic for finding this directory.

This commit adds checks for the WRF code in ../WRF-4.0.1 and ../WRF-4.0.
In future we will likely need a more general solution (e.g., to handle the
eventual WRF 4.1 release), but as an immediate fix, checking for the WRF
4.0 or 4.0.1 releases should be sufficient.
@mgduda mgduda requested a review from kkeene44 October 2, 2018 01:35
@mgduda
Copy link
Collaborator Author

mgduda commented Oct 2, 2018

This PR addresses Issue #72 .

Copy link
Collaborator

@kkeene44 kkeene44 left a comment

Choose a reason for hiding this comment

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

Looks like an okay temporary solution.

@mgduda mgduda merged commit 139dd22 into wrf-model:release-v4.0.1 Oct 2, 2018
@mgduda mgduda deleted the find_new_WRF_dirs branch October 2, 2018 15:46
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