8000 Added check to see if fimp(2) deviates from default value, if it does… by ym1906 · Pull Request #3053 · ukaea/PROCESS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added check to see if fimp(2) deviates from default value, if it does… #3053

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 10000 you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

ym1906
Copy link
Collaborator
@ym1906 ym1906 commented Feb 14, 2024

… write a warning message to use ralpne instead.

Description

This value is controlled by ralpne , in fact changing fimp(2) does not change the value of the parameter. It also doesn't make sense that a user would set these two parameters to different values in the first place.

However, as fimp(2) is part of the fimp array, it's not straight forward to remove it as an input variable. All members of fimp(1:13) are inputs, and all of them are output (and still used by other parts of the code). A generic fortran function loop for looping through arrays is used to set them as inputs. It doesn't seem elegant to add a specific exception to this function.

I have added a warning and stop to the user when they change fimp(2) from the default value, and they are told to use ralpne instead.

Checklist

I confirm that I have completed the following checks:

  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

… write a warning message to use ralpne instead.
@ym1906 ym1906 linked an issue Feb 14, 2024 that may be closed by this pull request
@ym1906 ym1906 assigned ajpearcey and unassigned jonmaddock Feb 15, 2024
Copy link
Collaborator
@ajpearcey ajpearcey left a comment

Choose a reason for hiding this comment

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

lgtm

@ajpearcey ajpearcey merged commit 00e1700 into main Feb 15, 2024
@ym1906 ym1906 deleted the 417-ralpne-overwrites-fimp02-in-indat branch April 4, 2024 09:47
chris-ashe pushed a commit that referenced this pull request Apr 22, 2024
#3053)

* Added check to see if fimp(2) deviates from default value, if it does write a warning message to use ralpne instead.

* Added stop to enforce the message, mofidified message
chris-ashe pushed a commit that referenced this pull request May 1, 2024
#3053)

* Added check to see if fimp(2) deviates from default value, if it does write a warning message to use ralpne instead.

* Added stop to enforce the message, mofidified message
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.

ralpne overwrites fimp(02) in IN.DAT
3 participants
0